search for: metamnemonic

Displaying 2 results from an estimated 2 matches for "metamnemonic".

2016 Jul 08
2
Dynamic selection of assembly mnemonic strings
...->get(SHAVE::LD32_v1) else if (isV2()) BuildMI(..., TII->get(SHAVE::LD32_v2) What I would like, is for some mechanism that can substitute the version specific mnemonic dynamically (perhaps using a lookup table), and I could reduce the above to just: def LD32 : Instr<... "??MetaMnemonic??" ...>; and: BuildMI(..., TII->get(SHAVE::LD32) Does anyone know how this can be achieved without resort to placing some Meta-Mnemonic for '??MetaMnemonic??' and replacing this with the version specific value during AsmPrinting? Some instructions have more elaborate su...
2016 Jul 08
2
Dynamic selection of assembly mnemonic strings
..., TII->get(SHAVE::LD32_v1) else if (isV2()) BuildMI(..., TII->get(SHAVE::LD32_v2) What I would like, is for some mechanism that can substitute the version specific mnemonic dynamically (perhaps using a lookup table), and I could reduce the above to just: def LD32 : Instr<... “??MetaMnemonic??” ...>; and: BuildMI(..., TII->get(SHAVE::LD32) Does anyone know how this can be achieved without resort to placing some Meta-Mnemonic for ‘??MetaMnemonic??’ and replacing this with the version specific value during AsmPrinting? Some instructions have more elaborate substitutions,...