Displaying 1 result from an estimated 1 matches for "emit_2".
Did you mean:
emit32
2009 Jul 02
1
[LLVMdev] [Help Needed] tblgen code get a compile error
...,const llvm::SDValue *,unsigned int)' :
cannot convert parameter 6 from 'llvm::SDValue' to 'const llvm::SDValue *'
No user-defined-conversion operator available that can perform this
conv
ersion, or the operator cannot be called
I checked the generated the code:
SDNode *Emit_2(const SDValue &N, unsigned Opc0, MVT VT0) DISABLE_INLINE {
SDValue N0 = N.getOperand(0);
SDValue N1 = N.getOperand(1);
SDNode *ResNode = CurDAG->SelectNodeTo(N.getNode(), Opc0, VT0, MVT::i8,
MVT::Flag, N0, N1); <==== error here.
SDValue InFlag(ResNode, 2);
ReplaceUses(SDValue(N....