[LLVMdev] [LLVMDev] Add not instruction to PTX backend
陳韋任
chenwj at iis.sinica.edu.tw
Sat May 7 23:41:46 PDT 2011
Hi, all
I am trying to add "not" instruction support to PTX backend.
I add the line below in PTXInstrInfo.td,
defm NOT : PTX_LOGIC<"not", not>;
But I get errors below,
-------------------------------------------------------------------------------
Included from PTX.td:75:
PTXInstrInfo.td:732:10: error: Value 'PTX_LOGIC::opnode' of type 'SDNode' is incompatible with initializer 'not'
defm NOT : PTX_LOGIC<"not", not>;
^
llvm[3]: Building PTX.td subtarget information with tblgen
Included from PTX.td:75:
PTXInstrInfo.td:732:10: error: Value 'PTX_LOGIC::opnode' of type 'SDNode' is incompatible with initializer 'not'
defm NOT : PTX_LOGIC<"not", not>;
^
llvm[3]: Building PTX.td assembly writer with tblgen
Included from PTX.td:75:
PTXInstrInfo.td:732:10: error: Value 'PTX_LOGIC::opnode' of type 'SDNode' is incompatible with initializer 'not'
defm NOT : PTX_LOGIC<"not", not>;
^
-------------------------------------------------------------------------------
How do I fix those errors?
I also see that multiclass PTX_LOGIC only handles 3 operand form,
i.e., xor.pred d, a, b;. Should I add something to make PTX_LOGIC
support 2 operand form?
Thanks.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
More information about the llvm-dev
mailing list