Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SV] Macro definitions and declarations with arguments #5149

Merged
merged 7 commits into from
May 10, 2023

Conversation

darthscsi
Copy link
Contributor

This adds a macro.decl to declare the existance and arguments of a macro.
This adds a macro.def to define a macro body.

Since macros can be defined multiple times, I separate the declaration of a macro from the definitions.

Update firrtl to use the new ops instead of verbatim.

By their nature macros cannot always know the type of the result of their use, so we leave it to each call site to declare what this is, which is not a change from the exisiting code.

lib/Conversion/FIRRTLToHW/LowerToHW.cpp Outdated Show resolved Hide resolved
lib/Conversion/ExportVerilog/ExportVerilog.cpp Outdated Show resolved Hide resolved
darthscsi and others added 3 commits May 9, 2023 10:07
@darthscsi darthscsi merged commit 39ffcf8 into main May 10, 2023
@darthscsi darthscsi deleted the dev/darthscsi/macrodecl branch April 11, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants