Home
last modified time | relevance | path

Searched refs:UserInst (Results 1 – 18 of 18) 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/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DDominators.cpp232 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local
234 PHINode *PN = dyn_cast<PHINode>(UserInst); in dominates()
245 UseBB = UserInst->getParent(); in dominates()
250 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local
257 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in dominates()
260 UseBB = UserInst->getParent(); in dominates()
289 if (isa<PHINode>(UserInst)) in dominates()
294 for (; &*I != Def && &*I != UserInst; ++I) in dominates()
297 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-10.0/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp1078 Instruction *UserInst = nullptr; member
1378 Offset, F.HasBaseReg, F.Scale, Fixup.UserInst)) in RateFormula()
1473 if (const PHINode *PN = dyn_cast<PHINode>(UserInst)) { in isUseFullyOutsideLoop()
1481 return !L->contains(UserInst); in isUseFullyOutsideLoop()
1488 if (StoreInst *Store = dyn_cast<StoreInst>(UserInst)) { in print()
1491 } else if (UserInst->getType()->isVoidTy()) in print()
1492 OS << UserInst->getOpcodeName(); in print()
1494 UserInst->printAsOperand(OS, /*PrintType=*/false); in print()
1749 F.Scale, Fixup.UserInst)) in isAMCompletelyFolded()
1857 Instruction *UserInst; member
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DDivergenceAnalysis.cpp263 const auto *UserInst = dyn_cast<const Instruction>(User); in pushUsers() local
264 if (!UserInst) in pushUsers()
267 if (isDivergent(*UserInst)) in pushUsers()
271 if (!inRegion(*UserInst)) in pushUsers()
273 Worklist.push_back(UserInst); in pushUsers()
DLegacyDivergenceAnalysis.cpp220 Instruction *UserInst = cast<Instruction>(Use.getUser()); in findUsersOutsideInfluenceRegion() local
221 if (!InfluenceRegion.count(UserInst->getParent())) { in findUsersOutsideInfluenceRegion()
223 if (DV.insert(UserInst).second) in findUsersOutsideInfluenceRegion()
224 Worklist.push_back(UserInst); in findUsersOutsideInfluenceRegion()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLoopRotationUtils.cpp130 Instruction *UserInst = cast<Instruction>(U.getUser()); in RewriteUsesOfClonedInstructions() local
131 if (!isa<PHINode>(UserInst)) { in RewriteUsesOfClonedInstructions()
132 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions()
575 auto *UserInst = cast<Instruction>(UseI); in shouldSpeculateInstrs() local
576 if (!L->contains(UserInst)) in shouldSpeculateInstrs()
DCodeMoverUtils.cpp121 if (auto *UserInst = dyn_cast<Instruction>(U.getUser())) in isSafeToMoveBefore() local
122 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore()
DPromoteMemoryToRegister.cpp359 Instruction *UserInst = cast<Instruction>(*UI++); in rewriteSingleStoreAlloca() local
360 if (UserInst == OnlyStore) in rewriteSingleStoreAlloca()
362 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca()
/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-10.0/llvm/lib/Transforms/ObjCARC/
DObjCARCOpts.cpp2127 const Instruction *UserInst = cast<Instruction>(U); in OptimizeWeakCalls() local
2128 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()
2139 CallInst *UserInst = cast<CallInst>(*UI++); in OptimizeWeakCalls() local
2140 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()
2144 UserInst->replaceAllUsesWith(UserInst->getArgOperand(1)); in OptimizeWeakCalls()
2152 UserInst->eraseFromParent(); in OptimizeWeakCalls()
/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-10.0/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp475 static bool InTreeUserNeedToExtract(Value *Scalar, Instruction *UserInst, in InTreeUserNeedToExtract() argument
477 unsigned Opcode = UserInst->getOpcode(); in InTreeUserNeedToExtract()
480 LoadInst *LI = cast<LoadInst>(UserInst); in InTreeUserNeedToExtract()
484 StoreInst *SI = cast<StoreInst>(UserInst); in InTreeUserNeedToExtract()
488 CallInst *CI = cast<CallInst>(UserInst); in InTreeUserNeedToExtract()
2393 Instruction *UserInst = dyn_cast<Instruction>(U); in buildTree() local
2394 if (!UserInst) in buildTree()
2404 !InTreeUserNeedToExtract(Scalar, UserInst, TLI)) { in buildTree()
2413 if (is_contained(UserIgnoreList, UserInst)) in buildTree()
/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()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp3322 Instruction *UserInst = cast<Instruction>(*I->user_begin()); in run() local
3326 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in run()
3329 UserParent = UserInst->getParent(); in run()