Home
last modified time | relevance | path

Searched refs:UserInst (Results 1 – 8 of 8) sorted by relevance

/external/llvm/lib/IR/
DDominators.cpp199 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local
201 PHINode *PN = dyn_cast<PHINode>(UserInst); in dominates()
212 UseBB = UserInst->getParent(); in dominates()
217 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local
224 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in dominates()
227 UseBB = UserInst->getParent(); in dominates()
256 if (isa<PHINode>(UserInst)) in dominates()
261 for (; &*I != Def && &*I != UserInst; ++I) in dominates()
264 return &*I != UserInst; in dominates()
/external/llvm/lib/Analysis/
DDivergenceAnalysis.cpp193 Instruction *UserInst = cast<Instruction>(U); in findUsersOutsideInfluenceRegion() local
194 if (!InfluenceRegion.count(UserInst->getParent())) { in findUsersOutsideInfluenceRegion()
195 if (DV.insert(UserInst).second) in findUsersOutsideInfluenceRegion()
196 Worklist.push_back(UserInst); in findUsersOutsideInfluenceRegion()
234 Instruction *UserInst = cast<Instruction>(U); in exploreDataDependency() local
235 if (DV.insert(UserInst).second) in exploreDataDependency()
236 Worklist.push_back(UserInst); in exploreDataDependency()
/external/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp1091 Instruction *UserInst; member
1122 : UserInst(nullptr), OperandValToReplace(nullptr), LUIdx(~size_t(0)), in LSRFixup()
1128 if (const PHINode *PN = dyn_cast<PHINode>(UserInst)) { in isUseFullyOutsideLoop()
1136 return !L->contains(UserInst); in isUseFullyOutsideLoop()
1142 if (StoreInst *Store = dyn_cast<StoreInst>(UserInst)) { in print()
1145 } else if (UserInst->getType()->isVoidTy()) in print()
1146 OS << UserInst->getOpcodeName(); in print()
1148 UserInst->printAsOperand(OS, /*PrintType=*/false); in print()
1587 Instruction *UserInst; member
1592 UserInst(U), IVOperand(O), IncExpr(E) {} in IVInc()
[all …]
DLoopRotation.cpp91 Instruction *UserInst = cast<Instruction>(U.getUser()); in RewriteUsesOfClonedInstructions() local
92 if (!isa<PHINode>(UserInst)) { in RewriteUsesOfClonedInstructions()
93 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions()
456 auto *UserInst = cast<Instruction>(UseI); in shouldSpeculateInstrs() local
457 if (!L->contains(UserInst)) in shouldSpeculateInstrs()
/external/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp349 Instruction *UserInst = cast<Instruction>(*UI++); in rewriteSingleStoreAlloca() local
350 if (!isa<LoadInst>(UserInst)) { in rewriteSingleStoreAlloca()
351 assert(UserInst == OnlyStore && "Should only have load/stores"); in rewriteSingleStoreAlloca()
354 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca()
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCOpts.cpp1931 const Instruction *UserInst = cast<Instruction>(U); in OptimizeWeakCalls() local
1932 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()
1943 CallInst *UserInst = cast<CallInst>(*UI++); in OptimizeWeakCalls() local
1944 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()
1948 UserInst->replaceAllUsesWith(UserInst->getArgOperand(1)); in OptimizeWeakCalls()
1956 UserInst->eraseFromParent(); in OptimizeWeakCalls()
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp311 static bool InTreeUserNeedToExtract(Value *Scalar, Instruction *UserInst, in InTreeUserNeedToExtract() argument
314 unsigned Opcode = UserInst->getOpcode(); in InTreeUserNeedToExtract()
317 LoadInst *LI = cast<LoadInst>(UserInst); in InTreeUserNeedToExtract()
321 StoreInst *SI = cast<StoreInst>(UserInst); in InTreeUserNeedToExtract()
325 CallInst *CI = cast<CallInst>(UserInst); in InTreeUserNeedToExtract()
954 Instruction *UserInst = dyn_cast<Instruction>(U); in buildTree() local
955 if (!UserInst) in buildTree()
967 !InTreeUserNeedToExtract(Scalar, UserInst, TLI)) { in buildTree()
976 if (std::find(UserIgnoreList.begin(), UserIgnoreList.end(), UserInst) != in buildTree()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp2779 Instruction *UserInst = cast<Instruction>(*I->user_begin()); in run() local
2783 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in run()
2786 UserParent = UserInst->getParent(); in run()