Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/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()
251 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local
253 PHINode *PN = dyn_cast<PHINode>(UserInst); in dominates()
264 UseBB = UserInst->getParent(); in dominates()
276 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local
283 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in dominates()
286 UseBB = UserInst->getParent(); in dominates()
315 if (isa<PHINode>(UserInst)) in dominates()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DUnifyLoopExits.cpp97 auto UserInst = cast<Instruction>(U.getUser()); in INITIALIZE_PASS_DEPENDENCY() local
98 auto UserBlock = UserInst->getParent(); in INITIALIZE_PASS_DEPENDENCY()
105 << ": " << UserInst->getName() << "(" in INITIALIZE_PASS_DEPENDENCY()
108 ExternalUsers[&I].push_back(UserInst); in INITIALIZE_PASS_DEPENDENCY()
H A DLoopRotationUtils.cpp138 Instruction *UserInst = cast<Instruction>(U.getUser()); in RewriteUsesOfClonedInstructions() local
139 if (!isa<PHINode>(UserInst)) { in RewriteUsesOfClonedInstructions()
140 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions()
957 auto *UserInst = cast<Instruction>(UseI); in shouldSpeculateInstrs() local
958 if (!L->contains(UserInst)) in shouldSpeculateInstrs()
H A DModuleUtils.cpp416 Instruction *UserInst = dyn_cast<Instruction>(User); in lowerGlobalIFuncUsersAsGlobalCtor() local
417 if (!UserInst) { in lowerGlobalIFuncUsersAsGlobalCtor()
424 IRBuilder<> UseBuilder(UserInst); in lowerGlobalIFuncUsersAsGlobalCtor()
429 UserInst->replaceUsesOfWith(GI, ResolvedCast); in lowerGlobalIFuncUsersAsGlobalCtor()
H A DCodeMoverUtils.cpp339 if (auto *UserInst = dyn_cast<Instruction>(U.getUser())) in isSafeToMoveBefore() local
340 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore()
H A DPromoteMemoryToRegister.cpp522 Instruction *UserInst = cast<Instruction>(U); in rewriteSingleStoreAlloca() local
523 if (UserInst == OnlyStore) in rewriteSingleStoreAlloca()
525 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp1123 Instruction *UserInst = nullptr; member
1526 return !L->contains(UserInst); in isUseFullyOutsideLoop()
1537 OS << UserInst->getOpcodeName(); in print()
1902 Instruction *UserInst; member
2992 if (isa<PHINode>(UserInst)) in ChainInstruction()
3387 LF.UserInst = UserInst; in CollectFixupsAndInitialFormulae()
3504 if (!UserInst) in CollectLoopInvariantFixupsAndFormulae()
3507 if (UserInst->isEHPad()) in CollectLoopInvariantFixupsAndFormulae()
3515 UserInst->getParent() : in CollectLoopInvariantFixupsAndFormulae()
3578 LF.UserInst = const_cast<Instruction *>(UserInst); in CollectLoopInvariantFixupsAndFormulae()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCOpts.cpp2202 const Instruction *UserInst = cast<Instruction>(U); in OptimizeWeakCalls() local
2203 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()
2214 CallInst *UserInst = cast<CallInst>(U); in OptimizeWeakCalls() local
2215 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()
2219 UserInst->replaceAllUsesWith(UserInst->getArgOperand(1)); in OptimizeWeakCalls()
2227 UserInst->eraseFromParent(); in OptimizeWeakCalls()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp4421 Instruction *UserInst = cast<Instruction>(U); in run() local
4423 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) { in run()
4436 if (UserParent && UserParent != UserInst->getParent()) in run()
4438 UserParent = UserInst->getParent(); in run()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp776 static bool doesInTreeUserNeedToExtract(Value *Scalar, Instruction *UserInst, in doesInTreeUserNeedToExtract() argument
778 unsigned Opcode = UserInst->getOpcode(); in doesInTreeUserNeedToExtract()
781 LoadInst *LI = cast<LoadInst>(UserInst); in doesInTreeUserNeedToExtract()
785 StoreInst *SI = cast<StoreInst>(UserInst); in doesInTreeUserNeedToExtract()
789 CallInst *CI = cast<CallInst>(UserInst); in doesInTreeUserNeedToExtract()
4927 Instruction *UserInst = dyn_cast<Instruction>(U); in buildExternalUses() local
4928 if (!UserInst || isDeleted(UserInst)) in buildExternalUses()
4932 if (UserIgnoreList && UserIgnoreList->contains(UserInst)) in buildExternalUses()
4952 LLVM_DEBUG(dbgs() << "SLP: Need to extract:" << *UserInst in buildExternalUses()