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

陳韋任
Tue, 10 May 2011 03:48:50 -0000

> 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 (陳韋任)