-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Moore] Drop named_constant op in favor of dbg.variable
Remove the `NamedConstantOp` and replace its uses with `VariableOp` from the debug dialect. The op was originally added to track the value of constant parameters, localparams, and specparams in the IR. In ImportVerilog, such parameters would generate a corresponding `named_constant` op and all references to the parameter by name would be replaced with the `named_constant`'s result. This doesn't really work well for parameters defined outside a module, such as in packages or at the root of the Verilog source file. (Modules are isolated from above, preventing the use of `named_constant`s from outside the module.) Therefore expressions would generally fall back to materializing constants directly where they were used. Since the named constant ops are only there to track a constant value in the IR for the user's debugging convenience, using the debug dialect directly feels a lot more appropriate.
- Loading branch information
1 parent
76f3ca5
commit 18c8c5c
Showing
9 changed files
with
163 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.