/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/ObjCARC/ |
H A D | ProvenanceAnalysis.cpp | 41 bool ProvenanceAnalysis::relatedSelect(const SelectInst *A, in relatedSelect() 45 if (const SelectInst *SB = dyn_cast<SelectInst>(B)) in relatedSelect() 150 if (const SelectInst *S = dyn_cast<SelectInst>(A)) in relatedCheck() 152 if (const SelectInst *S = dyn_cast<SelectInst>(B)) in relatedCheck()
|
H A D | ProvenanceAnalysis.h | 37 class SelectInst; variable 62 bool relatedSelect(const SelectInst *A, const Value *B);
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
H A D | ControlHeightReduction.cpp | 169 SmallVector<SelectInst *, 8> Selects; 306 DenseSet<SelectInst *> TrueBiasedSelects; 307 DenseSet<SelectInst *> FalseBiasedSelects; 390 void fixupSelect(SelectInst* SI, 413 DenseSet<SelectInst *> TrueBiasedSelectsGlobal; 415 DenseSet<SelectInst *> FalseBiasedSelectsGlobal; 419 DenseMap<SelectInst *, BranchProbability> SelectBiasMap; 494 return isa<BinaryOperator>(I) || isa<CastInst>(I) || isa<SelectInst>(I) || in isHoistableInstructionType() 691 SelectInst *SI, Region *R, in checkBiasedSelect() 692 DenseSet<SelectInst *> &TrueBiasedSelectsGlobal, in checkBiasedSelect() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSelect.cpp | 60 static Instruction *foldSelectBinOpIdentity(SelectInst &Sel, in foldSelectBinOpIdentity() 125 static Value *foldSelectICmpAnd(SelectInst &Sel, ICmpInst *Cmp, in foldSelectICmpAnd() 264 Instruction *InstCombinerImpl::foldSelectOpOp(SelectInst &SI, Instruction *TI, in foldSelectOpOp() 431 Instruction *InstCombinerImpl::foldSelectIntoOp(SelectInst &SI, Value *TrueVal, in foldSelectIntoOp() 688 static Instruction *foldSetClearBits(SelectInst &Sel, in foldSetClearBits() 945 static bool adjustMinMax(SelectInst &Sel, ICmpInst &Cmp) { in adjustMinMax() 1041 static Instruction *canonicalizeMinMaxWithConstant(SelectInst &Sel, in canonicalizeMinMaxWithConstant() 1080 static Instruction *canonicalizeAbsNabs(SelectInst &Sel, ICmpInst &Cmp, in canonicalizeAbsNabs() 1121 Instruction *InstCombinerImpl::foldSelectValueEquivalence(SelectInst &Sel, in foldSelectValueEquivalence() 1232 static Instruction *canonicalizeClampLike(SelectInst &Sel0, ICmpInst &Cmp0, in canonicalizeClampLike() [all …]
|
H A D | InstCombineInternal.h | 142 Instruction *visitSelectInst(SelectInst &SI); 183 bool replacedSelectWithOperand(SelectInst *SI, const ICmpInst *Icmp, 326 Instruction *matchSAddSubSat(SelectInst &MinMax1); 365 Instruction *foldAndOrOfSelectUsingImpliedCond(Value *Op, SelectInst &SI, 569 bool matchThreeWayIntCompare(SelectInst *SI, Value *&LHS, Value *&RHS, 606 Instruction *foldVectorSelect(SelectInst &Sel); 617 Instruction *FoldOpIntoSelect(Instruction &Op, SelectInst *SI); 669 Instruction *foldICmpSelectConstant(ICmpInst &Cmp, SelectInst *Select, 713 Instruction *foldSelectExtConst(SelectInst &Sel); 714 Instruction *foldSelectOpOp(SelectInst &SI, Instruction *TI, Instruction *FI); [all …]
|
H A D | InstCombineMulDivRem.cpp | 349 return SelectInst::Create(X, Op1, ConstantInt::get(I.getType(), 0)); in visitMul() 351 return SelectInst::Create(X, Op0, ConstantInt::get(I.getType(), 0)); in visitMul() 624 SelectInst *SI = dyn_cast<SelectInst>(I.getOperand(1)); in simplifyDivRemOfSelectWithZeroOp() 813 return SelectInst::Create(Cmp, Op1, ConstantInt::get(Ty, 0)); in commonIDivTransforms() 950 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitUDivOperand() 1078 Inst = SelectInst::Create(cast<SelectInst>(ActionOp1)->getCondition(), in visitUDiv() 1180 return SelectInst::Create(Cond, ConstantInt::get(Ty, 1), NegOne); in visitSDiv() 1339 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitFDiv() 1344 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitFDiv() 1441 if (SelectInst *SI = dyn_cast<SelectInst>(Op0I)) { in commonIRemTransforms() [all …]
|
H A D | InstCombineAddSub.cpp | 890 return SelectInst::Create(X, InstCombiner::AddOne(Op1C), Op1); in foldAddWithConstant() 894 return SelectInst::Create(X, InstCombiner::SubOne(Op1C), Op1); in foldAddWithConstant() 1378 SelectInst *SI = dyn_cast<SelectInst>(LHS); in visitAdd() 1381 SI = dyn_cast<SelectInst>(RHS); in visitAdd() 1393 return SelectInst::Create(SI->getCondition(), N, A); in visitAdd() 1397 return SelectInst::Create(SI->getCondition(), A, N); in visitAdd() 1843 return SelectInst::Create(X, InstCombiner::SubOne(C), C); in visitSub() 1846 return SelectInst::Create(X, InstCombiner::AddOne(C), C); in visitSub() 1853 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitSub() 1992 SelectInst *NewSel = in visitSub() [all …]
|
H A D | InstCombineShifts.cpp | 389 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in commonShiftTransforms() 510 SelectInst *SI = cast<SelectInst>(I); in canEvaluateShifted() 864 return SelectInst::Create(Cond, NewOp, NewShift); in FoldShiftByConstant() 883 return SelectInst::Create(Cond, NewShift, NewOp); in FoldShiftByConstant() 1025 return SelectInst::Create(X, NewC, ConstantInt::getNullValue(Ty)); in visitShl()
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Scalar/ |
H A D | SROA.h | 33 class SelectInst; variable 110 SetVector<SelectInst *, SmallVector<SelectInst *, 2>> SpeculatableSelects;
|
H A D | JumpThreading.h | 44 class SelectInst; variable 159 void unfoldSelectInstr(BasicBlock *Pred, BasicBlock *BB, SelectInst *SI,
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/ |
H A D | HexagonLoopIdiomRecognition.cpp | 624 bool matchLeftShift(SelectInst *SelI, Value *CIV, ParsedValues &PV); 625 bool matchRightShift(SelectInst *SelI, ParsedValues &PV); 626 bool scanSelect(SelectInst *SI, BasicBlock *LoopB, BasicBlock *PrehB, 685 bool PolynomialMultiplyRecognize::matchLeftShift(SelectInst *SelI, in matchLeftShift() 800 bool PolynomialMultiplyRecognize::matchRightShift(SelectInst *SelI, in matchRightShift() 875 bool PolynomialMultiplyRecognize::scanSelect(SelectInst *SelI, in scanSelect() 1653 if (SelectInst *Sel = dyn_cast<SelectInst>(BO->getOperand(0))) { in setupPreSimplifier() 1661 if (SelectInst *Sel = dyn_cast<SelectInst>(BO->getOperand(1))) { in setupPreSimplifier() 1675 SelectInst *Sel = dyn_cast<SelectInst>(I); in setupPreSimplifier() 1680 if (SelectInst *Sel0 = dyn_cast<SelectInst>(Sel->getTrueValue())) { in setupPreSimplifier() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
H A D | IVDescriptors.cpp | 321 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar() 336 if (auto *Sel = dyn_cast<SelectInst>(ReduxDesc.getPatternInst())) { in AddReductionVar() 353 bool IsASelect = isa<SelectInst>(Cur); in AddReductionVar() 371 (isa<ICmpInst>(Cur) || isa<SelectInst>(Cur))) in AddReductionVar() 374 (isa<FCmpInst>(Cur) || isa<SelectInst>(Cur))) in AddReductionVar() 424 !isa<SelectInst>(UI)) || in AddReductionVar() 511 assert((isa<CmpInst>(I) || isa<SelectInst>(I)) && in isMinMaxSelectCmpPattern() 518 if (auto *Select = dyn_cast<SelectInst>(*I->user_begin())) in isMinMaxSelectCmpPattern() 559 SelectInst *SI = dyn_cast<SelectInst>(I); in isConditionalRdxPattern() 896 if (isa<SelectInst>(*Cur->user_begin())) in getReductionOpChain()
|
H A D | BasicAliasAnalysis.cpp | 635 if (const SelectInst *SI = dyn_cast<SelectInst>(V)) { in pointsToConstantMemory() 1259 BasicAAResult::aliasSelect(const SelectInst *SI, LocationSize SISize, in aliasSelect() 1264 if (const SelectInst *SI2 = dyn_cast<SelectInst>(V2)) in aliasSelect() 1623 if (const SelectInst *S1 = dyn_cast<SelectInst>(V1)) { in aliasCheckRecursive() 1627 } else if (const SelectInst *S2 = dyn_cast<SelectInst>(V2)) { in aliasCheckRecursive()
|
H A D | InstructionSimplify.cpp | 396 SelectInst *SI; in ThreadBinOpOverSelect() 397 if (isa<SelectInst>(LHS)) { in ThreadBinOpOverSelect() 398 SI = cast<SelectInst>(LHS); in ThreadBinOpOverSelect() 400 assert(isa<SelectInst>(RHS) && "No select instruction operand!"); in ThreadBinOpOverSelect() 401 SI = cast<SelectInst>(RHS); in ThreadBinOpOverSelect() 475 if (!isa<SelectInst>(LHS)) { in ThreadCmpOverSelect() 479 assert(isa<SelectInst>(LHS) && "Not comparing with a select instruction!"); in ThreadCmpOverSelect() 480 SelectInst *SI = cast<SelectInst>(LHS); in ThreadCmpOverSelect() 905 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyMulInst() 1086 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in simplifyDiv() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUCodeGenPrepare.cpp | 98 bool isSigned(const SelectInst &I) const; 135 bool promoteUniformOpToI32(SelectInst &I) const; 208 bool visitSelectInst(SelectInst &I); 251 bool AMDGPUCodeGenPrepare::isSigned(const SelectInst &I) const { in isSigned() 387 bool AMDGPUCodeGenPrepare::promoteUniformOpToI32(SelectInst &I) const { in promoteUniformOpToI32() 558 static SelectInst *findSelectThroughCast(Value *V, CastInst *&Cast) { in findSelectThroughCast() 560 if (SelectInst *Sel = dyn_cast<SelectInst>(V)) in findSelectThroughCast() 564 if (SelectInst *Sel = dyn_cast<SelectInst>(Cast->getOperand(0))) in findSelectThroughCast() 580 SelectInst *Sel = findSelectThroughCast(BO.getOperand(0), CastOp); in foldBinOpIntoSelect() 1326 bool AMDGPUCodeGenPrepare::visitSelectInst(SelectInst &I) { in visitSelectInst()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
H A D | TailRecursionElimination.cpp | 415 SmallVector<SelectInst *, 8> RetSelects; 657 SelectInst *SI = SelectInst::Create( in eliminateCall() 730 SelectInst *SI = SelectInst::Create( in cleanupAndFinalize() 740 for (SelectInst *SI : RetSelects) { in cleanupAndFinalize()
|
H A D | JumpThreading.cpp | 951 if (SelectInst *SI = dyn_cast<SelectInst>(I)) { in computeValueKnownInPredecessorsImpl() 2734 SelectInst *SI, PHINode *SIUse, in unfoldSelectInstr() 2777 SelectInst *PredSI = dyn_cast<SelectInst>(CondPHI->getIncomingValue(I)); in tryToUnfoldSelect() 2818 SelectInst *SI = dyn_cast<SelectInst>(CondLHS->getIncomingValue(I)); in tryToUnfoldSelect() 2886 auto isUnfoldCandidate = [BB](SelectInst *SI, Value *V) { in tryToUnfoldSelectInCurrBB() 2897 SelectInst *SI = nullptr; in tryToUnfoldSelectInCurrBB() 2904 if (SelectInst *SelectI = dyn_cast<SelectInst>(Cmp->user_back())) in tryToUnfoldSelectInCurrBB() 2909 } else if (SelectInst *SelectI = dyn_cast<SelectInst>(U.getUser())) { in tryToUnfoldSelectInCurrBB()
|
H A D | LoopUnswitch.cpp | 630 auto HasUndefInSelect = [](SelectInst &SI) { in equalityPropUnSafe() 636 SelectInst *LSI = dyn_cast<SelectInst>(LHS); in equalityPropUnSafe() 637 SelectInst *RSI = dyn_cast<SelectInst>(RHS); in equalityPropUnSafe() 831 if (SelectInst *SI = dyn_cast<SelectInst>(BBI)) { in processCurrentLoop()
|
H A D | RewriteStatepointsForGC.cpp | 489 assert((isa<SelectInst>(I) || isa<PHINode>(I)) && in findBaseDefiningValueOfVector() 611 assert((isa<SelectInst>(I) || isa<PHINode>(I)) && in findBaseDefiningValue() 645 return !isa<PHINode>(V) && !isa<SelectInst>(V) && in isOriginalBaseResult() 821 return isa<PHINode>(BDV) || isa<SelectInst>(BDV) || in findBasePointer() 846 } else if (SelectInst *SI = dyn_cast<SelectInst>(BDV)) { in findBasePointer() 1060 } else if (isa<SelectInst>(I)) { in findBasePointer() 1157 } else if (SelectInst *BaseSI = in findBasePointer() 1158 dyn_cast<SelectInst>(State.getBaseValue())) { in findBasePointer() 1159 SelectInst *SI = cast<SelectInst>(BDV); in findBasePointer()
|
H A D | LowerExpectIntrinsic.cpp | 364 if (SelectInst *SI = dyn_cast<SelectInst>(Inst)) { in lowerExpectIntrinsic()
|
H A D | SROA.cpp | 616 static Value *foldSelectInst(SelectInst &SI) { in foldSelectInst() 634 return foldSelectInst(cast<SelectInst>(I)); in foldPHINodeOrSelectInst() 993 !isa<SelectInst>(I) && !isa<AddrSpaceCastInst>(I)) { in hasUnsafePHIOrSelectUse() 1006 assert(isa<PHINode>(I) || isa<SelectInst>(I)); in visitPHINodeOrSelectInst() 1058 void visitSelectInst(SelectInst &SI) { visitPHINodeOrSelectInst(SI); } in visitSelectInst() 1333 static bool isSafeSelectToSpeculate(SelectInst &SI) { in isSafeSelectToSpeculate() 1357 static void speculateSelectInstLoads(SelectInst &SI) { in speculateSelectInstLoads() 2325 SmallSetVector<SelectInst *, 8> &SelectUsers; 2338 SmallSetVector<SelectInst *, 8> &SelectUsers) in AllocaSliceRewriter() argument 3161 isa<PHINode>(I) || isa<SelectInst>(I) || in fixLoadStoreAlign() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/ |
H A D | VPlanTransforms.cpp | 77 } else if (SelectInst *SI = dyn_cast<SelectInst>(Inst)) { in VPInstructionsToVPRecipes()
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/ |
H A D | MemoryBuiltins.h | 49 class SelectInst; variable 282 SizeOffsetType visitSelectInst(SelectInst &I); 349 SizeOffsetEvalType visitSelectInst(SelectInst &I);
|
H A D | BasicAliasAnalysis.h | 39 class SelectInst; variable 218 AliasResult aliasSelect(const SelectInst *SI, LocationSize SISize,
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 402 bool optimizeSelectInst(SelectInst *SI); 1666 if (isa<SelectInst>(U) && cast<SelectInst>(U)->getCondition() == Cmp) in foldICmpWithDominatingICmp() 1708 if (auto *SI = dyn_cast<SelectInst>(U)) { in foldICmpWithDominatingICmp() 3351 SmallPtrSet<SelectInst *, 32> AllSelectNodes; 3382 if (auto *Select = dyn_cast<SelectInst>(PI)) in Simplify() 3412 void insertNewSelect(SelectInst *SI) { AllSelectNodes.insert(SI); } in insertNewSelect() 3754 if (SelectInst *Select = dyn_cast<SelectInst>(V)) { in FillPlaceholders() 3756 auto *CurrentSelect = cast<SelectInst>(Current); in FillPlaceholders() 3786 assert((isa<PHINode>(Original) || isa<SelectInst>(Original)) && in InsertPlaceholders() 3799 if (SelectInst *CurrentSelect = dyn_cast<SelectInst>(Current)) { in InsertPlaceholders() [all …]
|