[LLVMdev] initialize 'dag' variable and interpret asmstring in tablegen .td file
Tzu-Chien Chiu
tzuchien.chiu at gmail.com
Thu May 5 20:52:45 PDT 2005
llvm/lib/Target/X86/X86InstrInfo.td:
class X86Inst<bits<8> opcod, Format f, ImmType i, dag ops, string
AsmStr> : Instruction {
....
dag OperandList = ops;
string AsmString = AsmStr;
}
def MOV32mi : Ii32<0xC7, MRM0m, (ops i32mem:$dst, i32imm:$src),
"mov{l} {$src, $dst|$dst, $src}">;
I cannot find any document on initializing the 'dag' type variable,
and I cannot understand the syntax of "asmstring" either.
how does the x86 asmwrite interpret the "AsmString" ?
More information about the llvm-dev
mailing list