Support extern constants of any primitive type.

This commit is contained in:
Chris Fallin
2021-09-15 00:01:51 -07:00
parent d0ace640a2
commit 20bc5ca7a8
7 changed files with 222 additions and 61 deletions

View File

@@ -7,6 +7,9 @@
(extern extractor Ext1 ext1)
(extern extractor Ext2 ext2)
(extern const $A u32)
(extern const $B u32)
(decl C (bool) A)
(extern constructor C c)
@@ -32,3 +35,8 @@
(rule
(Lower2 (Opcode.C))
(MachInst.F))
(decl F (Opcode) u32)
(rule
(F _)
$B)