Searched refs:SelectInst (Results 1 - 25 of 50) sorted by relevance

12

/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp166 if (SelectInst *SI = dyn_cast<SelectInst>(Op0))
274 if (SelectInst *SI = dyn_cast<SelectInst>(Op0))
293 SelectInst *SI = cast<SelectInst>(I.getOperand(1));
377 if (isa<SelectInst>(Op1) && SimplifyDivRemOfSelect(I))
393 if (SelectInst *SI = dyn_cast<SelectInst>(Op0))
460 return SelectInst
[all...]
H A DInstCombineSelect.cpp26 SelectInst *SI = dyn_cast<SelectInst>(V);
124 Instruction *InstCombiner::FoldSelectOpOp(SelectInst &SI, Instruction *TI,
210 Instruction *InstCombiner::FoldSelectIntoOp(SelectInst &SI, Value *TrueVal,
352 /// visitSelectInstWithICmp - Visit a SelectInst that has an
355 Instruction *InstCombiner::visitSelectInstWithICmp(SelectInst &SI,
539 const SelectInst &SI) {
595 static Value *foldSelectICmpAnd(const SelectInst &SI, ConstantInt *TrueVal,
661 Instruction *InstCombiner::visitSelectInst(SelectInst &SI) {
886 if (SelectInst *TrueS
[all...]
H A DInstCombine.h175 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);
H A DInstCombineAddSub.cpp112 return SelectInst::Create(ZI->getOperand(0), AddOne(CI), CI);
269 if (SelectInst *SI = dyn_cast<SelectInst>(LHS))
276 SelectInst *SI = dyn_cast<SelectInst>(LHS);
279 SI = dyn_cast<SelectInst>(RHS);
291 return SelectInst::Create(SI->getCondition(), N, A);
295 return SelectInst::Create(SI->getCondition(), A, N);
543 if (SelectInst *SI = dyn_cast<SelectInst>(Op
[all...]
H A DInstCombineShifts.cpp32 if (SelectInst *SI = dyn_cast<SelectInst>(Op1))
164 SelectInst *SI = cast<SelectInst>(I);
352 if (SelectInst *SI = dyn_cast<SelectInst>(Op0))
H A DInstCombineAndOrXor.cpp1129 if (SelectInst *SI = dyn_cast<SelectInst>(Op0))
1425 return SelectInst::Create(Cond, C, B);
1427 return SelectInst::Create(Cond, C, B);
1431 return SelectInst::Create(Cond, C, D);
1433 return SelectInst::Create(Cond, C, D);
1760 if (SelectInst *SI = dyn_cast<SelectInst>(Op0))
2023 return SelectInst::Create(A, ConstantInt::getSigned(I.getType(), -1), Op1);
2025 return SelectInst
[all...]
H A DInstCombineLoadStoreAlloca.cpp431 if (SelectInst *SI = dyn_cast<SelectInst>(Op)) {
442 return SelectInst::Create(SI->getCondition(), V1, V2);
H A DInstCombineCasts.cpp202 Res = SelectInst::Create(I->getOperand(0), True, False);
297 if (SelectInst *SI = dyn_cast<SelectInst>(Src))
405 SelectInst *SI = cast<SelectInst>(I);
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp37 bool processSelect(SelectInst *SI);
69 bool CorrelatedValuePropagation::processSelect(SelectInst *S) {
275 BBChanged |= processSelect(cast<SelectInst>(II));
H A DEarlyCSE.cpp66 isa<SelectInst>(Inst) || isa<ExtractElementInst>(Inst) ||
115 isa<SelectInst>(Inst) || isa<ExtractElementInst>(Inst) ||
H A DCodeGenPrepare.cpp129 bool OptimizeSelectInst(SelectInst *SI);
1245 /// isFormingBranchFromSelectProfitable - Returns true if a SelectInst should be
1247 static bool isFormingBranchFromSelectProfitable(SelectInst *SI) {
1274 /// If we have a SelectInst that will likely profit from branch prediction,
1276 bool CodeGenPrepare::OptimizeSelectInst(SelectInst *SI) {
1405 if (SelectInst *SI = dyn_cast<SelectInst>(I))
H A DScalarReplAggregates.cpp1137 static bool isSafeSelectToSpeculate(SelectInst *SI, const TargetData *TD) {
1258 if (SelectInst *SI = dyn_cast<SelectInst>(U)) {
1325 if (SelectInst *SI = dyn_cast<SelectInst>(InstsToRewrite[i])) {
1642 } else if (isa<PHINode>(User) || isa<SelectInst>(User)) {
1697 } else if (isa<PHINode>(User) || isa<SelectInst>(User)) {
1958 if (isa<SelectInst>(User) || isa<PHINode>(User)) {
H A DObjCARC.cpp634 isa<PHINode>(UUser) || isa<SelectInst>(UUser)) {
1121 bool relatedSelect(const SelectInst *A, const Value *B);
1142 bool ProvenanceAnalysis::relatedSelect(const SelectInst *A, const Value *B) {
1145 if (const SelectInst *SB = dyn_cast<SelectInst>(B))
1260 if (const SelectInst *S = dyn_cast<SelectInst>(A))
1262 if (const SelectInst *S = dyn_cast<SelectInst>(B))
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/Analysis/
H A DMemoryBuiltins.h198 SizeOffsetType visitSelectInst(SelectInst &I);
259 SizeOffsetEvalType visitSelectInst(SelectInst &I);
/macosx-10.9.5/llvmCore-3425.0.33/lib/Analysis/
H A DBasicAliasAnalysis.cpp515 AliasResult aliasSelect(const SelectInst *SI, uint64_t SISize,
576 if (const SelectInst *SI = dyn_cast<SelectInst>(V)) {
1020 BasicAliasAnalysis::aliasSelect(const SelectInst *SI, uint64_t SISize,
1026 if (const SelectInst *SI2 = dyn_cast<SelectInst>(V2))
1264 if (isa<SelectInst>(V2) && !isa<SelectInst>(V1)) {
1268 if (const SelectInst *S1 = dyn_cast<SelectInst>(V
[all...]
H A DInstructionSimplify.cpp364 SelectInst *SI;
365 if (isa<SelectInst>(LHS)) {
366 SI = cast<SelectInst>(LHS);
368 assert(isa<SelectInst>(RHS) && "No select instruction operand!");
369 SI = cast<SelectInst>(RHS);
438 if (!isa<SelectInst>(LHS)) {
442 assert(isa<SelectInst>(LHS) && "Not comparing with a select instruction!");
443 SelectInst *SI = cast<SelectInst>(LHS);
939 if (isa<SelectInst>(Op
[all...]
H A DValueTracking.cpp832 if (SelectInst *SI = dyn_cast<SelectInst>(V))
966 else if (SelectInst *SI = dyn_cast<SelectInst>(V)) {
1739 if (SelectInst *SI = dyn_cast<SelectInst>(V)) {
1814 if (SelectInst *SI = dyn_cast<SelectInst>(P)) {
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp221 SelectInst *Sel =
222 SelectInst::Create(ICmp,
H A DSimplifyCFG.cpp1133 std::map<std::pair<Value*,Value*>, SelectInst*> InsertedSelects;
1144 SelectInst *&SI = InsertedSelects[std::make_pair(BB1V, BB2V)];
1146 SI = cast<SelectInst>
1454 SelectInst *SI;
1456 SI = cast<SelectInst>
1460 SI = cast<SelectInst>
1726 SelectInst *NV =
1727 cast<SelectInst>(Builder.CreateSelect(IfCond, TrueVal, FalseVal, ""));
2371 Value *NV = cast<SelectInst>
2455 static bool SimplifySwitchOnSelect(SwitchInst *SI, SelectInst *Selec
[all...]
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/Support/
H A DPatternMatch.h524 // Matchers for SelectInst classes
539 if (SelectInst *I = dyn_cast<SelectInst>(V))
744 SelectInst *SI = dyn_cast<SelectInst>(V);
H A DInstVisitor.h194 RetTy visitSelectInst(SelectInst &I) { DELEGATE(Instruction);}
H A DNoFolder.h268 return SelectInst::Create(C, True, False);
/macosx-10.9.5/llvmCore-3425.0.33/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h168 void visitSelectInst(SelectInst &I);
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/IPO/
H A DFunctionAttrs.cpp505 SelectInst *SI = cast<SelectInst>(RVI);
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/
H A DInstructions.h1412 // SelectInst Class
1415 /// SelectInst - This class represents the LLVM 'select' instruction.
1417 class SelectInst : public Instruction { class in namespace:llvm
1425 SelectInst(Value *C, Value *S1, Value *S2, const Twine &NameStr, function in class:llvm::SelectInst
1432 SelectInst(Value *C, Value *S1, Value *S2, const Twine &NameStr, function in class:llvm::SelectInst
1440 virtual SelectInst *clone_impl() const;
1442 static SelectInst *Create(Value *C, Value *S1, Value *S2,
1445 return new(3) SelectInst(C, S1, S2, NameStr, InsertBefore);
1447 static SelectInst *Create(Value *C, Value *S1, Value *S2,
1450 return new(3) SelectInst(
[all...]

Completed in 356 milliseconds

12