Fixes to Constant Elimination Pass
Compare changes
- Frederik Hennig authored
- Add test cases for constant extraction - Use `get_new_symbol` to create extracted symbols - Create extracted constant symbols with `const` data types - Add test case for folding of casts - Add config options for IRPrinter
@@ -17,9 +17,21 @@ def emit_ir(ir: PsAstNode):
@@ -66,7 +78,10 @@ class IRAstPrinter(BasePrinter):