Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp1722 Value *CondVal = SI.getCondition(); in foldAddSubSelect() local
1772 Value *NewSel = Builder.CreateSelect(CondVal, NewTrueOp, NewFalseOp, in foldAddSubSelect()
1797 Value *CondVal = SI.getCondition(); in foldOverflowingAddSubSelect() local
1802 if (!match(CondVal, m_ExtractValue<1>(m_WithOverflowInst(II))) || in foldOverflowingAddSubSelect()
1976 Value *CondVal = SI.getCondition(); in canonicalizeSelectToShuffle() local
1978 auto *CondValTy = dyn_cast<FixedVectorType>(CondVal->getType()); in canonicalizeSelectToShuffle()
1979 if (!CondValTy || !match(CondVal, m_Constant(CondC))) in canonicalizeSelectToShuffle()
2587 Value *CondVal = SI.getCondition(); in foldAndOrOfSelectUsingImpliedCond() local
2594 Optional<bool> Res = isImpliedCondition(Op, CondVal, DL, IsAnd); in foldAndOrOfSelectUsingImpliedCond()
2627 Value *CondVal = SI.getCondition(); in visitSelectInst() local
[all …]
H A DInstructionCombining.cpp3486 APInt CondVal(1, isa<Constant>(SI->getFalseValue()) ? 0 : 1); in visitFreeze() local
3487 C = Constant::getIntegerValue(I.getType(), CondVal); in visitFreeze()
3901 bool CondVal = cast<ConstantInt>(BI->getCondition())->getZExtValue(); in prepareICWorklistFromFunction() local
3902 BasicBlock *ReachableBB = BI->getSuccessor(!CondVal); in prepareICWorklistFromFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp1257 ValueLatticeElement CondVal = getValueState(OtherOp); in handleCallResult() local
1259 if (CondVal.isConstantRange() || CopyOfVal.isConstantRange()) { in handleCallResult()
1264 if (CondVal.isConstantRange()) in handleCallResult()
1266 Pred, CondVal.getConstantRange()); in handleCallResult()
1285 } else if (Pred == CmpInst::ICMP_EQ && CondVal.isConstant()) { in handleCallResult()
1289 mergeInValue(IV, &CB, CondVal); in handleCallResult()
1291 } else if (Pred == CmpInst::ICMP_NE && CondVal.isConstant() && in handleCallResult()
1296 ValueLatticeElement::getNot(CondVal.getConstant())); in handleCallResult()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopUnswitch.cpp1217 Constant *CondVal = nullptr; in tryTrivialLoopUnswitch() local
1240 CondVal = ConstantInt::getTrue(Context); in tryTrivialLoopUnswitch()
1243 CondVal = ConstantInt::getFalse(Context); in tryTrivialLoopUnswitch()
1254 unswitchTrivialCondition(CurrentLoop, LoopCond, CondVal, LoopExitBB, in tryTrivialLoopUnswitch()
1287 CondVal = CaseVal; in tryTrivialLoopUnswitch()
1297 unswitchTrivialCondition(CurrentLoop, LoopCond, CondVal, LoopExitBB, in tryTrivialLoopUnswitch()
1301 BranchesInfo.setUnswitched(SI, CondVal); in tryTrivialLoopUnswitch()
H A DNewGVN.cpp2481 auto *CondVal = cast<ConstantInt>(CondEvaluated); in processOutgoingEdges() local
2483 auto Case = *SI->findCaseValue(CondVal); in processOutgoingEdges()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaStmt.cpp1652 auto CondVal = Cond.get(); in ActOnWhileStmt() local
1653 CheckBreakContinueBinding(CondVal.second); in ActOnWhileStmt()
1655 if (CondVal.second && in ActOnWhileStmt()
1656 !Diags.isIgnored(diag::warn_comma_operator, CondVal.second->getExprLoc())) in ActOnWhileStmt()
1657 CommaVisitor(*this).Visit(CondVal.second); in ActOnWhileStmt()
1662 return WhileStmt::Create(Context, CondVal.first, CondVal.second, Body, in ActOnWhileStmt()
H A DAnalysisBasedWarnings.cpp789 const Stmt *Else, bool CondVal, in CreateIfFixit() argument
791 if (CondVal) { in CreateIfFixit()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp576 const Value *CondVal = BrInst.getCondition(); in translateBr() local
599 const Instruction *CondI = dyn_cast<Instruction>(CondVal); in translateBr()
636 SwitchCG::CaseBlock CB(CmpInst::ICMP_EQ, false, CondVal, in translateBr()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DOpenMPClause.cpp2270 if (Optional<APSInt> CondVal = in getAsVariantMatchInfo() local
2272 VMI.addTrait(CondVal->isNullValue() in getAsVariantMatchInfo()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp6731 llvm::Value *CondVal = nullptr; in getNumThreads() local
6765 CondVal = CGF.EvaluateExprAsBool(Cond); in getNumThreads()
6802 if (CondVal) { in getNumThreads()
6803 NumThreads = CGF.Builder.CreateSelect(CondVal, NumThreads, in getNumThreads()
6924 llvm::Value *CondVal = nullptr; in emitNumThreadsForTargetDirective() local
6944 CondVal = CGF.EvaluateExprAsBool(Cond); in emitNumThreadsForTargetDirective()
6971 if (CondVal) in emitNumThreadsForTargetDirective()
6972 return Bld.CreateSelect(CondVal, ThreadLimitVal, Bld.getInt32(1)); in emitNumThreadsForTargetDirective()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DInstructionSimplify.cpp4022 static Value *simplifySelectWithICmpCond(Value *CondVal, Value *TrueVal, in simplifySelectWithICmpCond() argument
4027 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)))) in simplifySelectWithICmpCond()
4088 if (Pred == ICmpInst::ICMP_EQ && !CondVal->getType()->isVectorTy()) { in simplifySelectWithICmpCond()
H A DScalarEvolution.cpp8415 auto *CondVal = dyn_cast_or_null<ConstantInt>( in computeExitCountExhaustively() local
8419 if (!CondVal) return getCouldNotCompute(); in computeExitCountExhaustively()
8421 if (CondVal->getValue() == uint64_t(ExitWhen)) { in computeExitCountExhaustively()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2360 const Value *CondVal = I.getCondition(); in visitBr() local
2380 const Instruction *BOp = dyn_cast<Instruction>(CondVal); in visitBr()
2425 CaseBlock CB(ISD::SETEQ, CondVal, ConstantInt::getTrue(*DAG.getContext()), in visitBr()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp25499 unsigned CondVal = Op.getConstantOperandVal(3); in LowerINTRINSIC_WO_CHAIN() local
25505 DAG.getTargetConstant(CondVal, dl, MVT::i8)); in LowerINTRINSIC_WO_CHAIN()
25508 DAG.getTargetConstant(CondVal, dl, MVT::i8), Sae); in LowerINTRINSIC_WO_CHAIN()