/external/llvm/lib/Transforms/ObjCARC/ |
D | ProvenanceAnalysis.cpp | 33 bool ProvenanceAnalysis::relatedSelect(const SelectInst *A, in relatedSelect() 38 if (const SelectInst *SB = dyn_cast<SelectInst>(B)) in relatedSelect() 154 if (const SelectInst *S = dyn_cast<SelectInst>(A)) in relatedCheck() 156 if (const SelectInst *S = dyn_cast<SelectInst>(B)) in relatedCheck()
|
D | ProvenanceAnalysis.h | 35 class SelectInst; variable 58 bool relatedSelect(const SelectInst *A, const Value *B);
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 166 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitMul() 278 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitFMul() 297 SelectInst *SI = cast<SelectInst>(I.getOperand(1)); in SimplifyDivRemOfSelect() 381 if (isa<SelectInst>(Op1) && SimplifyDivRemOfSelect(I)) in commonIDivTransforms() 397 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in commonIDivTransforms() 460 return SelectInst::Create(IC, Constant::getNullValue(I.getType()), in visitUDiv() 489 return SelectInst::Create(Cond, TSI, FSI); in visitUDiv() 591 if (isa<SelectInst>(Op1) && SimplifyDivRemOfSelect(I)) in commonIRemTransforms() 596 if (SelectInst *SI = dyn_cast<SelectInst>(Op0I)) { in commonIRemTransforms() 643 return SelectInst::Create(Cond, TrueAnd, FalseAnd); in visitURem() [all …]
|
D | InstCombineAddSub.cpp | 112 return SelectInst::Create(ZI->getOperand(0), AddOne(CI), CI); in visitAdd() 257 if (SelectInst *SI = dyn_cast<SelectInst>(LHS)) in visitAdd() 264 SelectInst *SI = dyn_cast<SelectInst>(LHS); in visitAdd() 267 SI = dyn_cast<SelectInst>(RHS); in visitAdd() 279 return SelectInst::Create(SI->getCondition(), N, A); in visitAdd() 283 return SelectInst::Create(SI->getCondition(), A, N); in visitAdd() 577 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitSub() 584 return SelectInst::Create(ZI->getOperand(0), SubOne(C), C); in visitSub()
|
D | InstCombineSelect.cpp | 26 SelectInst *SI = dyn_cast<SelectInst>(V); in MatchSelectPattern() 124 Instruction *InstCombiner::FoldSelectOpOp(SelectInst &SI, Instruction *TI, in FoldSelectOpOp() 205 Instruction *InstCombiner::FoldSelectIntoOp(SelectInst &SI, Value *TrueVal, in FoldSelectIntoOp() 343 Instruction *InstCombiner::visitSelectInstWithICmp(SelectInst &SI, in visitSelectInstWithICmp() 527 const SelectInst &SI) { in CanSelectOperandBeMappingIntoPredBlock() 583 static Value *foldSelectICmpAnd(const SelectInst &SI, ConstantInt *TrueVal, in foldSelectICmpAnd() 649 Instruction *InstCombiner::visitSelectInst(SelectInst &SI) { in visitSelectInst() 867 if (SelectInst *TrueSI = dyn_cast<SelectInst>(TrueVal)) { in visitSelectInst() 873 if (SelectInst *FalseSI = dyn_cast<SelectInst>(FalseVal)) { in visitSelectInst()
|
D | InstCombine.h | 171 Instruction *FoldSelectOpOp(SelectInst &SI, Instruction *TI, 173 Instruction *FoldSelectIntoOp(SelectInst &SI, Value*, Value*); 177 Instruction *visitSelectInst(SelectInst &SI); 178 Instruction *visitSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI); 207 Instruction *FoldOpIntoSelect(Instruction &Op, SelectInst *SI);
|
D | InstCombineShifts.cpp | 32 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in commonShiftTransforms() 164 SelectInst *SI = cast<SelectInst>(I); in CanEvaluateShifted() 351 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in FoldShiftByConstant()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 271 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitMul() 556 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitFMul() 731 SelectInst *SI = cast<SelectInst>(I.getOperand(1)); in SimplifyDivRemOfSelect() 814 if (isa<SelectInst>(Op1) && SimplifyDivRemOfSelect(I)) in commonIDivTransforms() 887 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in commonIDivTransforms() 907 return SelectInst::Create(Cmp, Op1, ConstantInt::get(I.getType(), 0)); in commonIDivTransforms() 989 return SelectInst::Create(ICI, Constant::getNullValue(I.getType()), in foldUDivNegCst() 1045 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitUDivOperand() 1112 Inst = SelectInst::Create(cast<SelectInst>(ActionOp1)->getCondition(), in visitUDiv() 1254 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitFDiv() [all …]
|
D | InstCombineSelect.cpp | 120 Instruction *InstCombiner::FoldSelectOpOp(SelectInst &SI, Instruction *TI, in FoldSelectOpOp() 229 Instruction *InstCombiner::FoldSelectIntoOp(SelectInst &SI, Value *TrueVal, in FoldSelectIntoOp() 309 static Value *foldSelectICmpAndOr(const SelectInst &SI, Value *TrueVal, in foldSelectICmpAndOr() 415 Instruction *InstCombiner::visitSelectInstWithICmp(SelectInst &SI, in visitSelectInstWithICmp() 624 const SelectInst &SI) { in CanSelectOperandBeMappingIntoPredBlock() 711 SelectInst *SI = cast<SelectInst>(Inner); in FoldSPFofSPF() 769 static Value *foldSelectICmpAnd(const SelectInst &SI, ConstantInt *TrueVal, in foldSelectICmpAnd() 842 static Instruction *foldAddSubSelect(SelectInst &SI, in foldAddSubSelect() 912 Instruction *InstCombiner::visitSelectInst(SelectInst &SI) { in visitSelectInst() 1031 return SelectInst::Create(NewCond, FalseVal, TrueVal, in visitSelectInst() [all …]
|
D | InstCombineAddSub.cpp | 1059 return SelectInst::Create(ZI->getOperand(0), AddOne(CI), CI); in visitAdd() 1177 if (SelectInst *SI = dyn_cast<SelectInst>(LHS)) in visitAdd() 1184 SelectInst *SI = dyn_cast<SelectInst>(LHS); in visitAdd() 1187 SI = dyn_cast<SelectInst>(RHS); in visitAdd() 1199 return SelectInst::Create(SI->getCondition(), N, A); in visitAdd() 1203 return SelectInst::Create(SI->getCondition(), A, N); in visitAdd() 1311 if (SelectInst *SI = dyn_cast<SelectInst>(LHS)) in visitFAdd() 1390 return SelectInst::Create(C, A, B); in visitFAdd() 1517 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitSub() 1690 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitFSub()
|
D | InstCombineInternal.h | 305 Instruction *FoldSelectOpOp(SelectInst &SI, Instruction *TI, Instruction *FI); 306 Instruction *FoldSelectIntoOp(SelectInst &SI, Value *, Value *); 311 Instruction *visitSelectInst(SelectInst &SI); 312 Instruction *visitSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI); 346 bool replacedSelectWithOperand(SelectInst *SI, const ICmpInst *Icmp, 356 Instruction *FoldOpIntoSelect(Instruction &Op, SelectInst *SI);
|
D | InstCombineShifts.cpp | 34 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in commonShiftTransforms() 167 SelectInst *SI = cast<SelectInst>(I); in CanEvaluateShifted() 363 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in FoldShiftByConstant()
|
D | InstCombineCasts.cpp | 207 Res = SelectInst::Create(I->getOperand(0), True, False); in EvaluateInDifferentType() 303 if (SelectInst *SI = dyn_cast<SelectInst>(Src)) in commonCastTransforms() 411 SelectInst *SI = cast<SelectInst>(I); in canEvaluateTruncated() 486 if (SelectInst *SI = dyn_cast<SelectInst>(CI.getOperand(0))) in visitTrunc() 1379 SelectInst *SI = dyn_cast<SelectInst>(CI.getOperand(0)); in visitFPTrunc() 1388 return SelectInst::Create(SI->getOperand(0), LHSTrunc, RHSTrunc); in visitFPTrunc()
|
/external/llvm/include/llvm/Transforms/Scalar/ |
D | SROA.h | 99 SetVector<SelectInst *, SmallVector<SelectInst *, 2>> SpeculatableSelects;
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | InstructionSimplify.cpp | 338 SelectInst *SI; in ThreadBinOpOverSelect() 339 if (isa<SelectInst>(LHS)) { in ThreadBinOpOverSelect() 340 SI = cast<SelectInst>(LHS); in ThreadBinOpOverSelect() 342 assert(isa<SelectInst>(RHS) && "No select instruction operand!"); in ThreadBinOpOverSelect() 343 SI = cast<SelectInst>(RHS); in ThreadBinOpOverSelect() 413 if (!isa<SelectInst>(LHS)) { in ThreadCmpOverSelect() 417 assert(isa<SelectInst>(LHS) && "Not comparing with a select instruction!"); in ThreadCmpOverSelect() 418 SelectInst *SI = cast<SelectInst>(LHS); in ThreadCmpOverSelect() 783 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyMulInst() 863 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyDiv() [all …]
|
D | BasicAliasAnalysis.cpp | 541 AliasResult aliasSelect(const SelectInst *SI, uint64_t SISize, 602 if (const SelectInst *SI = dyn_cast<SelectInst>(V)) { in pointsToConstantMemory() 1004 BasicAliasAnalysis::aliasSelect(const SelectInst *SI, uint64_t SISize, in aliasSelect() 1010 if (const SelectInst *SI2 = dyn_cast<SelectInst>(V2)) in aliasSelect() 1213 if (isa<SelectInst>(V2) && !isa<SelectInst>(V1)) { in aliasCheck() 1217 if (const SelectInst *S1 = dyn_cast<SelectInst>(V1)) { in aliasCheck()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | CorrelatedValuePropagation.cpp | 36 bool processSelect(SelectInst *SI); 67 bool CorrelatedValuePropagation::processSelect(SelectInst *S) { in processSelect() 187 BBChanged |= processSelect(cast<SelectInst>(II)); in runOnFunction()
|
/external/spirv-llvm/lib/SPIRV/ |
D | SPIRVLowerBool.cpp | 91 auto Sel = SelectInst::Create(Op, One, Zero, "", &I); in visitZExtInst() 101 auto Sel = SelectInst::Create(Op, One, Zero, "", &I); in visitSExtInst()
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUtils.cpp | 255 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar() 279 (isa<ICmpInst>(Cur) || isa<SelectInst>(Cur))) in AddReductionVar() 281 if (Kind == RK_FloatMinMax && (isa<FCmpInst>(Cur) || isa<SelectInst>(Cur))) in AddReductionVar() 326 !isa<SelectInst>(UI)) || in AddReductionVar() 375 assert((isa<ICmpInst>(I) || isa<FCmpInst>(I) || isa<SelectInst>(I)) && in isMinMaxSelectCmpPattern() 378 SelectInst *Select = nullptr; in isMinMaxSelectCmpPattern() 383 if (!Cmp->hasOneUse() || !(Select = dyn_cast<SelectInst>(*I->user_begin()))) in isMinMaxSelectCmpPattern() 389 if (!(Select = dyn_cast<SelectInst>(I))) in isMinMaxSelectCmpPattern()
|
/external/llvm/lib/Transforms/Scalar/ |
D | CorrelatedValuePropagation.cpp | 71 static bool processSelect(SelectInst *S, LazyValueInfo *LVI) { in processSelect() 109 SelectInst *SI = dyn_cast<SelectInst>(Incoming); in processPHI() 416 BBChanged |= processSelect(cast<SelectInst>(II), LVI); in runImpl()
|
D | RewriteStatepointsForGC.cpp | 370 assert((isa<SelectInst>(I) || isa<PHINode>(I)) && in findBaseDefiningValueOfVector() 494 assert((isa<SelectInst>(I) || isa<PHINode>(I)) && in findBaseDefiningValue() 527 if (!isa<PHINode>(V) && !isa<SelectInst>(V) && in isKnownBaseResult() 678 return isa<PHINode>(BDV) || isa<SelectInst>(BDV) || in findBasePointer() 714 } else if (SelectInst *SI = dyn_cast<SelectInst>(Current)) { in findBasePointer() 769 if (SelectInst *SI = dyn_cast<SelectInst>(BDV)) { in findBasePointer() 848 } else if (SelectInst *SI = dyn_cast<SelectInst>(I)) { in findBasePointer() 852 return SelectInst::Create(SI->getCondition(), Undef, Undef, Name, SI); in findBasePointer() 952 } else if (SelectInst *BaseSI = in findBasePointer() 953 dyn_cast<SelectInst>(State.getBaseValue())) { in findBasePointer() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | MemoryBuiltins.h | 198 SizeOffsetType visitSelectInst(SelectInst &I); 261 SizeOffsetEvalType visitSelectInst(SelectInst &I);
|
/external/llvm/lib/Analysis/ |
D | BasicAliasAnalysis.cpp | 531 if (const SelectInst *SI = dyn_cast<SelectInst>(V)) { in pointsToConstantMemory() 1251 AliasResult BasicAAResult::aliasSelect(const SelectInst *SI, uint64_t SISize, in aliasSelect() 1257 if (const SelectInst *SI2 = dyn_cast<SelectInst>(V2)) in aliasSelect() 1512 if (isa<SelectInst>(V2) && !isa<SelectInst>(V1)) { in aliasCheck() 1517 if (const SelectInst *S1 = dyn_cast<SelectInst>(V1)) { in aliasCheck()
|
D | InstructionSimplify.cpp | 304 SelectInst *SI; in ThreadBinOpOverSelect() 305 if (isa<SelectInst>(LHS)) { in ThreadBinOpOverSelect() 306 SI = cast<SelectInst>(LHS); in ThreadBinOpOverSelect() 308 assert(isa<SelectInst>(RHS) && "No select instruction operand!"); in ThreadBinOpOverSelect() 309 SI = cast<SelectInst>(RHS); in ThreadBinOpOverSelect() 377 if (!isa<SelectInst>(LHS)) { in ThreadCmpOverSelect() 381 assert(isa<SelectInst>(LHS) && "Not comparing with a select instruction!"); in ThreadCmpOverSelect() 382 SelectInst *SI = cast<SelectInst>(LHS); in ThreadCmpOverSelect() 930 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyMulInst() 1050 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyDiv() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 918 std::map<std::pair<Value*,Value*>, SelectInst*> InsertedSelects; in HoistThenElseCodeToIf() 929 SelectInst *&SI = InsertedSelects[std::make_pair(BB1V, BB2V)]; in HoistThenElseCodeToIf() 931 SI = cast<SelectInst> in HoistThenElseCodeToIf() 1093 SelectInst *SI; in SpeculativelyExecuteBB() 1095 SI = cast<SelectInst> in SpeculativelyExecuteBB() 1099 SI = cast<SelectInst> in SpeculativelyExecuteBB() 1359 SelectInst *NV = in FoldTwoEntryPHINode() 1360 cast<SelectInst>(Builder.CreateSelect(IfCond, TrueVal, FalseVal, "")); in FoldTwoEntryPHINode() 1811 Value *NV = cast<SelectInst> in SimplifyCondBranchToCondBranch() 1888 static bool SimplifySwitchOnSelect(SwitchInst *SI, SelectInst *Select) { in SimplifySwitchOnSelect() [all …]
|