[LLVMdev] Question about porting LLVM - a single instruction op mnemonic with multiple operand forms

Lu Mitnick king19880326 at gmail.com
Tue Jan 18 10:28:48 PST 2011


Hello all,

I am at the adding Instruction Set stage of adding new target support into
LLVM. There is a single instruction op mnemonic with multiple operand forms.
For example: Add R1, R2 & Add @R1, R2. I found that there is similar case in
x86 instruction set, such like ADD reg, reg & ADD mem, reg. However, the
solution of x86 is adding suffix of instruction and translating instruction
op mnemonic into ADDrr & ADDmr. I don't want to translate single instruction
op mnemonic with different operand forms into multiple op mnemonics. I am
wondering to know whether is another solution of this problem or not?? Which
target should I look for it??

thanks a lot

yi-hong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110119/de8cd4b8/attachment.html>


More information about the llvm-dev mailing list