| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 843 auto *CondVal = SI.getCondition(); in foldSelectZeroOrMul() local 1881 Value *CondVal = SI.getCondition(); in foldAddSubSelect() local 1956 Value *CondVal = SI.getCondition(); in foldOverflowingAddSubSelect() local 2115 Value *CondVal = SI.getCondition(); in canonicalizeSelectToShuffle() local 2580 Value *CondVal = SI.getCondition(); in foldSelectWithSRem() local 3043 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in foldSelectOfBools() 3048 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in foldSelectOfBools() 3081 if (match(CondVal, in foldSelectOfBools() 3101 if (match(CondVal, in foldSelectOfBools() 3420 Value *NotCond = Builder.CreateNot(CondVal, "not." + CondVal->getName()); in visitSelectInst() [all …]
|
| H A D | InstructionCombining.cpp | 1005 Value *A, *CondVal, *TrueVal, *FalseVal; in foldBinOpOfSelectAndCastOfSelectCondition() local 1011 match(SelectOp, m_Select(m_Value(CondVal), m_Value(TrueVal), in foldBinOpOfSelectAndCastOfSelectCondition() 1044 if (CondVal == A) { in foldBinOpOfSelectAndCastOfSelectCondition() 1046 return SelectInst::Create(CondVal, NewTrueVal, in foldBinOpOfSelectAndCastOfSelectCondition() 1050 if (match(A, m_Not(m_Specific(CondVal)))) { in foldBinOpOfSelectAndCastOfSelectCondition() 1052 return SelectInst::Create(CondVal, NewTrueVal, in foldBinOpOfSelectAndCastOfSelectCondition() 4695 bool CondVal = Cond->getZExtValue(); in prepareWorklist() local 4696 HandleOnlyLiveSuccessor(BB, BI->getSuccessor(!CondVal)); in prepareWorklist()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SCCPSolver.cpp | 1747 ValueLatticeElement CondVal = getValueState(OtherOp); in handleCallResult() local 1749 if (CondVal.isConstantRange() || CopyOfVal.isConstantRange()) { in handleCallResult() 1754 if (CondVal.isConstantRange()) in handleCallResult() 1756 Pred, CondVal.getConstantRange()); in handleCallResult() 1779 (CondVal.isConstant() || CondVal.isNotConstant())) { in handleCallResult() 1783 mergeInValue(IV, &CB, CondVal); in handleCallResult() 1785 } else if (Pred == CmpInst::ICMP_NE && CondVal.isConstant()) { in handleCallResult() 1789 ValueLatticeElement::getNot(CondVal.getConstant())); in handleCallResult()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | LazyValueInfo.cpp | 1586 std::optional<ValueLatticeElement> CondVal; in getValueAtUse() local 1594 CondVal = in getValueAtUse() 1598 CondVal = in getValueAtUse() 1603 CondVal = *getEdgeValueLocal(V, PHI->getIncomingBlock(*CurrU), in getValueAtUse() 1606 if (CondVal) in getValueAtUse() 1607 VL = intersect(VL, *CondVal); in getValueAtUse()
|
| H A D | InstructionSimplify.cpp | 4613 static Value *simplifySelectWithICmpCond(Value *CondVal, Value *TrueVal, in simplifySelectWithICmpCond() argument 4619 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)))) in simplifySelectWithICmpCond() 4637 matchDecomposedSelectPattern(cast<ICmpInst>(CondVal), TrueVal, FalseVal, in simplifySelectWithICmpCond()
|
| H A D | ScalarEvolution.cpp | 9678 auto *CondVal = dyn_cast_or_null<ConstantInt>( in computeExitCountExhaustively() local 9682 if (!CondVal) return getCouldNotCompute(); in computeExitCountExhaustively() 9684 if (CondVal->getValue() == uint64_t(ExitWhen)) { in computeExitCountExhaustively()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaStmt.cpp | 1702 auto CondVal = Cond.get(); in ActOnWhileStmt() local 1703 CheckBreakContinueBinding(CondVal.second); in ActOnWhileStmt() 1705 if (CondVal.second && in ActOnWhileStmt() 1706 !Diags.isIgnored(diag::warn_comma_operator, CondVal.second->getExprLoc())) in ActOnWhileStmt() 1707 CommaVisitor(*this).Visit(CondVal.second); in ActOnWhileStmt() 1712 return WhileStmt::Create(Context, CondVal.first, CondVal.second, Body, in ActOnWhileStmt()
|
| H A D | AnalysisBasedWarnings.cpp | 816 const Stmt *Else, bool CondVal, in CreateIfFixit() argument 818 if (CondVal) { in CreateIfFixit()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGOpenMPRuntime.cpp | 6186 bool UpperBoundOnly, llvm::Value **CondVal) { in getNumThreads() argument 6196 if (CondVal && Dir->hasClausesOfKind<OMPIfClause>()) { in getNumThreads() 6228 *CondVal = CGF.EvaluateExprAsBool(CondExpr); in getNumThreads() 6311 getNumThreads(CGF, CS, NTPtr, UpperBound, UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective() 6383 UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective() 6392 if (CondVal && D.hasClausesOfKind<OMPIfClause>()) { in getNumThreadsExprForTargetDirective() 6409 *CondVal = CGF.EvaluateExprAsBool(Cond); in getNumThreadsExprForTargetDirective() 6438 llvm::Value *CondVal = nullptr; in emitNumThreadsForTargetDirective() local 6444 CGF, D, UpperBound, /* UpperBoundOnly */ false, &CondVal, in emitNumThreadsForTargetDirective() 6475 if (CondVal) { in emitNumThreadsForTargetDirective() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Execution.cpp | 953 GenericValue CondVal = getOperandValue(Cond, SF); in visitSwitchInst() local 959 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 596 const Value *CondVal = BrInst.getCondition(); in translateBr() local 619 const Instruction *CondI = dyn_cast<Instruction>(CondVal); in translateBr() 656 SwitchCG::CaseBlock CB(CmpInst::ICMP_EQ, false, CondVal, in translateBr()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | OpenMPClause.cpp | 2586 if (std::optional<APSInt> CondVal = in getAsVariantMatchInfo() local 2588 VMI.addTrait(CondVal->isZero() ? TraitProperty::user_condition_false in getAsVariantMatchInfo()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | NewGVN.cpp | 2514 auto *CondVal = cast<ConstantInt>(CondEvaluated); in processOutgoingEdges() local 2516 auto Case = *SI->findCaseValue(CondVal); in processOutgoingEdges()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 2618 const Value *CondVal = I.getCondition(); in visitBr() local 2638 const Instruction *BOp = dyn_cast<Instruction>(CondVal); in visitBr() 2683 CaseBlock CB(ISD::SETEQ, CondVal, ConstantInt::getTrue(*DAG.getContext()), in visitBr()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 25764 unsigned CondVal = Op.getConstantOperandVal(3); in LowerINTRINSIC_WO_CHAIN() local 25770 DAG.getTargetConstant(CondVal, dl, MVT::i8)); in LowerINTRINSIC_WO_CHAIN() 25773 DAG.getTargetConstant(CondVal, dl, MVT::i8), Sae); in LowerINTRINSIC_WO_CHAIN()
|