Displaying 1 result from an estimated 1 matches for "bropcode".
Did you mean:
brocade
2008 Sep 18
4
[LLVMdev] Custom Opcodes versus built-in opcodes
...SDValue Chain = Op.getOperand(0);
SDValue LHS = Op.getOperand(2);
SDValue RHS = Op.getOperand(3);
SDValue Jump = Op.getOperand(4);
bool logical_nz = getLogicalNZ(cmpOpcode);
SDValue CmpValue;
unsigned int brOpcode = CUSTOM::BRANCH_NZERO;
CmpValue = DAG.getNode(CUSTOM::CMP, LHS.getValueType(),
Chain, DAG.getConstant(cmpOpcode, MVT::i32), LHS, RHS);
return DAG.getNode(brOpcode, VT, Chain, Jump, CmpValue);
}
What I want to happen is to take the branch w/ condition codes and
convert...