search for: branch_nzero

Displaying 2 results from an estimated 2 matches for "branch_nzero".

2008 Sep 18
0
[LLVMdev] Custom Opcodes versus built-in opcodes
...> What I want to happen is to take the branch w/ condition codes and convert > it into a comparison and then a branch based on the result to the BasicBlock > in the Jump SDValue. What I expect to occur after this function returns is > for the SDValue that I created to be matched with my BRANCH_NZERO > instruction in my InstrInfo.td file. Instead what is occurring is that it is > mapping it for some reason to the FRAMEADDR built-in instruction and running > LowerFRAMEADDR. Both instructions are enumerated to the same value, but they > are part of different namespaces. > That'...
2008 Sep 18
4
[LLVMdev] Custom Opcodes versus built-in opcodes
...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 it into a comparison an...