Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/IR/
H A DDominators.cpp123 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 DUnifyLoopExits.cpp94 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 DLoopRotationUtils.cpp133 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 DCodeMoverUtils.cpp337 if (auto *UserInst = dyn_cast<Instruction>(U.getUser())) in isSafeToMoveBefore() local
338 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore()
H A DPromoteMemoryToRegister.cpp366 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 DDivergenceAnalysis.cpp144 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 DLegacyDivergenceAnalysis.cpp221 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 DLoopStrengthReduce.cpp1110 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 DObjCARCOpts.cpp2239 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 DDeLICM.cpp576 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 DInstructionCombining.cpp4207 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 DSLPVectorizer.cpp628 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()