circt
circt copied to clipboard
[ExportSystemC] Support more emitc operations and types
trafficstars
- Implement emission patterns for all emitc operations except
variablefor which we have our own implementation. Support for template arguments to function calls is not added yet, but can be easily added when there is a need. - Add emission pattern support for attributes: this is helpful for operations like
emitc.constantwhich can take any attribute and print it. Having them pattern based allows for more modularity and reuse. - Move the helper function to emit parentheses around an expression to the
InlineEmitterto share it across the various files implementing emission patterns and allow for easier use.