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

陳韋任
Mon, 09 May 2011 01:39:18 -0000

Hi, Justin

> We're been 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 else should I look into?

  Thanks.

Regards,
chenwj

--
Wei-Ren Chen (陳韋任)