Displaying 6 results from an estimated 6 matches for "ptx_logic_2op".
2011 May 09
3
[LLVMdev] [LLVMDev] Add not instruction to PTX backend
...een writing multiclasses for each unique type of instruction. The
> current PTX_LOGIC version is for 3-operand instructions. A new multiclass
> needs to be created for 2-operand logic instructions.
I am trying to add a multiclass for 2-operand logic instructions. For
example,
multiclass PTX_LOGIC_2OP<string opcstr, SDNode opnode> {
def ripreds : InstPTX<(outs Preds:$d),
(ins Preds:$a),
!strconcat(opcstr, ".pred\t$d, $a"),
[(set Preds:$d, (opnode Preds:$a))]>;
...
}
But the error is still the same. Where...
2011 May 11
3
[LLVMdev] [LLVMDev] Add not instruction to PTX backend
Hi, Dan
I add "not" instruction support in PTXInstrInfo.td as
you suggested before.
multiclass PTX_LOGIC_2OP<string opcstr,PatFrag opnode> {
...
}
Now I am trying to write test case for logic and shift
operations. But I have a trouble in mapping LLVM IR to PTX
IR for "not" instruction. The test case I wrote is,
define ptx_device i16 @t4_u16(i16 %x) {
; CHECK: not.b16 rh0, rh1, rh2;
;...
2011 May 09
0
[LLVMdev] [LLVMDev] Add not instruction to PTX backend
...t PTX_LOGIC version is for 3-operand instructions. A new multiclass
needs to be created for 2-operand logic instructions.
</pre>
</blockquote>
<pre wrap=""><!---->
I am trying to add a multiclass for 2-operand logic instructions. For
example,
multiclass PTX_LOGIC_2OP<string opcstr, SDNode opnode> {
def ripreds : InstPTX<(outs Preds:$d),
(ins Preds:$a),
!strconcat(opcstr, ".pred\t$d, $a"),
[(set Preds:$d, (opnode Preds:$a))]>;
...
}
</pre>
</blockquote>
The er...
2011 May 08
0
[LLVMdev] [LLVMDev] Add not instruction to PTX backend
On Sun, May 8, 2011 at 2:41 AM, 陳韋任 <chenwj at iis.sinica.edu.tw> wrote:
> 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,
>
>
>
2011 May 12
0
[LLVMdev] [LLVMDev] Add not instruction to PTX backend
...valid, it's just that it may not
actually be needed! (Note I haven't investigated whether or not that's
the case here though.) :-)
Dan
陳韋任 wrote:
> Hi, Dan
>
> I add "not" instruction support in PTXInstrInfo.td as
> you suggested before.
>
> multiclass PTX_LOGIC_2OP<string opcstr,PatFrag opnode> {
> ...
> }
>
> Now I am trying to write test case for logic and shift
> operations. But I have a trouble in mapping LLVM IR to PTX
> IR for "not" instruction. The test case I wrote is,
>
> define ptx_device i16 @t4_u16(i16 %...
2011 May 08
2
[LLVMdev] [LLVMDev] Add not instruction to PTX backend
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