Home
last modified time | relevance | path

Searched refs:SelectInst (Results 1 – 25 of 218) sorted by relevance

123456789

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/ObjCARC/
DProvenanceAnalysis.cpp42 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()
DProvenanceAnalysis.h38 class SelectInst; variable
63 bool relatedSelect(const SelectInst *A, const Value *B);
/external/llvm/lib/Transforms/ObjCARC/
DProvenanceAnalysis.cpp33 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()
DProvenanceAnalysis.h35 class SelectInst; variable
58 bool relatedSelect(const SelectInst *A, const Value *B);
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp166 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 …]
DInstCombineAddSub.cpp112 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()
DInstCombineSelect.cpp26 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()
DInstCombine.h171 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);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp65 static Instruction *foldSelectBinOpIdentity(SelectInst &Sel) { in foldSelectBinOpIdentity()
96 static Value *foldSelectICmpAnd(SelectInst &Sel, ICmpInst *Cmp, in foldSelectICmpAnd()
255 Instruction *InstCombiner::foldSelectOpOp(SelectInst &SI, Instruction *TI, in foldSelectOpOp()
374 Instruction *InstCombiner::foldSelectIntoOp(SelectInst &SI, Value *TrueVal, in foldSelectIntoOp()
697 static bool adjustMinMax(SelectInst &Sel, ICmpInst &Cmp) { in adjustMinMax()
794 canonicalizeMinMaxWithConstant(SelectInst &Sel, ICmpInst &Cmp, in canonicalizeMinMaxWithConstant()
833 static Instruction *canonicalizeAbsNabs(SelectInst &Sel, ICmpInst &Cmp, in canonicalizeAbsNabs()
911 Instruction *InstCombiner::foldSelectInstWithICmp(SelectInst &SI, in foldSelectInstWithICmp()
1019 const SelectInst &SI) { in canSelectOperandBeMappingIntoPredBlock()
1102 SelectInst *SI = cast<SelectInst>(Inner); in foldSPFofSPF()
[all …]
DInstCombineMulDivRem.cpp310 return SelectInst::Create(X, Op1, ConstantInt::get(I.getType(), 0)); in visitMul()
312 return SelectInst::Create(X, Op0, ConstantInt::get(I.getType(), 0)); in visitMul()
557 SelectInst *SI = dyn_cast<SelectInst>(I.getOperand(1)); in simplifyDivRemOfSelectWithZeroOp()
749 return SelectInst::Create(Cmp, Op1, ConstantInt::get(Ty, 0)); in commonIDivTransforms()
883 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitUDivOperand()
1008 Inst = SelectInst::Create(cast<SelectInst>(ActionOp1)->getCondition(), in visitUDiv()
1189 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitFDiv()
1194 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitFDiv()
1277 if (SelectInst *SI = dyn_cast<SelectInst>(Op0I)) { in commonIRemTransforms()
1333 return SelectInst::Create(Cmp, Op0, Sub); in visitURem()
[all …]
DInstCombineInternal.h387 Instruction *visitSelectInst(SelectInst &SI);
422 bool replacedSelectWithOperand(SelectInst *SI, const ICmpInst *Icmp,
734 bool matchThreeWayIntCompare(SelectInst *SI, Value *&LHS, Value *&RHS,
783 Instruction *FoldOpIntoSelect(Instruction &Op, SelectInst *SI);
828 Instruction *foldICmpSelectConstant(ICmpInst &Cmp, SelectInst *Select,
869 Instruction *foldSelectExtConst(SelectInst &Sel);
870 Instruction *foldSelectOpOp(SelectInst &SI, Instruction *TI, Instruction *FI);
871 Instruction *foldSelectIntoOp(SelectInst &SI, Value *, Value *);
875 Instruction *foldSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI);
DInstCombineAddSub.cpp939 return SelectInst::Create(X, AddOne(Op1C), Op1); in foldAddWithConstant()
1265 SelectInst *SI = dyn_cast<SelectInst>(LHS); in visitAdd()
1268 SI = dyn_cast<SelectInst>(RHS); in visitAdd()
1280 return SelectInst::Create(SI->getCondition(), N, A); in visitAdd()
1284 return SelectInst::Create(SI->getCondition(), A, N); in visitAdd()
1633 return SelectInst::Create(X, SubOne(C), C); in visitSub()
1640 return SelectInst::Create(X, AddOne(C), C); in visitSub()
1648 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitSub()
1689 SelectInst *SI = cast<SelectInst>(Op1); in visitSub()
1819 return SelectInst::Create(Cmp, Neg, A); in visitSub()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Scalar/
DSROA.h34 class SelectInst; variable
111 SetVector<SelectInst *, SmallVector<SelectInst *, 2>> SpeculatableSelects;
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp271 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 …]
DInstCombineSelect.cpp120 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 …]
DInstCombineAddSub.cpp1059 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()
DInstCombineInternal.h305 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);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonLoopIdiomRecognition.cpp605 bool matchLeftShift(SelectInst *SelI, Value *CIV, ParsedValues &PV);
606 bool matchRightShift(SelectInst *SelI, ParsedValues &PV);
607 bool scanSelect(SelectInst *SI, BasicBlock *LoopB, BasicBlock *PrehB,
666 bool PolynomialMultiplyRecognize::matchLeftShift(SelectInst *SelI, in matchLeftShift()
781 bool PolynomialMultiplyRecognize::matchRightShift(SelectInst *SelI, in matchRightShift()
856 bool PolynomialMultiplyRecognize::scanSelect(SelectInst *SelI, in scanSelect()
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()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInstructionSimplify.cpp338 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 …]
DBasicAliasAnalysis.cpp541 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/llvm/include/llvm/Transforms/Scalar/
DSROA.h99 SetVector<SelectInst *, SmallVector<SelectInst *, 2>> SpeculatableSelects;
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp36 bool processSelect(SelectInst *SI);
67 bool CorrelatedValuePropagation::processSelect(SelectInst *S) { in processSelect()
187 BBChanged |= processSelect(cast<SelectInst>(II)); in runOnFunction()
/external/llvm/lib/Transforms/Utils/
DLoopUtils.cpp255 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/spirv-llvm/lib/SPIRV/
DSPIRVLowerBool.cpp91 auto Sel = SelectInst::Create(Op, One, Zero, "", &I); in visitZExtInst()
101 auto Sel = SelectInst::Create(Op, One, Zero, "", &I); in visitSExtInst()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DMemoryBuiltins.h50 class SelectInst; variable
241 SizeOffsetType visitSelectInst(SelectInst &I);
307 SizeOffsetEvalType visitSelectInst(SelectInst &I);

123456789