[LLVMdev] string input for the integrated assembler
Joerg Sonnenberger
joerg at britannica.bec.de
Tue Mar 17 18:22:56 PDT 2015
On Tue, Mar 17, 2015 at 05:47:31PM -0700, Steve King wrote:
> As a simplification, the compiler deals almost exclusively in pseudo
> instructions. By x86 analogy, using pseudos to unfold a TEST32rm into
> MOV32rm + TEST32rr means I can skip the complex operand fitting effort
> needed to pick specific machine instructions. There are many such
> examples where handling real instructions would become a gross
> overload.
You can use various forms of aliases and pseudo instructions for pure
assembler use too. Consider the simplified immediate load syntax of ARM,
which handles the constant pool by itself. See test/MC/ARM/ltorg.s.
Joerg
More information about the llvm-dev
mailing list