They still need to be printed as "i32.const" rather than "global".
(Fixed from r252656 which wasn't quite NFC)
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Actually, I believe there's a better way to fix this. X86 uses this, for example:
def : Pat<(i32 (X86Wrapper tglobaladdr :$dst)), (MOV32ri tglobaladdr :$dst)>;
We should be able to replace our GLOBAL instruction with essentially the same thing (our version of MOV32ri is just Const_I32). This will use i32.const instructions right from the start, so they should then go down the normal path in the assembly printer.