Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp859 auto *CondVal = SI.getCondition(); in foldSelectZeroOrMul() local
868 if (!match(CondVal, m_ICmp(Predicate, m_Value(X), m_Zero())) || in foldSelectZeroOrMul()
885 auto *ZeroC = cast<Constant>(cast<Instruction>(CondVal)->getOperand(1)); in foldSelectZeroOrMul()
2025 Value *CondVal = SI.getCondition(); in foldAddSubSelect() local
2075 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect()
2100 Value *CondVal = SI.getCondition(); in foldOverflowingAddSubSelect() local
2105 if (!match(CondVal, m_ExtractValue<1>(m_WithOverflowInst(II))) || in foldOverflowingAddSubSelect()
2259 Value *CondVal = SI.getCondition(); in canonicalizeSelectToShuffle() local
2261 auto *CondValTy = dyn_cast<FixedVectorType>(CondVal->getType()); in canonicalizeSelectToShuffle()
2262 if (!CondValTy || !match(CondVal, m_Constant(CondC))) in canonicalizeSelectToShuffle()
[all …]
H A DInstructionCombining.cpp1028 Value *A, *CondVal, *TrueVal, *FalseVal; in foldBinOpOfSelectAndCastOfSelectCondition() local
1034 match(SelectOp, m_Select(m_Value(CondVal), m_Value(TrueVal), in foldBinOpOfSelectAndCastOfSelectCondition()
1067 if (CondVal == A) { in foldBinOpOfSelectAndCastOfSelectCondition()
1069 return SelectInst::Create(CondVal, NewTrueVal, in foldBinOpOfSelectAndCastOfSelectCondition()
1073 if (match(A, m_Not(m_Specific(CondVal)))) { in foldBinOpOfSelectAndCastOfSelectCondition()
1075 return SelectInst::Create(CondVal, NewTrueVal, in foldBinOpOfSelectAndCastOfSelectCondition()
5319 bool CondVal = Cond->getZExtValue(); in prepareWorklist() local
5320 HandleOnlyLiveSuccessor(BB, BI->getSuccessor(!CondVal)); in prepareWorklist()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTypeErasedDataflowAnalysis.cpp294 auto *CondVal = Copy.Env.get<BoolValue>(*Cond); in computeBlockInputState() local
299 assert(CondVal != nullptr); in computeBlockInputState()
301 BranchVal ? CondVal : &Copy.Env.makeNot(*CondVal); in computeBlockInputState()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp1798 ValueLatticeElement CondVal = getValueState(OtherOp); in handleCallResult() local
1800 if (CondVal.isConstantRange() || CopyOfVal.isConstantRange()) { in handleCallResult()
1805 if (CondVal.isConstantRange()) in handleCallResult()
1807 Pred, CondVal.getConstantRange()); in handleCallResult()
1834 (CondVal.isConstant() || CondVal.isNotConstant())) { in handleCallResult()
1838 mergeInValue(IV, &CB, CondVal); in handleCallResult()
1840 } else if (Pred == CmpInst::ICMP_NE && CondVal.isConstant()) { in handleCallResult()
1844 ValueLatticeElement::getNot(CondVal.getConstant())); in handleCallResult()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyValueInfo.cpp1595 std::optional<ValueLatticeElement> CondVal; in getValueAtUse() local
1603 CondVal = in getValueAtUse()
1607 CondVal = in getValueAtUse()
1612 CondVal = *getEdgeValueLocal(V, PHI->getIncomingBlock(*CurrU), in getValueAtUse()
1615 if (CondVal) in getValueAtUse()
1616 VL = intersect(VL, *CondVal); in getValueAtUse()
H A DInstructionSimplify.cpp4639 static Value *simplifySelectWithICmpCond(Value *CondVal, Value *TrueVal, in simplifySelectWithICmpCond() argument
4645 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)))) in simplifySelectWithICmpCond()
4663 matchDecomposedSelectPattern(cast<ICmpInst>(CondVal), TrueVal, FalseVal, in simplifySelectWithICmpCond()
H A DScalarEvolution.cpp9740 auto *CondVal = dyn_cast_or_null<ConstantInt>( in computeExitCountExhaustively() local
9744 if (!CondVal) return getCouldNotCompute(); in computeExitCountExhaustively()
9746 if (CondVal->getValue() == uint64_t(ExitWhen)) { in computeExitCountExhaustively()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp1725 auto CondVal = Cond.get(); in ActOnWhileStmt() local
1726 CheckBreakContinueBinding(CondVal.second); in ActOnWhileStmt()
1728 if (CondVal.second && in ActOnWhileStmt()
1729 !Diags.isIgnored(diag::warn_comma_operator, CondVal.second->getExprLoc())) in ActOnWhileStmt()
1730 CommaVisitor(*this).Visit(CondVal.second); in ActOnWhileStmt()
1735 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/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp6201 bool UpperBoundOnly, llvm::Value **CondVal) { in getNumThreads() argument
6211 if (CondVal && Dir->hasClausesOfKind<OMPIfClause>()) { in getNumThreads()
6243 *CondVal = CGF.EvaluateExprAsBool(CondExpr); in getNumThreads()
6292 bool UpperBoundOnly, llvm::Value **CondVal, const Expr **ThreadLimitExpr) { in getNumThreadsExprForTargetDirective() argument
6326 getNumThreads(CGF, CS, NTPtr, UpperBound, UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective()
6367 getNumThreads(CGF, CS, NTPtr, UpperBound, UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective()
6380 getNumThreads(CGF, CS, NTPtr, UpperBound, UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective()
6386 getNumThreads(CGF, CS, NTPtr, UpperBound, UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective()
6398 UpperBoundOnly, CondVal); in getNumThreadsExprForTargetDirective()
6407 if (CondVal && D.hasClausesOfKind<OMPIfClause>()) { in getNumThreadsExprForTargetDirective()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp917 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 DIRTranslator.cpp596 const Value *CondVal = BrInst.getCondition(); in translateBr() local
617 const Instruction *CondI = dyn_cast<Instruction>(CondVal); in translateBr()
654 SwitchCG::CaseBlock CB(CmpInst::ICMP_EQ, false, CondVal, in translateBr()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DOpenMPClause.cpp2588 if (std::optional<APSInt> CondVal = in getAsVariantMatchInfo() local
2590 VMI.addTrait(CondVal->isZero() ? TraitProperty::user_condition_false in getAsVariantMatchInfo()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DNewGVN.cpp2518 auto *CondVal = cast<ConstantInt>(CondEvaluated); in processOutgoingEdges() local
2520 auto Case = *SI->findCaseValue(CondVal); in processOutgoingEdges()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2805 const Value *CondVal = I.getCondition(); in visitBr() local
2825 const Instruction *BOp = dyn_cast<Instruction>(CondVal); in visitBr()
2875 CaseBlock CB(ISD::SETEQ, CondVal, ConstantInt::getTrue(*DAG.getContext()), in visitBr()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp25974 unsigned CondVal = Op.getConstantOperandVal(3); in LowerINTRINSIC_WO_CHAIN() local
25980 DAG.getTargetConstant(CondVal, dl, MVT::i8)); in LowerINTRINSIC_WO_CHAIN()
25983 DAG.getTargetConstant(CondVal, dl, MVT::i8), Sae); in LowerINTRINSIC_WO_CHAIN()