Rule
oqd_compiler_infrastructure.rule
¶
RuleBase
¶
RewriteRule
¶
Bases: RuleBase
This class represents a rule used to rewrite a type or IR. The result of the same type or IR.
Acknowledgement
This code was inspired by MLIR, Bloqade-python
Source code in oqd-compiler-infrastructure/src/oqd_compiler_infrastructure/rule.py
ConversionRule
¶
Bases: RuleBase
This class represents a rule used to convert between different types and IRs.
Acknowledgement
This code was inspired by MLIR
Source code in oqd-compiler-infrastructure/src/oqd_compiler_infrastructure/rule.py
PrettyPrint
¶
Bases: ConversionRule
This class represents a rewrite rule that constructs a string to represent an AST.