| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Dominators.cpp | 123 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local 124 if (auto *PN = dyn_cast<PHINode>(UserInst)) in dominates() 129 return properlyDominates(BB, UserInst->getParent()); in dominates() 258 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local 260 PHINode *PN = dyn_cast<PHINode>(UserInst); in dominates() 271 UseBB = UserInst->getParent(); in dominates() 283 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local 290 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in dominates() 293 UseBB = UserInst->getParent(); in dominates() 329 if (isa<PHINode>(UserInst)) in dominates() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | UnifyLoopExits.cpp | 94 auto UserInst = cast<Instruction>(U.getUser()); in INITIALIZE_PASS_DEPENDENCY() local 95 auto UserBlock = UserInst->getParent(); in INITIALIZE_PASS_DEPENDENCY() 102 << ": " << UserInst->getName() << "(" in INITIALIZE_PASS_DEPENDENCY() 105 ExternalUsers[&I].push_back(UserInst); in INITIALIZE_PASS_DEPENDENCY()
|
| H A D | LoopRotationUtils.cpp | 133 Instruction *UserInst = cast<Instruction>(U.getUser()); in RewriteUsesOfClonedInstructions() local 134 if (!isa<PHINode>(UserInst)) { in RewriteUsesOfClonedInstructions() 135 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions() 736 auto *UserInst = cast<Instruction>(UseI); in shouldSpeculateInstrs() local 737 if (!L->contains(UserInst)) in shouldSpeculateInstrs()
|
| H A D | CodeMoverUtils.cpp | 337 if (auto *UserInst = dyn_cast<Instruction>(U.getUser())) in isSafeToMoveBefore() local 338 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore()
|
| H A D | PromoteMemoryToRegister.cpp | 366 Instruction *UserInst = cast<Instruction>(U); in rewriteSingleStoreAlloca() local 367 if (UserInst == OnlyStore) in rewriteSingleStoreAlloca() 369 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | DivergenceAnalysis.cpp | 144 const auto *UserInst = dyn_cast<const Instruction>(User); in pushUsers() local 145 if (!UserInst) in pushUsers() 149 if (!inRegion(*UserInst)) in pushUsers() 153 if (markDivergent(*UserInst)) in pushUsers() 154 Worklist.push_back(UserInst); in pushUsers()
|
| H A D | LegacyDivergenceAnalysis.cpp | 221 Instruction *UserInst = cast<Instruction>(Use.getUser()); in findUsersOutsideInfluenceRegion() local 222 if (!InfluenceRegion.count(UserInst->getParent())) { in findUsersOutsideInfluenceRegion() 224 if (DV.insert(UserInst).second) in findUsersOutsideInfluenceRegion() 225 Worklist.push_back(UserInst); in findUsersOutsideInfluenceRegion()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopStrengthReduce.cpp | 1110 Instruction *UserInst = nullptr; member 1513 return !L->contains(UserInst); in isUseFullyOutsideLoop() 1524 OS << UserInst->getOpcodeName(); in print() 1889 Instruction *UserInst; member 2994 if (isa<PHINode>(UserInst)) in ChainInstruction() 3378 LF.UserInst = UserInst; in CollectFixupsAndInitialFormulae() 3482 if (!UserInst) in CollectLoopInvariantFixupsAndFormulae() 3485 if (UserInst->isEHPad()) in CollectLoopInvariantFixupsAndFormulae() 3493 UserInst->getParent() : in CollectLoopInvariantFixupsAndFormulae() 3509 if (isa<PHINode>(UserInst)) { in CollectLoopInvariantFixupsAndFormulae() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/ |
| H A D | ObjCARCOpts.cpp | 2239 const Instruction *UserInst = cast<Instruction>(U); in OptimizeWeakCalls() local 2240 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls() 2251 CallInst *UserInst = cast<CallInst>(U); in OptimizeWeakCalls() local 2252 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls() 2256 UserInst->replaceAllUsesWith(UserInst->getArgOperand(1)); in OptimizeWeakCalls() 2264 UserInst->eraseFromParent(); in OptimizeWeakCalls()
|
| /llvm-project-15.0.7/polly/lib/Transform/ |
| H A D | DeLICM.cpp | 576 auto UserInst = cast<Instruction>(User); in isMappable() local 578 if (!S->contains(UserInst)) { in isMappable()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 4207 Instruction *UserInst = cast<Instruction>(U); in run() local 4209 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) { in run() 4222 if (UserParent && UserParent != UserInst->getParent()) in run() 4224 UserParent = UserInst->getParent(); in run()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 628 static bool InTreeUserNeedToExtract(Value *Scalar, Instruction *UserInst, in InTreeUserNeedToExtract() argument 630 unsigned Opcode = UserInst->getOpcode(); in InTreeUserNeedToExtract() 633 LoadInst *LI = cast<LoadInst>(UserInst); in InTreeUserNeedToExtract() 637 StoreInst *SI = cast<StoreInst>(UserInst); in InTreeUserNeedToExtract() 641 CallInst *CI = cast<CallInst>(UserInst); in InTreeUserNeedToExtract() 4249 Instruction *UserInst = dyn_cast<Instruction>(U); in buildExternalUses() local 4250 if (!UserInst) in buildExternalUses() 4253 if (isDeleted(UserInst)) in buildExternalUses() 4264 !InTreeUserNeedToExtract(Scalar, UserInst, TLI)) { in buildExternalUses() 4273 if (UserIgnoreList && UserIgnoreList->contains(UserInst)) in buildExternalUses()
|