Home
last modified time | relevance | path

Searched refs:CondVal (Results 1 – 15 of 15) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp843 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 DInstructionCombining.cpp1005 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 DSCCPSolver.cpp1747 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 DLazyValueInfo.cpp1586 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 DInstructionSimplify.cpp4613 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 DScalarEvolution.cpp9678 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 DSemaStmt.cpp1702 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 DAnalysisBasedWarnings.cpp816 const Stmt *Else, bool CondVal, in CreateIfFixit() argument
818 if (CondVal) { in CreateIfFixit()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp6186 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 DExecution.cpp953 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 DIRTranslator.cpp596 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 DOpenMPClause.cpp2586 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 DNewGVN.cpp2514 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 DSelectionDAGBuilder.cpp2618 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 DX86ISelLowering.cpp25764 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()