/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSelect.cpp | 878 auto *CondVal = SI.getCondition(); in foldSelectZeroOrMul() 887 if (!match(CondVal, m_ICmp(Predicate, m_Value(X), m_Zero())) || in foldSelectZeroOrMul() 904 auto *ZeroC = cast<Constant>(cast<Instruction>(CondVal)->getOperand(1)); in canonicalizeSaturatedSubtract() 2023 Value *CondVal = SI.getCondition(); in foldAddSubSelect() 2073 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect() 2098 Value *CondVal = SI.getCondition(); in foldOverflowingAddSubSelect() 2103 if (!match(CondVal, m_ExtractValue<1>(m_WithOverflowInst(II))) || in foldOverflowingAddSubSelect() 2257 Value *CondVal = SI.getCondition(); in canonicalizeSelectToShuffle() 2259 auto *CondValTy = dyn_cast<FixedVectorType>(CondVal->getType()); in canonicalizeSelectToShuffle() 2260 if (!CondValTy || !match(CondVal, m_Constan in canonicalizeSelectToShuffle() 859 auto *CondVal = SI.getCondition(); foldSelectZeroOrMul() local 2022 Value *CondVal = SI.getCondition(); foldAddSubSelect() local 2097 Value *CondVal = SI.getCondition(); foldOverflowingAddSubSelect() local 2256 Value *CondVal = SI.getCondition(); canonicalizeSelectToShuffle() local 2718 Value *CondVal = SI.getCondition(); foldSelectWithSRem() local 2793 simplifyNestedSelectsUsingImpliedCond(SelectInst & SI,Value * CondVal,bool CondIsTrue,const DataLayout & DL) simplifyNestedSelectsUsingImpliedCond() argument 2824 Value *CondVal = SI.getCondition(); foldSelectWithFCmpToFabs() local 3094 Value *CondVal = SI.getCondition(); foldSelectOfBools() local 3556 Value *CondVal = SI.getCondition(); visitSelectInst() local [all...] |
H A D | InstructionCombining.cpp | 1035 Value *A, *CondVal, *TrueVal, *FalseVal; in foldBinOpOfSelectAndCastOfSelectCondition() 1041 match(SelectOp, m_Select(m_Value(CondVal), m_Value(TrueVal), in foldBinOpOfSelectAndCastOfSelectCondition() 1074 if (CondVal == A) { in foldBinOpOfSelectAndCastOfSelectCondition() 1076 return SelectInst::Create(CondVal, NewTrueVal, in foldBinOpOfSelectAndCastOfSelectCondition() 1080 if (match(A, m_Not(m_Specific(CondVal)))) { in foldBinOpOfSelectAndCastOfSelectCondition() 1082 return SelectInst::Create(CondVal, NewTrueVal, in tryFactorizationFolds() 5437 bool CondVal = Cond->getZExtValue(); in combineInstructionsOverFunction() 5438 HandleOnlyLiveSuccessor(BB, BI->getSuccessor(!CondVal)); in combineInstructionsOverFunction() 1028 Value *A, *CondVal, *TrueVal, *FalseVal; foldBinOpOfSelectAndCastOfSelectCondition() local 5319 bool CondVal = Cond->getZExtValue(); prepareWorklist() local
|
/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | TypeErasedDataflowAnalysis.cpp | 310 auto *CondVal = Copy.Env.get<BoolValue>(*Cond); 315 assert(CondVal != nullptr); in builtinTransferStatement() 317 BranchVal ? CondVal : &Copy.Env.makeNot(*CondVal); in builtinTransferStatement() 294 auto *CondVal = Copy.Env.get<BoolValue>(*Cond); computeBlockInputState() local
|
/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SCCPSolver.cpp | 1883 ValueLatticeElement CondVal = getValueState(OtherOp); in handleCallResult() 1885 if (CondVal.isConstantRange() || CopyOfVal.isConstantRange()) { in handleCallResult() 1890 if (CondVal.isConstantRange()) in handleCallResult() 1892 Pred, CondVal.getConstantRange()); in handleCallResult() 1919 (CondVal.isConstant() || CondVal.isNotConstant())) { in solve() 1923 mergeInValue(IV, &CB, CondVal); in solve() 1925 } else if (Pred == CmpInst::ICMP_NE && CondVal.isConstant()) { in solve() 1929 ValueLatticeElement::getNot(CondVal.getConstant())); in solve() 1803 ValueLatticeElement CondVal = getValueState(OtherOp); handleCallResult() local
|
/llvm-project/llvm/lib/Analysis/ |
H A D | LazyValueInfo.cpp | 1635 std::optional<ValueLatticeElement> CondVal; 1643 CondVal = in getOrCreateImpl() 1647 CondVal = in getOrCreateImpl() 1652 CondVal = *getEdgeValueLocal(V, PHI->getIncomingBlock(*CurrU), in getImpl() 1655 if (CondVal) 1656 VL = VL.intersect(*CondVal); in ~LazyValueInfo() 1572 std::optional<ValueLatticeElement> CondVal; getValueAtUse() local
|
H A D | InstructionSimplify.cpp | 4654 static Value *simplifySelectWithICmpCond(Value *CondVal, Value *TrueVal, in simplifySelectWithICmpCond() 4660 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)))) in simplifySelectWithICmpCond() 4678 matchDecomposedSelectPattern(cast<ICmpInst>(CondVal), TrueVal, FalseVal, in simplifySelectWithICmpCond() 4621 simplifySelectWithICmpCond(Value * CondVal,Value * TrueVal,Value * FalseVal,const SimplifyQuery & Q,unsigned MaxRecurse) simplifySelectWithICmpCond() argument
|
H A D | ScalarEvolution.cpp | 9817 auto *CondVal = dyn_cast_or_null<ConstantInt>( in BuildConstantFromSCEV() 9821 if (!CondVal) return getCouldNotCompute(); in BuildConstantFromSCEV() 9823 if (CondVal->getValue() == uint64_t(ExitWhen)) { in BuildConstantFromSCEV() 9738 auto *CondVal = dyn_cast_or_null<ConstantInt>( computeExitCountExhaustively() local
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaStmt.cpp | 1798 auto CondVal = Cond.get(); in VisitBinaryOperator() 1799 CheckBreakContinueBinding(CondVal.second); in VisitBinaryOperator() 1801 if (CondVal.second && in VisitCastExpr() 1802 !Diags.isIgnored(diag::warn_comma_operator, CondVal.second->getExprLoc())) in VisitCastExpr() 1803 CommaVisitor(*this).Visit(CondVal.second); in VisitCastExpr() 1817 return WhileStmt::Create(Context, CondVal.first, CondVal.second, Body, in VisitConditionalOperator() 1725 auto CondVal = Cond.get(); ActOnWhileStmt() local
|
H A D | AnalysisBasedWarnings.cpp | 811 /// condition is CondVal. in SuggestInitializationFixit() 813 const Stmt *Else, bool CondVal, 815 if (CondVal) { in CreateIfFixit() 816 CreateIfFixit(Sema & S,const Stmt * If,const Stmt * Then,const Stmt * Else,bool CondVal,FixItHint & Fixit1,FixItHint & Fixit2) CreateIfFixit() argument
|
/llvm-project/clang/lib/CodeGen/ |
H A D | CGOpenMPRuntime.cpp | 6179 /// store the condition in \p CondVal. If \p E, and \p CondVal respectively, are in emitNumTeamsForTargetDirective() 6183 bool UpperBoundOnly, llvm::Value **CondVal) { in emitNumTeamsForTargetDirective() 6193 if (CondVal && Dir->hasClausesOfKind<OMPIfClause>()) { 6225 *CondVal = CGF.EvaluateExprAsBool(CondExpr); in getNumThreads() 6274 bool UpperBoundOnly, llvm::Value **CondVal, const Expr **ThreadLimitExpr) { in getNumThreads() 6308 getNumThreads(CGF, CS, NTPtr, UpperBound, UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective() 6351 getNumThreads(CGF, CS, NTPtr, UpperBound, UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective() 6365 getNumThreads(CGF, CS, NTPtr, UpperBound, UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective() 6371 getNumThreads(CGF, CS, NTPtr, UpperBound, UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective() 6196 getNumThreads(CodeGenFunction & CGF,const CapturedStmt * CS,const Expr ** E,int32_t & UpperBound,bool UpperBoundOnly,llvm::Value ** CondVal) getNumThreads() argument 6287 getNumThreadsExprForTargetDirective(CodeGenFunction & CGF,const OMPExecutableDirective & D,int32_t & UpperBound,bool UpperBoundOnly,llvm::Value ** CondVal,const Expr ** ThreadLimitExpr) getNumThreadsExprForTargetDirective() argument 6448 llvm::Value *CondVal = nullptr; emitNumThreadsForTargetDirective() local [all...] |
/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | Execution.cpp | 917 GenericValue CondVal = getOperandValue(Cond, SF); in visitSwitchInst() local 923 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
|
/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | IRTranslator.cpp | 611 const Value *CondVal = BrInst.getCondition(); in translateBr() 632 const Instruction *CondI = dyn_cast<Instruction>(CondVal); in translateBr() 669 SwitchCG::CaseBlock CB(CmpInst::ICMP_EQ, false, CondVal, in addSuccessorWithProb() 596 const Value *CondVal = BrInst.getCondition(); translateBr() local
|
/llvm-project/clang/lib/AST/ |
H A D | OpenMPClause.cpp | 2767 if (std::optional<APSInt> CondVal = in matchesISATrait() 2769 VMI.addTrait(CondVal->isZero() ? TraitProperty::user_condition_false in matchesISATrait() 2588 if (std::optional<APSInt> CondVal = getAsVariantMatchInfo() local
|
/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | NewGVN.cpp | 2551 auto *CondVal = cast<ConstantInt>(CondEvaluated); in processOutgoingEdges() 2553 auto Case = *SI->findCaseValue(CondVal); 2514 auto *CondVal = cast<ConstantInt>(CondEvaluated); processOutgoingEdges() local
|
/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGBuilder.cpp | 2809 const Value *CondVal = I.getCondition(); in visitBr() 2830 const Instruction *BOp = dyn_cast<Instruction>(CondVal); in visitBr() 2880 CaseBlock CB(ISD::SETEQ, CondVal, ConstantInt::getTrue(*DAG.getContext()), 2803 const Value *CondVal = I.getCondition(); visitBr() local
|
/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 25998 unsigned CondVal = Op.getConstantOperandVal(3); LowerINTRINSIC_WO_CHAIN() local [all...] |