| /freebsd-12.1/contrib/llvm/lib/Transforms/ObjCARC/ |
| H A D | ProvenanceAnalysis.cpp | 42 bool ProvenanceAnalysis::relatedSelect(const SelectInst *A, in relatedSelect() 47 if (const SelectInst *SB = dyn_cast<SelectInst>(B)) in relatedSelect() 155 if (const SelectInst *S = dyn_cast<SelectInst>(A)) in relatedCheck() 157 if (const SelectInst *S = dyn_cast<SelectInst>(B)) in relatedCheck()
|
| H A D | ProvenanceAnalysis.h | 38 class SelectInst; variable 63 bool relatedSelect(const SelectInst *A, const Value *B);
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/ |
| H A D | ControlHeightReduction.cpp | 167 SmallVector<SelectInst *, 8> Selects; 393 void fixupSelect(SelectInst* SI, 675 SelectInst *SI, Region *R, in checkBiasedSelect() 700 for (SelectInst *SI : RI.Selects) { in getBranchInsertPoint() 713 for (SelectInst *SI : RI.Selects) { in getBranchInsertPoint() 886 for (SelectInst *SI : Selects) { in checkScopeHoistable() 891 SelectInst *SI = *it; in checkScopeHoistable() 1026 for (SelectInst *SI : RI.Selects) { in getCHRConditionValuesForRegion() 1103 for (SelectInst *SI : RI.Selects) in getSelectsInScope() 1492 if (isa<SelectInst>(U) && cast<SelectInst>(U)->getCondition() == ICmp) in negateICmpIfUsedByBranchOrSelectOnly() [all …]
|
| H A D | PGOInstrumentation.cpp | 327 void instrumentOneSelectInst(SelectInst &SI); 328 void annotateOneSelectInst(SelectInst &SI); 331 void visitSelectInst(SelectInst &SI); 1225 void SelectInstVisitor::instrumentOneSelectInst(SelectInst &SI) { in instrumentOneSelectInst() 1239 void SelectInstVisitor::annotateOneSelectInst(SelectInst &SI) { in annotateOneSelectInst() 1257 void SelectInstVisitor::visitSelectInst(SelectInst &SI) { in visitSelectInst() 1700 if (!isa<SelectInst>(I)) in getNodeLabel()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 59 static Instruction *foldSelectBinOpIdentity(SelectInst &Sel, in foldSelectBinOpIdentity() 124 static Value *foldSelectICmpAnd(SelectInst &Sel, ICmpInst *Cmp, in foldSelectICmpAnd() 743 static bool adjustMinMax(SelectInst &Sel, ICmpInst &Cmp) { in adjustMinMax() 1152 SelectInst *SI = cast<SelectInst>(Inner); in foldSPFofSPF() 1211 static Instruction *foldAddSubSelect(SelectInst &SI, in foldAddSubSelect() 1383 static Instruction *foldSelectCmpBitcasts(SelectInst &Sel, in foldSelectCmpBitcasts() 1450 static Instruction *foldSelectCmpXchg(SelectInst &SI) { in foldSelectCmpXchg() 1553 return SelectInst::Create(CmpABC, MinMaxOp, ThirdOp); in factorizeMinMaxTree() 1560 static Instruction *foldSelectRotate(SelectInst &Sel) { in foldSelectRotate() 1911 if (SelectInst *TrueSI = dyn_cast<SelectInst>(TrueVal)) { in visitSelectInst() [all …]
|
| H A D | InstCombineMulDivRem.cpp | 314 return SelectInst::Create(X, Op1, ConstantInt::get(I.getType(), 0)); in visitMul() 316 return SelectInst::Create(X, Op0, ConstantInt::get(I.getType(), 0)); in visitMul() 492 SelectInst *SI = dyn_cast<SelectInst>(I.getOperand(1)); in simplifyDivRemOfSelectWithZeroOp() 684 return SelectInst::Create(Cmp, Op1, ConstantInt::get(Ty, 0)); in commonIDivTransforms() 818 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitUDivOperand() 943 Inst = SelectInst::Create(cast<SelectInst>(ActionOp1)->getCondition(), in visitUDiv() 1124 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitFDiv() 1129 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitFDiv() 1213 if (SelectInst *SI = dyn_cast<SelectInst>(Op0I)) { in commonIRemTransforms() 1269 return SelectInst::Create(Cmp, Op0, Sub); in visitURem() [all …]
|
| H A D | InstCombineInternal.h | 394 Instruction *visitSelectInst(SelectInst &SI); 429 bool replacedSelectWithOperand(SelectInst *SI, const ICmpInst *Icmp, 773 bool matchThreeWayIntCompare(SelectInst *SI, Value *&LHS, Value *&RHS, 823 Instruction *FoldOpIntoSelect(Instruction &Op, SelectInst *SI); 869 Instruction *foldICmpSelectConstant(ICmpInst &Cmp, SelectInst *Select, 910 Instruction *foldSelectExtConst(SelectInst &Sel); 911 Instruction *foldSelectOpOp(SelectInst &SI, Instruction *TI, Instruction *FI); 912 Instruction *foldSelectIntoOp(SelectInst &SI, Value *, Value *); 916 Instruction *foldSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI);
|
| H A D | InstCombineAddSub.cpp | 845 return SelectInst::Create(X, AddOne(Op1C), Op1); in foldAddWithConstant() 1171 SelectInst *SI = dyn_cast<SelectInst>(LHS); in visitAdd() 1174 SI = dyn_cast<SelectInst>(RHS); in visitAdd() 1186 return SelectInst::Create(SI->getCondition(), N, A); in visitAdd() 1190 return SelectInst::Create(SI->getCondition(), A, N); in visitAdd() 1511 return SelectInst::Create(X, SubOne(C), C); in visitSub() 1518 return SelectInst::Create(X, AddOne(C), C); in visitSub() 1526 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitSub() 1567 SelectInst *SI = cast<SelectInst>(Op1); in visitSub() 1729 return SelectInst::Create(Cmp, Neg, A); in visitSub() [all …]
|
| H A D | InstCombineShifts.cpp | 34 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in commonShiftTransforms() 174 SelectInst *SI = cast<SelectInst>(I); in canEvaluateShifted() 563 return SelectInst::Create(Cond, NewOp, NewShift); in FoldShiftByConstant() 582 return SelectInst::Create(Cond, NewShift, NewOp); in FoldShiftByConstant()
|
| /freebsd-12.1/contrib/llvm/include/llvm/Transforms/Scalar/ |
| H A D | SROA.h | 34 class SelectInst; variable 111 SetVector<SelectInst *, SmallVector<SelectInst *, 2>> SpeculatableSelects;
|
| /freebsd-12.1/contrib/llvm/lib/Analysis/ |
| H A D | IVDescriptors.cpp | 288 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar() 302 bool IsASelect = isa<SelectInst>(Cur); in AddReductionVar() 320 (isa<ICmpInst>(Cur) || isa<SelectInst>(Cur))) in AddReductionVar() 322 if (Kind == RK_FloatMinMax && (isa<FCmpInst>(Cur) || isa<SelectInst>(Cur))) in AddReductionVar() 372 !isa<SelectInst>(UI)) || in AddReductionVar() 457 assert((isa<ICmpInst>(I) || isa<FCmpInst>(I) || isa<SelectInst>(I)) && in isMinMaxSelectCmpPattern() 460 SelectInst *Select = nullptr; in isMinMaxSelectCmpPattern() 465 if (!Cmp->hasOneUse() || !(Select = dyn_cast<SelectInst>(*I->user_begin()))) in isMinMaxSelectCmpPattern() 471 if (!(Select = dyn_cast<SelectInst>(I))) in isMinMaxSelectCmpPattern() 515 SelectInst *SI = dyn_cast<SelectInst>(I); in isConditionalRdxPattern()
|
| H A D | BasicAliasAnalysis.cpp | 646 if (const SelectInst *SI = dyn_cast<SelectInst>(V)) { in pointsToConstantMemory() 1507 AliasResult BasicAAResult::aliasSelect(const SelectInst *SI, in aliasSelect() 1515 if (const SelectInst *SI2 = dyn_cast<SelectInst>(V2)) in aliasSelect() 1812 if (isa<SelectInst>(V2) && !isa<SelectInst>(V1)) { in aliasCheck() 1818 if (const SelectInst *S1 = dyn_cast<SelectInst>(V1)) { in aliasCheck()
|
| H A D | InstructionSimplify.cpp | 332 SelectInst *SI; in ThreadBinOpOverSelect() 410 SelectInst *SI = cast<SelectInst>(LHS); in ThreadCmpOverSelect() 887 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyMulInst() 1066 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in simplifyDiv() 1108 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in simplifyRem() 1235 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyShift() 1864 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyAndInst() 2009 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyOrInst() 2108 SelectInst *SI = dyn_cast<SelectInst>(V); in ExtractEquivalentCondition() 3579 if (isa<SelectInst>(LHS) || isa<SelectInst>(RHS)) in SimplifyICmpInst() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 606 bool matchRightShift(SelectInst *SelI, ParsedValues &PV); 1632 if (SelectInst *Sel = dyn_cast<SelectInst>(BO->getOperand(0))) { in setupPreSimplifier() 1640 if (SelectInst *Sel = dyn_cast<SelectInst>(BO->getOperand(1))) { in setupPreSimplifier() 1654 SelectInst *Sel = dyn_cast<SelectInst>(I); in setupPreSimplifier() 1659 if (SelectInst *Sel0 = dyn_cast<SelectInst>(Sel->getTrueValue())) { in setupPreSimplifier() 1663 if (SelectInst *Sel1 = dyn_cast<SelectInst>(Sel->getFalseValue())) { in setupPreSimplifier() 1812 SelectInst *SI = dyn_cast<SelectInst>(&In); in recognize() 1818 SelectInst *SelI = (T && isa<SelectInst>(T)) ? cast<SelectInst>(T) : SI; in recognize() 1847 SelectInst *SI = dyn_cast<SelectInst>(&In); in recognize() 1852 SelectInst *SelI = dyn_cast_or_null<SelectInst>(T); in recognize() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/Analysis/ |
| H A D | MemoryBuiltins.h | 50 class SelectInst; variable 241 SizeOffsetType visitSelectInst(SelectInst &I); 307 SizeOffsetEvalType visitSelectInst(SelectInst &I);
|
| H A D | BasicAliasAnalysis.h | 44 class SelectInst; variable 210 AliasResult aliasSelect(const SelectInst *SI, LocationSize SISize,
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/ |
| H A D | RewriteStatepointsForGC.cpp | 488 assert((isa<SelectInst>(I) || isa<PHINode>(I)) && in findBaseDefiningValueOfVector() 610 assert((isa<SelectInst>(I) || isa<PHINode>(I)) && in findBaseDefiningValue() 643 if (!isa<PHINode>(V) && !isa<SelectInst>(V) && in isKnownBaseResult() 796 return isa<PHINode>(BDV) || isa<SelectInst>(BDV) || in findBasePointer() 833 } else if (SelectInst *SI = dyn_cast<SelectInst>(Current)) { in findBasePointer() 890 if (SelectInst *SI = dyn_cast<SelectInst>(BDV)) { in findBasePointer() 974 } else if (SelectInst *SI = dyn_cast<SelectInst>(I)) { in findBasePointer() 978 return SelectInst::Create(SI->getCondition(), Undef, Undef, Name, SI); in findBasePointer() 1083 } else if (SelectInst *BaseSI = in findBasePointer() 1084 dyn_cast<SelectInst>(State.getBaseValue())) { in findBasePointer() [all …]
|
| H A D | JumpThreading.cpp | 895 if (SelectInst *SI = dyn_cast<SelectInst>(I)) { in ComputeValueKnownInPredecessorsImpl() 2400 SelectInst *SI, PHINode *SIUse, in UnfoldSelectInstr() 2442 SelectInst *PredSI = dyn_cast<SelectInst>(CondPHI->getIncomingValue(I)); in TryToUnfoldSelect() 2483 SelectInst *SI = dyn_cast<SelectInst>(CondLHS->getIncomingValue(I)); in TryToUnfoldSelect() 2550 auto isUnfoldCandidate = [BB](SelectInst *SI, Value *V) { in TryToUnfoldSelectInCurrBB() 2558 SelectInst *SI = nullptr; in TryToUnfoldSelectInCurrBB() 2565 if (SelectInst *SelectI = dyn_cast<SelectInst>(Cmp->user_back())) in TryToUnfoldSelectInCurrBB() 2570 } else if (SelectInst *SelectI = dyn_cast<SelectInst>(U.getUser())) { in TryToUnfoldSelectInCurrBB()
|
| H A D | LoopUnswitch.cpp | 615 auto hasUndefInSelect = [](SelectInst &SI) { in EqualityPropUnSafe() 621 SelectInst *LSI = dyn_cast<SelectInst>(LHS); in EqualityPropUnSafe() 622 SelectInst *RSI = dyn_cast<SelectInst>(RHS); in EqualityPropUnSafe() 811 if (SelectInst *SI = dyn_cast<SelectInst>(BBI)) { in processCurrentLoop()
|
| H A D | LowerExpectIntrinsic.cpp | 327 if (SelectInst *SI = dyn_cast<SelectInst>(Inst)) { in lowerExpectIntrinsic()
|
| H A D | CorrelatedValuePropagation.cpp | 106 static bool processSelect(SelectInst *S, LazyValueInfo *LVI) { in processSelect() 201 SelectInst *SI = dyn_cast<SelectInst>(Incoming); in processPHI() 697 BBChanged |= processSelect(cast<SelectInst>(II), LVI); in runImpl()
|
| /freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 85 bool isSigned(const SelectInst &I) const; 122 bool promoteUniformOpToI32(SelectInst &I) const; 167 bool visitSelectInst(SelectInst &I); 207 bool AMDGPUCodeGenPrepare::isSigned(const SelectInst &I) const { in isSigned() 341 bool AMDGPUCodeGenPrepare::promoteUniformOpToI32(SelectInst &I) const { in promoteUniformOpToI32() 855 bool AMDGPUCodeGenPrepare::visitSelectInst(SelectInst &I) { in visitSelectInst()
|
| H A D | AMDGPUPromoteAlloca.cpp | 592 if (SelectInst *SI = dyn_cast<SelectInst>(UseInst)) { in collectUsesWithPtrTypes() 856 if (SelectInst *SI = dyn_cast<SelectInst>(V)) { in handleAlloca()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 3228 if (SelectInst *Select = dyn_cast<SelectInst>(V)) { in FillPlaceholders() 3274 if (SelectInst *CurrentSelect = dyn_cast<SelectInst>(Current)) { in InsertPlaceholders() 3277 SelectInst *Select = SelectInst::Create( in InsertPlaceholders() 4541 if (SelectInst *SI = dyn_cast<SelectInst>(V)) { in optimizeMemoryInst() 5716 SelectInst *SI, bool isTrue, in getTrueOrFalseValue() 5737 SmallVector<SelectInst *, 2> ASI; in optimizeSelectInst() 5741 SelectInst *I = dyn_cast<SelectInst>(&*It); in optimizeSelectInst() 5749 SelectInst *LastSI = ASI.back(); in optimizeSelectInst() 5814 for (SelectInst *SI : ASI) { in optimizeSelectInst() 5875 SelectInst *SI = *It; in optimizeSelectInst() [all …]
|
| H A D | StackProtector.cpp | 174 } else if (const SelectInst *SI = dyn_cast<SelectInst>(U)) { in HasAddressTaken()
|