| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 269 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction() local 270 auto *V1VTy = CondV->getType(); in ConstantFoldSelectInstruction() 272 Type *Ty = IntegerType::get(CondV->getContext(), 32); in ConstantFoldSelectInstruction() 279 auto *Cond = cast<Constant>(CondV->getOperand(i)); in ConstantFoldSelectInstruction()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenFunction.cpp | 2088 llvm::Value *CondV; in EmitBranchOnBoolExpr() local 2091 CondV = EvaluateExprAsBool(Cond); in EmitBranchOnBoolExpr() 2108 maybeUpdateMCDCCondBitmap(MCDCBaseExpr, CondV); in EmitBranchOnBoolExpr() 2128 llvm::Value *NewCondV = emitCondLikelihoodViaExpectIntrinsic(CondV, LH); in EmitBranchOnBoolExpr() 2129 if (CondV != NewCondV) in EmitBranchOnBoolExpr() 2130 CondV = NewCondV; in EmitBranchOnBoolExpr() 2137 llvm::Instruction *BrInst = Builder.CreateCondBr(CondV, TrueBlock, FalseBlock, in EmitBranchOnBoolExpr() 2139 addInstToNewSourceAtom(BrInst, CondV); in EmitBranchOnBoolExpr()
|
| H A D | CGExprScalar.cpp | 5558 llvm::Value *CondV = CGF.EmitScalarExpr(condExpr); in VisitAbstractConditionalOperator() local 5569 llvm::Value *TestMSB = Builder.CreateICmpSLT(CondV, zeroVec); in VisitAbstractConditionalOperator() 5598 llvm::Value *CondV = CGF.EmitScalarExpr(condExpr); in VisitAbstractConditionalOperator() local 5606 CondV = Builder.CreateICmpNE(CondV, ZeroVec, "vector_cond"); in VisitAbstractConditionalOperator() 5607 return Builder.CreateSelect(CondV, LHS, RHS, "vector_select"); in VisitAbstractConditionalOperator() 5615 llvm::Value *CondV = CGF.EvaluateExprAsBool(condExpr); in VisitAbstractConditionalOperator() local 5616 llvm::Value *StepV = Builder.CreateZExtOrBitCast(CondV, CGF.Int64Ty); in VisitAbstractConditionalOperator() 5632 return Builder.CreateSelect(CondV, LHS, RHS, "cond"); in VisitAbstractConditionalOperator()
|
| H A D | CGStmt.cpp | 2330 llvm::Value *CondV = EmitScalarExpr(S.getCond()); in EmitSwitchStmt() local 2338 SwitchInsn = Builder.CreateSwitch(CondV, DefaultBlock); in EmitSwitchStmt() 2339 addInstToNewSourceAtom(SwitchInsn, CondV); in EmitSwitchStmt()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 682 Value *CondV = SelI->getCondition(); in matchLeftShift() local 691 if (!match(CondV, m_ICmp(P, m_And(m_Value(A), m_Value(B)), m_Value(C))) && in matchLeftShift() 692 !match(CondV, m_ICmp(P, m_Value(C), m_And(m_Value(A), m_Value(B))))) in matchLeftShift() 796 Value *CondV = SelI->getCondition(); in matchRightShift() local 806 if (match(CondV, m_c_ICmp(P, m_Value(C), m_Zero()))) { in matchRightShift() 812 } else if (match(CondV, m_c_ICmp(P, m_Value(C), m_One()))) { in matchRightShift()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchISelLowering.cpp | 568 SDValue CondV = N->getOperand(0); in combineSelectToBinOp() local 576 SDValue Neg = DAG.getNegative(CondV, DL, VT); in combineSelectToBinOp() 582 DAG.getNode(ISD::ADD, DL, VT, CondV, DAG.getAllOnesConstant(DL, VT)); in combineSelectToBinOp() 589 DAG.getNode(ISD::ADD, DL, VT, CondV, DAG.getAllOnesConstant(DL, VT)); in combineSelectToBinOp() 594 SDValue Neg = DAG.getNegative(CondV, DL, VT); in combineSelectToBinOp() 603 SDValue Neg = DAG.getNegative(CondV, DL, VT); in combineSelectToBinOp() 610 if (CondV.getOpcode() == ISD::SETCC && TrueV.getOpcode() == ISD::SETCC && in combineSelectToBinOp() 612 SDValue LHS = CondV.getOperand(0); in combineSelectToBinOp() 613 SDValue RHS = CondV.getOperand(1); in combineSelectToBinOp() 614 ISD::CondCode CC = cast<CondCodeSDNode>(CondV.getOperand(2))->get(); in combineSelectToBinOp() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LowerMatrixIntrinsics.cpp | 2379 SmallVector<Value*> CondV; in VisitSelectInst() local 2382 llvm::copy(C.vectors(), std::back_inserter(CondV)); in VisitSelectInst() 2384 CondV.resize(A.getNumVectors()); in VisitSelectInst() 2385 llvm::fill(CondV, Cond); in VisitSelectInst() 2388 for (auto [CV, AV, BV] : llvm::zip_equal(CondV, A.vectors(), B.vectors())) in VisitSelectInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 8932 SDValue CondV = N->getOperand(0); in combineSelectToBinOp() local 8941 SDValue Neg = DAG.getNegative(CondV, DL, VT); in combineSelectToBinOp() 8946 SDValue Neg = DAG.getNode(ISD::ADD, DL, VT, CondV, in combineSelectToBinOp() 8953 SDValue Neg = DAG.getNode(ISD::ADD, DL, VT, CondV, in combineSelectToBinOp() 8959 SDValue Neg = DAG.getNegative(CondV, DL, VT); in combineSelectToBinOp() 8969 SDValue Neg = DAG.getNegative(CondV, DL, VT); in combineSelectToBinOp() 8976 if (CondV.getOpcode() == ISD::SETCC && TrueV.getOpcode() == ISD::SETCC && in combineSelectToBinOp() 8978 SDValue LHS = CondV.getOperand(0); in combineSelectToBinOp() 8979 SDValue RHS = CondV.getOperand(1); in combineSelectToBinOp() 8980 ISD::CondCode CC = cast<CondCodeSDNode>(CondV.getOperand(2))->get(); in combineSelectToBinOp() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngine.cpp | 3101 DefinedOrUnknownSVal CondV = CondV_untested.castAs<DefinedOrUnknownSVal>(); in processSwitch() local 3127 if (std::optional<NonLoc> NL = CondV.getAs<NonLoc>()) in processSwitch()
|