search for: cond_n

Displaying 4 results from an estimated 4 matches for "cond_n".

Did you mean: cond_t
2017 Feb 25
2
Help understanding and lowering LLVM IDS conditional codes correctly
...fo().softenSetCCOperands(DAG, MVT::f32, LHS, RHS, CC, dl); SDValue Flag = DAG.getNode(XXXISD::CMP, dl, MVT::Glue, LHS, RHS); if (!RHS.getNode()) { RHS = DAG.getConstant(0, dl, LHS.getValueType()); TargetCC = DAG.getConstant(XXXCC::COND_NE, dl, MVT::i8); } return DAG.getNode(XXXISD::BR_CC, dl, MVT::Other, Chain, Dest, TargetCC, Flag); } and code for getFPCCtoXXCC() is as following: static void getFPCCtoXXCC(ISD::CondCode CC, XXXCC::CondCodes &CondCode) { switch (CC) { default: llvm_unreac...
2017 Mar 09
2
Help understanding and lowering LLVM IDS conditional codes correctly
..., LHS, > RHS, > CC, dl); > > SDValue Flag = DAG.getNode(XXXISD::CMP, dl, MVT::Glue, LHS, RHS); > > if (!RHS.getNode()) { > RHS = DAG.getConstant(0, dl, LHS.getValueType()); > TargetCC = DAG.getConstant(XXXCC::COND_NE, dl, MVT::i8); > } > return DAG.getNode(XXXISD::BR_CC, dl, MVT::Other, > Chain, Dest, TargetCC, Flag); > } > > and code for getFPCCtoXXCC() is as following: > > static void getFPCCtoXXCC(ISD::CondCode CC, XXXCC::CondCodes &CondCode) { > s...
2017 Mar 14
2
Help understanding and lowering LLVM IDS conditional codes correctly
...CC, dl); >> >> SDValue Flag = DAG.getNode(XXXISD::CMP, dl, MVT::Glue, >> LHS, RHS); >> >> if (!RHS.getNode()) { >> RHS = DAG.getConstant(0, dl, LHS.getValueType()); >> TargetCC = DAG.getConstant(XXXCC::COND_NE, dl, MVT::i8); >> } >> return DAG.getNode(XXXISD::BR_CC, dl, MVT::Other, >> Chain, Dest, TargetCC, Flag); >> } >> >> and code for getFPCCtoXXCC() is as following: >> >> static...
2012 Oct 10
2
[LLVMdev] Solicit code review (change to CodeGen)
...onstantSDNode *CmpAgainst = 0; + if ((Cond.getOpcode() == X86ISD::CMP || Cond.getOpcode() == X86ISD::SUB) && + (CmpAgainst = dyn_cast<ConstantSDNode>(Cond.getOperand(1))) && + dyn_cast<ConstantSDNode>(Cond.getOperand(0)) == 0) { + + if (CC == X86::COND_NE && + CmpAgainst == dyn_cast<ConstantSDNode>(FalseOp)) { + CC = X86::GetOppositeBranchCondition(CC); + std::swap(TrueOp, FalseOp); + } + + if (CC == X86::COND_E && + CmpAgainst == dyn_cast<ConstantSDNode>(TrueOp)) { + SD...