/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 166 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitMul() 274 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitFMul() 293 SelectInst *SI = cast<SelectInst>(I.getOperand(1)); in SimplifyDivRemOfSelect() 377 if (isa<SelectInst>(Op1) && SimplifyDivRemOfSelect(I)) in commonIDivTransforms() 393 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() 268 if (SelectInst *SI = dyn_cast<SelectInst>(LHS)) in visitAdd() 275 SelectInst *SI = dyn_cast<SelectInst>(LHS); in visitAdd() 278 SI = dyn_cast<SelectInst>(RHS); in visitAdd() 290 return SelectInst::Create(SI->getCondition(), N, A); in visitAdd() 294 return SelectInst::Create(SI->getCondition(), A, N); in visitAdd() 588 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in visitSub() 595 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() 204 Instruction *InstCombiner::FoldSelectIntoOp(SelectInst &SI, Value *TrueVal, in FoldSelectIntoOp() 345 Instruction *InstCombiner::visitSelectInstWithICmp(SelectInst &SI, in visitSelectInstWithICmp() 529 const SelectInst &SI) { in CanSelectOperandBeMappingIntoPredBlock() 585 static Value *foldSelectICmpAnd(const SelectInst &SI, ConstantInt *TrueVal, in foldSelectICmpAnd() 651 Instruction *InstCombiner::visitSelectInst(SelectInst &SI) { in visitSelectInst() 876 if (SelectInst *TrueSI = dyn_cast<SelectInst>(TrueVal)) { in visitSelectInst() 882 if (SelectInst *FalseSI = dyn_cast<SelectInst>(FalseVal)) { in visitSelectInst()
|
D | InstCombine.h | 175 Instruction *FoldSelectOpOp(SelectInst &SI, Instruction *TI, 177 Instruction *FoldSelectIntoOp(SelectInst &SI, Value*, Value*); 181 Instruction *visitSelectInst(SelectInst &SI); 182 Instruction *visitSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI); 211 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() 352 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in FoldShiftByConstant()
|
D | InstCombineAndOrXor.cpp | 1125 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitAnd() 1421 return SelectInst::Create(Cond, C, B); in MatchSelectFromAndOr() 1423 return SelectInst::Create(Cond, C, B); in MatchSelectFromAndOr() 1427 return SelectInst::Create(Cond, C, D); in MatchSelectFromAndOr() 1429 return SelectInst::Create(Cond, C, D); in MatchSelectFromAndOr() 1756 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitOr() 2014 return SelectInst::Create(A, ConstantInt::getSigned(I.getType(), -1), Op1); in visitOr() 2016 return SelectInst::Create(A, ConstantInt::getSigned(I.getType(), -1), Op0); in visitOr() 2158 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in visitXor()
|
D | InstCombineLoadStoreAlloca.cpp | 290 if (SelectInst *SI = dyn_cast<SelectInst>(Op)) { in visitLoadInst() 301 return SelectInst::Create(SI->getCondition(), V1, V2); in visitLoadInst()
|
D | InstCombineCasts.cpp | 202 Res = SelectInst::Create(I->getOperand(0), True, False); in EvaluateInDifferentType() 297 if (SelectInst *SI = dyn_cast<SelectInst>(Src)) in commonCastTransforms() 405 SelectInst *SI = cast<SelectInst>(I); in CanEvaluateTruncated()
|
/external/llvm/lib/Analysis/ |
D | BasicAliasAnalysis.cpp | 542 AliasResult aliasSelect(const SelectInst *SI, uint64_t SISize, 603 if (const SelectInst *SI = dyn_cast<SelectInst>(V)) { in pointsToConstantMemory() 1001 BasicAliasAnalysis::aliasSelect(const SelectInst *SI, uint64_t SISize, in aliasSelect() 1007 if (const SelectInst *SI2 = dyn_cast<SelectInst>(V2)) in aliasSelect() 1210 if (isa<SelectInst>(V2) && !isa<SelectInst>(V1)) { in aliasCheck() 1214 if (const SelectInst *S1 = dyn_cast<SelectInst>(V1)) { in aliasCheck()
|
D | InstructionSimplify.cpp | 364 SelectInst *SI; in ThreadBinOpOverSelect() 365 if (isa<SelectInst>(LHS)) { in ThreadBinOpOverSelect() 366 SI = cast<SelectInst>(LHS); in ThreadBinOpOverSelect() 368 assert(isa<SelectInst>(RHS) && "No select instruction operand!"); in ThreadBinOpOverSelect() 369 SI = cast<SelectInst>(RHS); in ThreadBinOpOverSelect() 438 if (!isa<SelectInst>(LHS)) { in ThreadCmpOverSelect() 442 assert(isa<SelectInst>(LHS) && "Not comparing with a select instruction!"); in ThreadCmpOverSelect() 443 SelectInst *SI = cast<SelectInst>(LHS); in ThreadCmpOverSelect() 939 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyMulInst() 1019 if (isa<SelectInst>(Op0) || isa<SelectInst>(Op1)) in SimplifyDiv() [all …]
|
D | ValueTracking.cpp | 832 if (SelectInst *SI = dyn_cast<SelectInst>(V)) in isPowerOfTwo() 966 else if (SelectInst *SI = dyn_cast<SelectInst>(V)) { in isKnownNonZero() 1739 if (SelectInst *SI = dyn_cast<SelectInst>(V)) { in GetStringLengthH()
|
/external/llvm/lib/Transforms/Scalar/ |
D | CorrelatedValuePropagation.cpp | 37 bool processSelect(SelectInst *SI); 69 bool CorrelatedValuePropagation::processSelect(SelectInst *S) { in processSelect() 270 BBChanged |= processSelect(cast<SelectInst>(II)); in runOnFunction()
|
D | EarlyCSE.cpp | 66 isa<SelectInst>(Inst) || isa<ExtractElementInst>(Inst) || in canHandle() 115 isa<SelectInst>(Inst) || isa<ExtractElementInst>(Inst) || in getHashValue()
|
D | ScalarReplAggregates.cpp | 1021 static bool isSafeSelectToSpeculate(SelectInst *SI, const TargetData *TD) { in isSafeSelectToSpeculate() 1142 if (SelectInst *SI = dyn_cast<SelectInst>(U)) { in tryToMakeAllocaBePromotable() 1209 if (SelectInst *SI = dyn_cast<SelectInst>(InstsToRewrite[i])) { in tryToMakeAllocaBePromotable() 1548 } else if (isa<PHINode>(User) || isa<SelectInst>(User)) { in isSafeForScalarRepl() 1603 } else if (isa<PHINode>(User) || isa<SelectInst>(User)) { in isSafePHISelectUseForScalarRepl() 1850 if (isa<SelectInst>(User) || isa<PHINode>(User)) { in RewriteForScalarRepl()
|
D | ObjCARC.cpp | 636 isa<PHINode>(UUser) || isa<SelectInst>(UUser)) { in DoesObjCBlockEscape() 1125 bool relatedSelect(const SelectInst *A, const Value *B); 1147 bool ProvenanceAnalysis::relatedSelect(const SelectInst *A, const Value *B) { in relatedSelect() 1150 if (const SelectInst *SB = dyn_cast<SelectInst>(B)) in relatedSelect() 1271 if (const SelectInst *S = dyn_cast<SelectInst>(A)) in relatedCheck() 1273 if (const SelectInst *S = dyn_cast<SelectInst>(B)) in relatedCheck()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 922 std::map<std::pair<Value*,Value*>, SelectInst*> InsertedSelects; in HoistThenElseCodeToIf() 933 SelectInst *&SI = InsertedSelects[std::make_pair(BB1V, BB2V)]; in HoistThenElseCodeToIf() 935 SI = cast<SelectInst> in HoistThenElseCodeToIf() 1074 SelectInst *SI; in SpeculativelyExecuteBB() 1076 SI = cast<SelectInst> in SpeculativelyExecuteBB() 1080 SI = cast<SelectInst> in SpeculativelyExecuteBB() 1346 SelectInst *NV = in FoldTwoEntryPHINode() 1347 cast<SelectInst>(Builder.CreateSelect(IfCond, TrueVal, FalseVal, "")); in FoldTwoEntryPHINode() 1926 Value *NV = cast<SelectInst> in SimplifyCondBranchToCondBranch() 2003 static bool SimplifySwitchOnSelect(SwitchInst *SI, SelectInst *Select) { in SimplifySwitchOnSelect() [all …]
|
D | SimplifyIndVar.cpp | 223 SelectInst *Sel = in eliminateIVRemainder() 224 SelectInst::Create(ICmp, in eliminateIVRemainder()
|
/external/llvm/include/llvm/ |
D | Instructions.h | 1410 class SelectInst : public Instruction { 1418 SelectInst(Value *C, Value *S1, Value *S2, const Twine &NameStr, 1425 SelectInst(Value *C, Value *S1, Value *S2, const Twine &NameStr, 1433 virtual SelectInst *clone_impl() const; 1435 static SelectInst *Create(Value *C, Value *S1, Value *S2, 1438 return new(3) SelectInst(C, S1, S2, NameStr, InsertBefore); 1440 static SelectInst *Create(Value *C, Value *S1, Value *S2, 1443 return new(3) SelectInst(C, S1, S2, NameStr, InsertAtEnd); 1465 static inline bool classof(const SelectInst *) { return true; } 1475 struct OperandTraits<SelectInst> : public FixedNumOperandTraits<SelectInst, 3> { [all …]
|
D | Instruction.def | 165 HANDLE_OTHER_INST(49, Select , SelectInst ) // select instruction
|
/external/llvm/include/llvm/Support/ |
D | PatternMatch.h | 539 if (SelectInst *I = dyn_cast<SelectInst>(V)) in match() 744 SelectInst *SI = dyn_cast<SelectInst>(V); in match()
|
D | InstVisitor.h | 189 RetTy visitSelectInst(SelectInst &I) { DELEGATE(Instruction);} in visitSelectInst()
|
D | NoFolder.h | 256 return SelectInst::Create(C, True, False); in CreateSelect()
|
/external/llvm/lib/Transforms/IPO/ |
D | FunctionAttrs.cpp | 505 SelectInst *SI = cast<SelectInst>(RVI); in IsFunctionMallocLike()
|
D | GlobalOpt.cpp | 259 } else if (isa<SelectInst>(I)) { in AnalyzeGlobal() 799 assert((isa<PHINode>(GlobalUser) || isa<SelectInst>(GlobalUser) || in OptimizeAwayTrappingUsesOfLoads() 1686 assert((isa<CastInst>(StoredVal) || isa<SelectInst>(StoredVal)) && in TryToShrinkGlobalToBoolean() 1703 NSI = SelectInst::Create(NLI, OtherVal, InitVal, "", LI); in TryToShrinkGlobalToBoolean() 2462 } else if (SelectInst *SI = dyn_cast<SelectInst>(CurInst)) { in EvaluateBlock()
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.h | 168 void visitSelectInst(SelectInst &I);
|