Seung Jae Lee
2006-Dec-14 19:58 UTC
[LLVMdev] Instruction sets requiring more than 3 operands
Hello. I am making a LLVM backend for a new architecture XCC. During implementation of instructions for XCC, I found that there are instructions need more than 3 operands in the target language manual. I could implement insructions need 1, 2 or 3 operands thanks to the examples in the LLVM backends already offered by you guys. But, I am not sure about those kind of instructions needs many number of operands that is not fixed. That is, it can be 4, 5, 6 ... which changes according to the program. Would you mind letting me know about this? Thank you. Seung Jae Lee
Evan Cheng
2006-Dec-15 05:56 UTC
[LLVMdev] Instruction sets requiring more than 3 operands
Sounds like you need to define variable_ops instructions. Take a look at CALLpcrel32 in X86InstrInfo.td as an example. Just do a grab for variable_ops. There are a number of such instructions in various backends. Evan On Dec 14, 2006, at 11:58 AM, Seung Jae Lee wrote:> Hello. > I am making a LLVM backend for a new architecture XCC. During > implementation of instructions for XCC, I found that there are > instructions need more than 3 operands in the target language > manual. I could implement insructions need 1, 2 or 3 operands > thanks to the examples in the LLVM backends already offered by you > guys. > But, I am not sure about those kind of instructions needs many > number of operands that is not fixed. That is, it can be 4, 5, > 6 ... which changes according to the program. > Would you mind letting me know about this? > Thank you. > > Seung Jae Lee > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev