Displaying 2 results from an estimated 2 matches for "error_block".
2009 Jul 03
0
[LLVMdev] Inserting nodes into SelectionDAG (X86)
...FromReg(Chain, X86::EAX, MVT::i32);
// operand of first callee instruction
SDValue rhs = DAG.getNode(ISD::ADD, MVT::i32, Callee, DAG.getConstant(4,
MVT::i32));
Ops.push_back(Chain);
Ops.push_back(DAG.getCondCode(ISD::SETEQ));
Ops.push_back(lhs);
Ops.push_back(rhs);
MachineBasicBlock *error_block;
Ops.push_back(DAG.getBasicBlock(error_block));
Chain = DAG.getNode(ISD::BR_CC, MVT::Other, &Ops[0], Ops.size());
Now, there are, I guess, basically two things here:
3) How to access the value at address [callee + 4]? I guess, Callee won't
work as a parameter for add, and the result o...
2009 Jul 01
3
[LLVMdev] Inserting nodes into SelectionDAG (X86)
On Jul 1, 2009, at 2:22 PMPDT, Dan Gohman wrote:
>> Ops.push_back(DAG.getConstant(1, MVT::i32));
>> Chain = DAG.getNode(ISD::ADD, DAG.getVTList(MVT::Other, MVT::i32),
>> &Ops[0], Ops.size());
>>
>> Isn't that the way how it is supposed to work?
>
> ADD does not use a chain, so there's no chain operand, or
> MVT::Other result for it in an ADD