| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 123 static Value *foldSelectICmpAnd(SelectInst &Sel, Value *CondVal, Value *TrueVal, in foldSelectICmpAnd() argument 143 if (CreateAnd && !CondVal->hasOneUse()) in foldSelectICmpAnd() 184 1 + CondVal->hasOneUse()) in foldSelectICmpAnd() 773 static Value *foldSelectICmpAndBinOp(Value *CondVal, Value *TrueVal, in foldSelectICmpAndBinOp() argument 813 (CondVal->hasOneUse() + BinOp->hasOneUse())) in foldSelectICmpAndBinOp() 882 auto *CondVal = SI.getCondition(); in foldSelectZeroOrMul() local 891 if (!match(CondVal, m_ICmp(Predicate, m_Value(X), m_Zero())) || in foldSelectZeroOrMul() 908 auto *ZeroC = cast<Constant>(cast<Instruction>(CondVal)->getOperand(1)); in foldSelectZeroOrMul() 2079 Value *CondVal = SI.getCondition(); in foldAddSubSelect() local 2129 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect() [all …]
|
| H A D | InstructionCombining.cpp | 1056 Value *A, *CondVal, *TrueVal, *FalseVal; in foldBinOpOfSelectAndCastOfSelectCondition() local 1062 match(SelectOp, m_Select(m_Value(CondVal), m_Value(TrueVal), in foldBinOpOfSelectAndCastOfSelectCondition() 1095 if (CondVal == A) { in foldBinOpOfSelectAndCastOfSelectCondition() 1097 return SelectInst::Create(CondVal, NewTrueVal, in foldBinOpOfSelectAndCastOfSelectCondition() 1101 if (match(A, m_Not(m_Specific(CondVal)))) { in foldBinOpOfSelectAndCastOfSelectCondition() 1103 return SelectInst::Create(CondVal, NewTrueVal, in foldBinOpOfSelectAndCastOfSelectCondition() 5782 bool CondVal = Cond->getZExtValue(); in prepareWorklist() local 5783 HandleOnlyLiveSuccessor(BB, BI->getSuccessor(!CondVal)); in prepareWorklist()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | TypeErasedDataflowAnalysis.cpp | 309 auto *CondVal = Copy.Env.get<BoolValue>(*Cond); in computeBlockInputState() local 314 assert(CondVal != nullptr); in computeBlockInputState() 316 BranchVal ? CondVal : &Copy.Env.makeNot(*CondVal); in computeBlockInputState()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SCCPSolver.cpp | 1925 ValueLatticeElement CondVal = getValueState(OtherOp); in handleCallResult() local 1927 if (CondVal.isConstantRange() || CopyOfVal.isConstantRange()) { in handleCallResult() 1932 if (CondVal.isConstantRange()) in handleCallResult() 1934 Pred, CondVal.getConstantRange()); in handleCallResult() 1961 (CondVal.isConstant() || CondVal.isNotConstant())) { in handleCallResult() 1965 mergeInValue(IV, &CB, CondVal); in handleCallResult() 1967 } else if (Pred == CmpInst::ICMP_NE && CondVal.isConstant()) { in handleCallResult() 1971 ValueLatticeElement::getNot(CondVal.getConstant())); in handleCallResult()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | LazyValueInfo.cpp | 1671 std::optional<ValueLatticeElement> CondVal; in getValueAtUse() local 1679 CondVal = in getValueAtUse() 1683 CondVal = in getValueAtUse() 1688 CondVal = *getEdgeValueLocal(V, PHI->getIncomingBlock(*CurrU), in getValueAtUse() 1691 if (CondVal) in getValueAtUse() 1692 VL = VL.intersect(*CondVal); in getValueAtUse()
|
| H A D | InstructionSimplify.cpp | 4617 static Value *simplifySelectWithBitTest(Value *CondVal, Value *TrueVal, in simplifySelectWithBitTest() argument 4619 if (auto Res = decomposeBitTest(CondVal)) in simplifySelectWithBitTest() 4653 static Value *simplifySelectWithICmpCond(Value *CondVal, Value *TrueVal, in simplifySelectWithICmpCond() argument 4659 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)))) in simplifySelectWithICmpCond() 4677 matchDecomposedSelectPattern(cast<ICmpInst>(CondVal), TrueVal, FalseVal, in simplifySelectWithICmpCond()
|
| H A D | ScalarEvolution.cpp | 9795 auto *CondVal = dyn_cast_or_null<ConstantInt>( in computeExitCountExhaustively() local 9799 if (!CondVal) return getCouldNotCompute(); in computeExitCountExhaustively() 9801 if (CondVal->getValue() == uint64_t(ExitWhen)) { in computeExitCountExhaustively()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaStmt.cpp | 1806 auto CondVal = Cond.get(); in ActOnWhileStmt() local 1807 CheckBreakContinueBinding(CondVal.second); in ActOnWhileStmt() 1809 if (CondVal.second && in ActOnWhileStmt() 1810 !Diags.isIgnored(diag::warn_comma_operator, CondVal.second->getExprLoc())) in ActOnWhileStmt() 1811 CommaVisitor(*this).Visit(CondVal.second); in ActOnWhileStmt() 1825 return WhileStmt::Create(Context, CondVal.first, CondVal.second, Body, in ActOnWhileStmt()
|
| H A D | AnalysisBasedWarnings.cpp | 953 const Stmt *Else, bool CondVal, in CreateIfFixit() argument 955 if (CondVal) { in CreateIfFixit()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGOpenMPRuntime.cpp | 6447 bool UpperBoundOnly, llvm::Value **CondVal) { in getNumThreads() argument 6457 if (CondVal && Dir->hasClausesOfKind<OMPIfClause>()) { in getNumThreads() 6489 *CondVal = CGF.EvaluateExprAsBool(CondExpr); in getNumThreads() 6538 bool UpperBoundOnly, llvm::Value **CondVal, const Expr **ThreadLimitExpr) { in getNumThreadsExprForTargetDirective() argument 6572 getNumThreads(CGF, CS, NTPtr, UpperBound, UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective() 6615 getNumThreads(CGF, CS, NTPtr, UpperBound, UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective() 6629 getNumThreads(CGF, CS, NTPtr, UpperBound, UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective() 6635 getNumThreads(CGF, CS, NTPtr, UpperBound, UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective() 6648 UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective() 6657 if (CondVal && D.hasClausesOfKind<OMPIfClause>()) { in getNumThreadsExprForTargetDirective() [all …]
|
| /freebsd/contrib/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()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 610 const Value *CondVal = BrInst.getCondition(); in translateBr() local 631 const Instruction *CondI = dyn_cast<Instruction>(CondVal); in translateBr() 668 SwitchCG::CaseBlock CB(CmpInst::ICMP_EQ, false, CondVal, in translateBr()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | OpenMPClause.cpp | 2782 if (std::optional<APSInt> CondVal = in getAsVariantMatchInfo() local 2784 VMI.addTrait(CondVal->isZero() ? TraitProperty::user_condition_false in getAsVariantMatchInfo()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | NewGVN.cpp | 2557 auto *CondVal = cast<ConstantInt>(CondEvaluated); in processOutgoingEdges() local 2559 auto Case = *SI->findCaseValue(CondVal); in processOutgoingEdges()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 2771 const Value *CondVal = I.getCondition(); in visitBr() local 2792 const Instruction *BOp = dyn_cast<Instruction>(CondVal); in visitBr() 2842 CaseBlock CB(ISD::SETEQ, CondVal, ConstantInt::getTrue(*DAG.getContext()), in visitBr()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 26851 unsigned CondVal = Op.getConstantOperandVal(3); in LowerINTRINSIC_WO_CHAIN() local 26857 DAG.getTargetConstant(CondVal, dl, MVT::i8)); in LowerINTRINSIC_WO_CHAIN() 26860 DAG.getTargetConstant(CondVal, dl, MVT::i8), Sae); in LowerINTRINSIC_WO_CHAIN()
|