Displaying 1 result from an estimated 1 matches for "emitprintaliasinstruction".
2012 Dec 19
0
[LLVMdev] question about printAliasInstr
...idioms defined as
instruction aliases. For example, an instruction which used to be printed
as
"nor $1, $2, $zero"
can be printed as
"not $1, $2"
This is nice because it makes the code printed by code-gen or disassembler
more readable.
However, the code in AsmWriterEmitter::EmitPrintAliasInstruction seems to
ignore instruction aliases if an operand that is not a register nor an
immediate appears in the result instruction DAG. For example, the
folllowing instruction alias pattern is not handled in MipsGenAsmWriter.inc
because the third operand of BEQ is a brtarget:
def : InstAlias<"b $...