| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 757 auto *CondVal = SI.getCondition(); in foldSelectZeroOrMul() local 766 if (!match(CondVal, m_ICmp(Predicate, m_Value(X), m_Zero())) || in foldSelectZeroOrMul() 783 auto *ZeroC = cast<Constant>(cast<Instruction>(CondVal)->getOperand(1)); in foldSelectZeroOrMul() 1822 Value *CondVal = SI.getCondition(); in foldAddSubSelect() local 1872 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect() 1897 Value *CondVal = SI.getCondition(); in foldOverflowingAddSubSelect() local 1902 if (!match(CondVal, m_ExtractValue<1>(m_WithOverflowInst(II))) || in foldOverflowingAddSubSelect() 2074 Value *CondVal = SI.getCondition(); in canonicalizeSelectToShuffle() local 2076 auto *CondValTy = dyn_cast<FixedVectorType>(CondVal->getType()); in canonicalizeSelectToShuffle() 2077 if (!CondValTy || !match(CondVal, m_Constant(CondC))) in canonicalizeSelectToShuffle() [all …]
|
| H A D | InstructionCombining.cpp | 4525 bool CondVal = cast<ConstantInt>(BI->getCondition())->getZExtValue(); in prepareICWorklistFromFunction() local 4526 BasicBlock *ReachableBB = BI->getSuccessor(!CondVal); in prepareICWorklistFromFunction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | SCCPSolver.cpp | 1569 ValueLatticeElement CondVal = getValueState(OtherOp); in handleCallResult() local 1571 if (CondVal.isConstantRange() || CopyOfVal.isConstantRange()) { in handleCallResult() 1576 if (CondVal.isConstantRange()) in handleCallResult() 1578 Pred, CondVal.getConstantRange()); in handleCallResult() 1601 (CondVal.isConstant() || CondVal.isNotConstant())) { in handleCallResult() 1605 mergeInValue(IV, &CB, CondVal); in handleCallResult() 1607 } else if (Pred == CmpInst::ICMP_NE && CondVal.isConstant()) { in handleCallResult() 1611 ValueLatticeElement::getNot(CondVal.getConstant())); in handleCallResult()
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | LazyValueInfo.cpp | 1173 Value *Val, CondValue CondVal, bool isRevisit, in getValueFromConditionImpl() argument 1177 Value *Cond = CondVal.getPointer(); in getValueFromConditionImpl() 1178 bool isTrueDest = CondVal.getInt(); in getValueFromConditionImpl() 1665 std::optional<ValueLatticeElement> CondVal; in getConstantRangeAtUse() local 1669 CondVal = getValueFromCondition(V, SI->getCondition(), true); in getConstantRangeAtUse() 1671 CondVal = getValueFromCondition(V, SI->getCondition(), false); in getConstantRangeAtUse() 1674 CondVal = in getConstantRangeAtUse() 1677 if (CondVal && CondVal->isConstantRange()) in getConstantRangeAtUse() 1678 CR = CR.intersectWith(CondVal->getConstantRange()); in getConstantRangeAtUse()
|
| H A D | InstructionSimplify.cpp | 4410 static Value *simplifySelectWithICmpCond(Value *CondVal, Value *TrueVal, in simplifySelectWithICmpCond() argument 4416 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)))) in simplifySelectWithICmpCond() 4434 matchDecomposedSelectPattern(cast<ICmpInst>(CondVal), TrueVal, FalseVal, in simplifySelectWithICmpCond()
|
| H A D | ScalarEvolution.cpp | 9698 auto *CondVal = dyn_cast_or_null<ConstantInt>( in computeExitCountExhaustively() local 9702 if (!CondVal) return getCouldNotCompute(); in computeExitCountExhaustively() 9704 if (CondVal->getValue() == uint64_t(ExitWhen)) { in computeExitCountExhaustively()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaStmt.cpp | 1690 auto CondVal = Cond.get(); in ActOnWhileStmt() local 1691 CheckBreakContinueBinding(CondVal.second); in ActOnWhileStmt() 1693 if (CondVal.second && in ActOnWhileStmt() 1694 !Diags.isIgnored(diag::warn_comma_operator, CondVal.second->getExprLoc())) in ActOnWhileStmt() 1695 CommaVisitor(*this).Visit(CondVal.second); in ActOnWhileStmt() 1700 return WhileStmt::Create(Context, CondVal.first, CondVal.second, Body, in ActOnWhileStmt()
|
| H A D | AnalysisBasedWarnings.cpp | 792 const Stmt *Else, bool CondVal, in CreateIfFixit() argument 794 if (CondVal) { in CreateIfFixit()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 591 const Value *CondVal = BrInst.getCondition(); in translateBr() local 614 const Instruction *CondI = dyn_cast<Instruction>(CondVal); in translateBr() 651 SwitchCG::CaseBlock CB(CmpInst::ICMP_EQ, false, CondVal, in translateBr()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | OpenMPClause.cpp | 2481 if (std::optional<APSInt> CondVal = in getAsVariantMatchInfo() local 2483 VMI.addTrait(CondVal->isZero() ? TraitProperty::user_condition_false in getAsVariantMatchInfo()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | NewGVN.cpp | 2511 auto *CondVal = cast<ConstantInt>(CondEvaluated); in processOutgoingEdges() local 2513 auto Case = *SI->findCaseValue(CondVal); in processOutgoingEdges()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGOpenMPRuntime.cpp | 6354 llvm::Value *CondVal = nullptr; in getNumThreads() local 6388 CondVal = CGF.EvaluateExprAsBool(Cond); in getNumThreads() 6425 if (CondVal) { in getNumThreads() 6426 NumThreads = CGF.Builder.CreateSelect(CondVal, NumThreads, in getNumThreads() 6667 llvm::Value *CondVal = nullptr; in emitNumThreadsForTargetDirective() local 6687 CondVal = CGF.EvaluateExprAsBool(Cond); in emitNumThreadsForTargetDirective() 6714 if (CondVal) in emitNumThreadsForTargetDirective() 6715 return Bld.CreateSelect(CondVal, ThreadLimitVal, Bld.getInt32(1)); in emitNumThreadsForTargetDirective()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 2437 const Value *CondVal = I.getCondition(); in visitBr() local 2457 const Instruction *BOp = dyn_cast<Instruction>(CondVal); in visitBr() 2502 CaseBlock CB(ISD::SETEQ, CondVal, ConstantInt::getTrue(*DAG.getContext()), in visitBr()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 27419 unsigned CondVal = Op.getConstantOperandVal(3); in LowerINTRINSIC_WO_CHAIN() local 27425 DAG.getTargetConstant(CondVal, dl, MVT::i8)); in LowerINTRINSIC_WO_CHAIN() 27428 DAG.getTargetConstant(CondVal, dl, MVT::i8), Sae); in LowerINTRINSIC_WO_CHAIN()
|