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

陳韋任 chenwj at iis.sinica.edu.tw
Sun May 8 18:39:18 PDT 2011


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