Home
last modified time | relevance | path

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

/external/llvm/lib/IR/
DDominators.cpp197 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local
199 PHINode *PN = dyn_cast<PHINode>(UserInst); in dominates()
210 UseBB = UserInst->getParent(); in dominates()
215 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local
222 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in dominates()
225 UseBB = UserInst->getParent(); in dominates()
254 if (isa<PHINode>(UserInst)) in dominates()
259 for (; &*I != Def && &*I != UserInst; ++I) in dominates()
262 return &*I != UserInst; in dominates()
/external/llvm/lib/Analysis/
DDivergenceAnalysis.cpp202 Instruction *UserInst = cast<Instruction>(U); in findUsersOutsideInfluenceRegion() local
203 if (!InfluenceRegion.count(UserInst->getParent())) { in findUsersOutsideInfluenceRegion()
204 if (DV.insert(UserInst).second) in findUsersOutsideInfluenceRegion()
205 Worklist.push_back(UserInst); in findUsersOutsideInfluenceRegion()
243 Instruction *UserInst = cast<Instruction>(U); in exploreDataDependency() local
244 if (DV.insert(UserInst).second) in exploreDataDependency()
245 Worklist.push_back(UserInst); in exploreDataDependency()
/external/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp1075 Instruction *UserInst; member
1106 : UserInst(nullptr), OperandValToReplace(nullptr), LUIdx(~size_t(0)), in LSRFixup()
1112 if (const PHINode *PN = dyn_cast<PHINode>(UserInst)) { in isUseFullyOutsideLoop()
1120 return !L->contains(UserInst); in isUseFullyOutsideLoop()
1126 if (StoreInst *Store = dyn_cast<StoreInst>(UserInst)) { in print()
1129 } else if (UserInst->getType()->isVoidTy()) in print()
1130 OS << UserInst->getOpcodeName(); in print()
1132 UserInst->printAsOperand(OS, /*PrintType=*/false); in print()
1571 Instruction *UserInst; member
1576 UserInst(U), IVOperand(O), IncExpr(E) {} in IVInc()
[all …]
DLoopRotation.cpp119 Instruction *UserInst = cast<Instruction>(U.getUser()); in RewriteUsesOfClonedInstructions() local
120 if (!isa<PHINode>(UserInst)) { in RewriteUsesOfClonedInstructions()
121 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions()
149 DbgInfoIntrinsic *UserInst = dyn_cast<DbgInfoIntrinsic>(U.getUser()); in RewriteUsesOfClonedInstructions() local
150 if (!UserInst) in RewriteUsesOfClonedInstructions()
155 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions()
524 auto *UserInst = cast<Instruction>(UseI); in shouldSpeculateInstrs() local
525 if (!L->contains(UserInst)) in shouldSpeculateInstrs()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopRotation.cpp126 Instruction *UserInst = cast<Instruction>(U.getUser()); in RewriteUsesOfClonedInstructions() local
127 if (!isa<PHINode>(UserInst)) { in RewriteUsesOfClonedInstructions()
128 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions()
DLoopStrengthReduce.cpp901 Instruction *UserInst; member
933 : UserInst(0), OperandValToReplace(0), LUIdx(~size_t(0)), Offset(0) {} in LSRFixup()
939 if (const PHINode *PN = dyn_cast<PHINode>(UserInst)) { in isUseFullyOutsideLoop()
947 return !L->contains(UserInst); in isUseFullyOutsideLoop()
953 if (StoreInst *Store = dyn_cast<StoreInst>(UserInst)) { in print()
956 } else if (UserInst->getType()->isVoidTy()) in print()
957 OS << UserInst->getOpcodeName(); in print()
959 WriteAsOperand(OS, UserInst, /*PrintType=*/false); in print()
2098 LF.UserInst = UI->getUser(); in CollectFixupsAndInitialFormulae()
2104 if (isAddressUse(LF.UserInst, LF.OperandValToReplace)) { in CollectFixupsAndInitialFormulae()
[all …]
DObjCARC.cpp3079 Instruction *UserInst = cast<Instruction>(*UI); in OptimizeWeakCalls() local
3080 switch (GetBasicInstructionClass(UserInst)) { in OptimizeWeakCalls()
3092 CallInst *UserInst = cast<CallInst>(*UI++); in OptimizeWeakCalls() local
3093 if (!UserInst->use_empty()) in OptimizeWeakCalls()
3094 UserInst->replaceAllUsesWith(UserInst->getOperand(1)); in OptimizeWeakCalls()
3095 UserInst->eraseFromParent(); in OptimizeWeakCalls()
3669 if (Instruction *UserInst = dyn_cast<Instruction>(U.getUser())) in runOnFunction() local
3670 if (Inst != UserInst && DT->dominates(Inst, UserInst)) { in runOnFunction()
3674 if (PHINode *PHI = dyn_cast<PHINode>(UserInst)) { in runOnFunction()
3695 Replacement = new BitCastInst(Replacement, UseTy, "", UserInst); in runOnFunction()
/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.cpp1924 const Instruction *UserInst = cast<Instruction>(U); in OptimizeWeakCalls() local
1925 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()
1936 CallInst *UserInst = cast<CallInst>(*UI++); in OptimizeWeakCalls() local
1937 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()
1941 UserInst->replaceAllUsesWith(UserInst->getArgOperand(1)); in OptimizeWeakCalls()
1949 UserInst->eraseFromParent(); in OptimizeWeakCalls()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp843 Instruction *UserInst = cast<Instruction>(*UI++); in RewriteSingleStoreAlloca() local
844 if (!isa<LoadInst>(UserInst)) { in RewriteSingleStoreAlloca()
845 assert(UserInst == OnlyStore && "Should only have load/stores"); in RewriteSingleStoreAlloca()
848 LoadInst *LI = cast<LoadInst>(UserInst); in RewriteSingleStoreAlloca()
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp248 static bool InTreeUserNeedToExtract(Value *Scalar, Instruction *UserInst, in InTreeUserNeedToExtract() argument
251 unsigned Opcode = UserInst->getOpcode(); in InTreeUserNeedToExtract()
254 LoadInst *LI = cast<LoadInst>(UserInst); in InTreeUserNeedToExtract()
258 StoreInst *SI = cast<StoreInst>(UserInst); in InTreeUserNeedToExtract()
262 CallInst *CI = cast<CallInst>(UserInst); in InTreeUserNeedToExtract()
934 Instruction *UserInst = dyn_cast<Instruction>(U); in buildTree() local
935 if (!UserInst) in buildTree()
947 !InTreeUserNeedToExtract(Scalar, UserInst, TLI)) { in buildTree()
956 if (std::find(UserIgnoreList.begin(), UserIgnoreList.end(), UserInst) != in buildTree()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstructionCombining.cpp1968 Instruction *UserInst = cast<Instruction>(I->use_back()); in DoOneIteration() local
1972 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in DoOneIteration()
1975 UserParent = UserInst->getParent(); in DoOneIteration()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp2814 Instruction *UserInst = cast<Instruction>(*I->user_begin()); in run() local
2818 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in run()
2821 UserParent = UserInst->getParent(); in run()