| /src/contrib/llvm-project/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() 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 …]
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | UnifyLoopExits.cpp | 97 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 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 | ModuleUtils.cpp | 419 Instruction *UserInst = dyn_cast<Instruction>(User); in lowerGlobalIFuncUsersAsGlobalCtor() local 420 if (!UserInst) { in lowerGlobalIFuncUsersAsGlobalCtor() 427 IRBuilder<> UseBuilder(UserInst); in lowerGlobalIFuncUsersAsGlobalCtor() 432 UserInst->replaceUsesOfWith(GI, ResolvedCast); in lowerGlobalIFuncUsersAsGlobalCtor()
|
| 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() 986 auto *UserInst = cast<Instruction>(UseI); in shouldSpeculateInstrs() local 987 if (!L->contains(UserInst)) in shouldSpeculateInstrs()
|
| H A D | PromoteMemoryToRegister.cpp | 542 Instruction *UserInst = cast<Instruction>(U); in rewriteSingleStoreAlloca() local 543 if (UserInst == OnlyStore) in rewriteSingleStoreAlloca() 545 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca()
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopStrengthReduce.cpp | 1259 Instruction *UserInst = nullptr; member 1560 Offset, F.HasBaseReg, F.Scale, Fixup.UserInst)) in RateFormula() 1659 if (const PHINode *PN = dyn_cast<PHINode>(UserInst)) { in isUseFullyOutsideLoop() 1667 return !L->contains(UserInst); in isUseFullyOutsideLoop() 1674 if (StoreInst *Store = dyn_cast<StoreInst>(UserInst)) { in print() 1677 } else if (UserInst->getType()->isVoidTy()) in print() 1678 OS << UserInst->getOpcodeName(); in print() 1680 UserInst->printAsOperand(OS, /*PrintType=*/false); in print() 1958 F.Scale, Fixup.UserInst)) in isAMCompletelyFolded() 2088 Instruction *UserInst; member [all …]
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | IndirectCallPromotion.cpp | 197 static BasicBlock *getUserBasicBlock(Use &U, Instruction *UserInst) { in getUserBasicBlock() argument 198 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in getUserBasicBlock() 201 return UserInst->getParent(); in getUserBasicBlock() 221 Instruction *UserInst = cast<Instruction>(User); in isDestBBSuitableForSink() local 223 if (UserInst->isDebugOrPseudoInst()) in isDestBBSuitableForSink() 225 UserBB = getUserBasicBlock(Use, UserInst); in isDestBBSuitableForSink()
|
| /src/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
| H A D | ObjCARCOpts.cpp | 2210 const Instruction *UserInst = cast<Instruction>(U); in OptimizeWeakCalls() local 2211 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls() 2222 CallInst *UserInst = cast<CallInst>(U); in OptimizeWeakCalls() local 2223 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls() 2227 UserInst->replaceAllUsesWith(UserInst->getArgOperand(1)); in OptimizeWeakCalls() 2235 UserInst->eraseFromParent(); in OptimizeWeakCalls()
|
| /src/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 5053 Instruction *UserInst = cast<Instruction>(User); in run() local 5055 BasicBlock *UserBB = UserInst->getParent(); in run() 5056 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in run()
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | SLPVectorizer.cpp | 922 static bool doesInTreeUserNeedToExtract(Value *Scalar, Instruction *UserInst, in doesInTreeUserNeedToExtract() argument 924 unsigned Opcode = UserInst->getOpcode(); in doesInTreeUserNeedToExtract() 927 LoadInst *LI = cast<LoadInst>(UserInst); in doesInTreeUserNeedToExtract() 931 StoreInst *SI = cast<StoreInst>(UserInst); in doesInTreeUserNeedToExtract() 935 CallInst *CI = cast<CallInst>(UserInst); in doesInTreeUserNeedToExtract() 5867 Instruction *UserInst = dyn_cast<Instruction>(U); in buildExternalUses() local 5868 if (!UserInst || isDeleted(UserInst)) in buildExternalUses() 5872 if (UserIgnoreList && UserIgnoreList->contains(UserInst)) in buildExternalUses() 5898 LLVM_DEBUG(dbgs() << "SLP: Need to extract:" << *UserInst in buildExternalUses()
|