[LLVMdev] [LLVMDev] Add not instruction to PTX backend

陳韋任 chenwj at iis.sinica.edu.tw
Mon May 9 20:48:50 PDT 2011


> The error here is due to the fact that the 'not' dag is defined as a
> pattern fragment rather than being an explicit dag node in itself.
> 
> As a result, you'd need to define your multiclass as:
>
> multiclass PTX_LOGIC_20P<string opcstr, PatFrag opnode> { ... }
>
> This will correctly match the opnode, though it'll depend on the other
> 2-operand logic instructions whether this is how it should be done. If
> you look at the definitions in include/Target/TargetSelectionDAG.td,
> you'll see which instructions are defined as a PatFrag and which are
> plain SDNodes.
>
>Dan

Thanks, Dan.

-- 
Wer-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