| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Dominators.cpp | 136 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local 137 if (auto *PN = dyn_cast<PHINode>(UserInst)) in dominates() 142 return properlyDominates(BB, UserInst->getParent()); in dominates() 264 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local 266 PHINode *PN = dyn_cast<PHINode>(UserInst); in dominates() 277 UseBB = UserInst->getParent(); in dominates() 289 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local 296 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in dominates() 299 UseBB = UserInst->getParent(); in dominates() 328 if (isa<PHINode>(UserInst)) in dominates() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | UnifyLoopExits.cpp | 98 auto UserInst = cast<Instruction>(U.getUser()); in INITIALIZE_PASS_DEPENDENCY() local 99 auto UserBlock = UserInst->getParent(); in INITIALIZE_PASS_DEPENDENCY() 106 << ": " << UserInst->getName() << "(" in INITIALIZE_PASS_DEPENDENCY() 109 ExternalUsers[&I].push_back(UserInst); in INITIALIZE_PASS_DEPENDENCY()
|
| H A D | CodeMoverUtils.cpp | 339 if (auto *UserInst = dyn_cast<Instruction>(U.getUser())) { in isSafeToMoveBefore() local 343 UserInst == I.getParent()->getTerminator()) in isSafeToMoveBefore() 345 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) { in isSafeToMoveBefore() 349 if (CheckForEntireBlock && I.getParent() == UserInst->getParent() && in isSafeToMoveBefore() 350 DT.dominates(&I, UserInst)) in isSafeToMoveBefore()
|
| H A D | LoopRotationUtils.cpp | 138 Instruction *UserInst = cast<Instruction>(U.getUser()); in RewriteUsesOfClonedInstructions() local 139 if (!isa<PHINode>(UserInst)) { in RewriteUsesOfClonedInstructions() 140 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions() 962 auto *UserInst = cast<Instruction>(UseI); in shouldSpeculateInstrs() local 963 if (!L->contains(UserInst)) in shouldSpeculateInstrs()
|
| H A D | ModuleUtils.cpp | 462 Instruction *UserInst = dyn_cast<Instruction>(User); in lowerGlobalIFuncUsersAsGlobalCtor() local 463 if (!UserInst) { in lowerGlobalIFuncUsersAsGlobalCtor() 470 IRBuilder<> UseBuilder(UserInst); in lowerGlobalIFuncUsersAsGlobalCtor() 475 UserInst->replaceUsesOfWith(GI, ResolvedCast); in lowerGlobalIFuncUsersAsGlobalCtor()
|
| H A D | PromoteMemoryToRegister.cpp | 591 Instruction *UserInst = cast<Instruction>(U); in rewriteSingleStoreAlloca() local 592 if (UserInst == OnlyStore) in rewriteSingleStoreAlloca() 594 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopStrengthReduce.cpp | 1264 Instruction *UserInst = nullptr; member 1542 Offset, F.HasBaseReg, F.Scale, Fixup.UserInst)) in RateFormula() 1641 if (const PHINode *PN = dyn_cast<PHINode>(UserInst)) { in isUseFullyOutsideLoop() 1649 return !L->contains(UserInst); in isUseFullyOutsideLoop() 1656 if (StoreInst *Store = dyn_cast<StoreInst>(UserInst)) { in print() 1659 } else if (UserInst->getType()->isVoidTy()) in print() 1660 OS << UserInst->getOpcodeName(); in print() 1662 UserInst->printAsOperand(OS, /*PrintType=*/false); in print() 1940 F.Scale, Fixup.UserInst)) in isAMCompletelyFolded() 2070 Instruction *UserInst; member [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | IndirectCallPromotion.cpp | 205 static BasicBlock *getUserBasicBlock(Use &U, Instruction *UserInst) { in getUserBasicBlock() argument 206 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in getUserBasicBlock() 209 return UserInst->getParent(); in getUserBasicBlock() 229 Instruction *UserInst = cast<Instruction>(User); in isDestBBSuitableForSink() local 231 if (UserInst->isDebugOrPseudoInst()) in isDestBBSuitableForSink() 233 UserBB = getUserBasicBlock(Use, UserInst); in isDestBBSuitableForSink()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| H A D | ObjCARCOpts.cpp | 2201 const Instruction *UserInst = cast<Instruction>(U); in OptimizeWeakCalls() local 2202 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls() 2213 CallInst *UserInst = cast<CallInst>(U); in OptimizeWeakCalls() local 2214 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls() 2218 UserInst->replaceAllUsesWith(UserInst->getArgOperand(1)); in OptimizeWeakCalls() 2226 UserInst->eraseFromParent(); in OptimizeWeakCalls()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 367 auto *UserInst = cast<Instruction>(U); in replacePointer() local 368 if (UsersToReplace.contains(UserInst) && !Visited.contains(UserInst)) in replacePointer() 369 Worklist.push_back(UserInst); in replacePointer()
|
| H A D | InstructionCombining.cpp | 5513 Instruction *UserInst = cast<Instruction>(User); in run() local 5515 BasicBlock *UserBB = UserInst->getParent(); in run() 5516 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in run()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 5796 Instruction *UserInst = dyn_cast<Instruction>(U); in findInsertPos() local 5797 if (UserInst && UserInst->getParent() == MemoryInst->getParent()) { in findInsertPos() 5798 if (isa<PHINode>(UserInst) || UserInst->isDebugOrPseudoInst()) in findInsertPos() 5800 if (UserInst->comesBefore(Earliest)) in findInsertPos() 5801 Earliest = UserInst; in findInsertPos()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 1520 static bool doesInTreeUserNeedToExtract(Value *Scalar, Instruction *UserInst, in doesInTreeUserNeedToExtract() argument 1523 if (!UserInst) in doesInTreeUserNeedToExtract() 1525 unsigned Opcode = UserInst->getOpcode(); in doesInTreeUserNeedToExtract() 1528 LoadInst *LI = cast<LoadInst>(UserInst); in doesInTreeUserNeedToExtract() 1532 StoreInst *SI = cast<StoreInst>(UserInst); in doesInTreeUserNeedToExtract() 1536 CallInst *CI = cast<CallInst>(UserInst); in doesInTreeUserNeedToExtract() 7906 Instruction *UserInst = dyn_cast<Instruction>(U); in buildExternalUses() local 7907 if (!UserInst || isDeleted(UserInst)) in buildExternalUses() 7911 if (UserIgnoreList && UserIgnoreList->contains(UserInst)) in buildExternalUses() 7945 LLVM_DEBUG(dbgs() << "SLP: Need to extract:" << *UserInst in buildExternalUses()
|