/external/llvm/lib/IR/ |
D | Dominators.cpp | 197 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local 199 PHINode *PN = dyn_cast<PHINode>(UserInst); in dominates() 210 UseBB = UserInst->getParent(); in dominates() 215 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local 222 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in dominates() 225 UseBB = UserInst->getParent(); in dominates() 254 if (isa<PHINode>(UserInst)) in dominates() 259 for (; &*I != Def && &*I != UserInst; ++I) in dominates() 262 return &*I != UserInst; in dominates()
|
/external/llvm/lib/Analysis/ |
D | DivergenceAnalysis.cpp | 202 Instruction *UserInst = cast<Instruction>(U); in findUsersOutsideInfluenceRegion() local 203 if (!InfluenceRegion.count(UserInst->getParent())) { in findUsersOutsideInfluenceRegion() 204 if (DV.insert(UserInst).second) in findUsersOutsideInfluenceRegion() 205 Worklist.push_back(UserInst); in findUsersOutsideInfluenceRegion() 243 Instruction *UserInst = cast<Instruction>(U); in exploreDataDependency() local 244 if (DV.insert(UserInst).second) in exploreDataDependency() 245 Worklist.push_back(UserInst); in exploreDataDependency()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 1075 Instruction *UserInst; member 1106 : UserInst(nullptr), OperandValToReplace(nullptr), LUIdx(~size_t(0)), in LSRFixup() 1112 if (const PHINode *PN = dyn_cast<PHINode>(UserInst)) { in isUseFullyOutsideLoop() 1120 return !L->contains(UserInst); in isUseFullyOutsideLoop() 1126 if (StoreInst *Store = dyn_cast<StoreInst>(UserInst)) { in print() 1129 } else if (UserInst->getType()->isVoidTy()) in print() 1130 OS << UserInst->getOpcodeName(); in print() 1132 UserInst->printAsOperand(OS, /*PrintType=*/false); in print() 1571 Instruction *UserInst; member 1576 UserInst(U), IVOperand(O), IncExpr(E) {} in IVInc() [all …]
|
D | LoopRotation.cpp | 119 Instruction *UserInst = cast<Instruction>(U.getUser()); in RewriteUsesOfClonedInstructions() local 120 if (!isa<PHINode>(UserInst)) { in RewriteUsesOfClonedInstructions() 121 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions() 149 DbgInfoIntrinsic *UserInst = dyn_cast<DbgInfoIntrinsic>(U.getUser()); in RewriteUsesOfClonedInstructions() local 150 if (!UserInst) in RewriteUsesOfClonedInstructions() 155 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions() 524 auto *UserInst = cast<Instruction>(UseI); in shouldSpeculateInstrs() local 525 if (!L->contains(UserInst)) in shouldSpeculateInstrs()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LoopRotation.cpp | 126 Instruction *UserInst = cast<Instruction>(U.getUser()); in RewriteUsesOfClonedInstructions() local 127 if (!isa<PHINode>(UserInst)) { in RewriteUsesOfClonedInstructions() 128 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions()
|
D | LoopStrengthReduce.cpp | 901 Instruction *UserInst; member 933 : UserInst(0), OperandValToReplace(0), LUIdx(~size_t(0)), Offset(0) {} in LSRFixup() 939 if (const PHINode *PN = dyn_cast<PHINode>(UserInst)) { in isUseFullyOutsideLoop() 947 return !L->contains(UserInst); in isUseFullyOutsideLoop() 953 if (StoreInst *Store = dyn_cast<StoreInst>(UserInst)) { in print() 956 } else if (UserInst->getType()->isVoidTy()) in print() 957 OS << UserInst->getOpcodeName(); in print() 959 WriteAsOperand(OS, UserInst, /*PrintType=*/false); in print() 2098 LF.UserInst = UI->getUser(); in CollectFixupsAndInitialFormulae() 2104 if (isAddressUse(LF.UserInst, LF.OperandValToReplace)) { in CollectFixupsAndInitialFormulae() [all …]
|
D | ObjCARC.cpp | 3079 Instruction *UserInst = cast<Instruction>(*UI); in OptimizeWeakCalls() local 3080 switch (GetBasicInstructionClass(UserInst)) { in OptimizeWeakCalls() 3092 CallInst *UserInst = cast<CallInst>(*UI++); in OptimizeWeakCalls() local 3093 if (!UserInst->use_empty()) in OptimizeWeakCalls() 3094 UserInst->replaceAllUsesWith(UserInst->getOperand(1)); in OptimizeWeakCalls() 3095 UserInst->eraseFromParent(); in OptimizeWeakCalls() 3669 if (Instruction *UserInst = dyn_cast<Instruction>(U.getUser())) in runOnFunction() local 3670 if (Inst != UserInst && DT->dominates(Inst, UserInst)) { in runOnFunction() 3674 if (PHINode *PHI = dyn_cast<PHINode>(UserInst)) { in runOnFunction() 3695 Replacement = new BitCastInst(Replacement, UseTy, "", UserInst); in runOnFunction()
|
/external/llvm/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 349 Instruction *UserInst = cast<Instruction>(*UI++); in rewriteSingleStoreAlloca() local 350 if (!isa<LoadInst>(UserInst)) { in rewriteSingleStoreAlloca() 351 assert(UserInst == OnlyStore && "Should only have load/stores"); in rewriteSingleStoreAlloca() 354 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca()
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCOpts.cpp | 1924 const Instruction *UserInst = cast<Instruction>(U); in OptimizeWeakCalls() local 1925 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls() 1936 CallInst *UserInst = cast<CallInst>(*UI++); in OptimizeWeakCalls() local 1937 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls() 1941 UserInst->replaceAllUsesWith(UserInst->getArgOperand(1)); in OptimizeWeakCalls() 1949 UserInst->eraseFromParent(); in OptimizeWeakCalls()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 843 Instruction *UserInst = cast<Instruction>(*UI++); in RewriteSingleStoreAlloca() local 844 if (!isa<LoadInst>(UserInst)) { in RewriteSingleStoreAlloca() 845 assert(UserInst == OnlyStore && "Should only have load/stores"); in RewriteSingleStoreAlloca() 848 LoadInst *LI = cast<LoadInst>(UserInst); in RewriteSingleStoreAlloca()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | SLPVectorizer.cpp | 248 static bool InTreeUserNeedToExtract(Value *Scalar, Instruction *UserInst, in InTreeUserNeedToExtract() argument 251 unsigned Opcode = UserInst->getOpcode(); in InTreeUserNeedToExtract() 254 LoadInst *LI = cast<LoadInst>(UserInst); in InTreeUserNeedToExtract() 258 StoreInst *SI = cast<StoreInst>(UserInst); in InTreeUserNeedToExtract() 262 CallInst *CI = cast<CallInst>(UserInst); in InTreeUserNeedToExtract() 934 Instruction *UserInst = dyn_cast<Instruction>(U); in buildTree() local 935 if (!UserInst) in buildTree() 947 !InTreeUserNeedToExtract(Scalar, UserInst, TLI)) { in buildTree() 956 if (std::find(UserIgnoreList.begin(), UserIgnoreList.end(), UserInst) != in buildTree()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 1968 Instruction *UserInst = cast<Instruction>(I->use_back()); in DoOneIteration() local 1972 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in DoOneIteration() 1975 UserParent = UserInst->getParent(); in DoOneIteration()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 2814 Instruction *UserInst = cast<Instruction>(*I->user_begin()); in run() local 2818 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in run() 2821 UserParent = UserInst->getParent(); in run()
|