Home
last modified time | relevance | path

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

12

/external/llvm/lib/IR/
DDominators.cpp197 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/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DDominators.cpp232 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local
234 PHINode *PN = dyn_cast<PHINode>(UserInst); in dominates()
245 UseBB = UserInst->getParent(); in dominates()
250 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local
257 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in dominates()
260 UseBB = UserInst->getParent(); in dominates()
289 if (isa<PHINode>(UserInst)) in dominates()
294 for (; &*I != Def && &*I != UserInst; ++I) in dominates()
297 return &*I != UserInst; in dominates()
/external/llvm/lib/Analysis/
DDivergenceAnalysis.cpp202 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-project/llvm/lib/IR/
DDominators.cpp243 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local
245 PHINode *PN = dyn_cast<PHINode>(UserInst); in dominates()
256 UseBB = UserInst->getParent(); in dominates()
268 Instruction *UserInst = cast<Instruction>(U.getUser()); in dominates() local
275 if (PHINode *PN = dyn_cast<PHINode>(UserInst)) in dominates()
278 UseBB = UserInst->getParent(); in dominates()
314 if (isa<PHINode>(UserInst)) in dominates()
317 return Def->comesBefore(UserInst); in dominates()
/external/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp1075 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 …]
DLoopRotation.cpp119 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/llvm-project/llvm/lib/Transforms/Utils/
DUnifyLoopExits.cpp92 auto UserInst = cast<Instruction>(U.getUser()); in INITIALIZE_PASS_DEPENDENCY() local
93 auto UserBlock = UserInst->getParent(); in INITIALIZE_PASS_DEPENDENCY()
100 << ": " << UserInst->getName() << "(" in INITIALIZE_PASS_DEPENDENCY()
103 ExternalUsers[&I].push_back(UserInst); in INITIALIZE_PASS_DEPENDENCY()
DLoopRotationUtils.cpp137 Instruction *UserInst = cast<Instruction>(U.getUser()); in RewriteUsesOfClonedInstructions() local
138 if (!isa<PHINode>(UserInst)) { in RewriteUsesOfClonedInstructions()
139 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions()
654 auto *UserInst = cast<Instruction>(UseI); in shouldSpeculateInstrs() local
655 if (!L->contains(UserInst)) in shouldSpeculateInstrs()
DCodeMoverUtils.cpp337 if (auto *UserInst = dyn_cast<Instruction>(U.getUser())) in isSafeToMoveBefore() local
338 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore()
DPromoteMemoryToRegister.cpp370 Instruction *UserInst = cast<Instruction>(*UI++); in rewriteSingleStoreAlloca() local
371 if (UserInst == OnlyStore) in rewriteSingleStoreAlloca()
373 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca()
/external/llvm-project/llvm/lib/Analysis/
DDivergenceAnalysis.cpp145 const auto *UserInst = dyn_cast<const Instruction>(User); in pushUsers() local
146 if (!UserInst) in pushUsers()
150 if (!inRegion(*UserInst)) in pushUsers()
154 if (markDivergent(*UserInst)) in pushUsers()
155 Worklist.push_back(UserInst); in pushUsers()
DLegacyDivergenceAnalysis.cpp220 Instruction *UserInst = cast<Instruction>(Use.getUser()); in findUsersOutsideInfluenceRegion() local
221 if (!InfluenceRegion.count(UserInst->getParent())) { in findUsersOutsideInfluenceRegion()
223 if (DV.insert(UserInst).second) in findUsersOutsideInfluenceRegion()
224 Worklist.push_back(UserInst); in findUsersOutsideInfluenceRegion()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp1071 Instruction *UserInst = nullptr; member
1371 Offset, F.HasBaseReg, F.Scale, Fixup.UserInst)) in RateFormula()
1466 if (const PHINode *PN = dyn_cast<PHINode>(UserInst)) { in isUseFullyOutsideLoop()
1474 return !L->contains(UserInst); in isUseFullyOutsideLoop()
1481 if (StoreInst *Store = dyn_cast<StoreInst>(UserInst)) { in print()
1484 } else if (UserInst->getType()->isVoidTy()) in print()
1485 OS << UserInst->getOpcodeName(); in print()
1487 UserInst->printAsOperand(OS, /*PrintType=*/false); in print()
1742 F.Scale, Fixup.UserInst)) in isAMCompletelyFolded()
1850 Instruction *UserInst; member
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DDivergenceAnalysis.cpp263 const auto *UserInst = dyn_cast<const Instruction>(User); in pushUsers() local
264 if (!UserInst) in pushUsers()
267 if (isDivergent(*UserInst)) in pushUsers()
271 if (!inRegion(*UserInst)) in pushUsers()
273 Worklist.push_back(UserInst); in pushUsers()
DLegacyDivergenceAnalysis.cpp220 Instruction *UserInst = cast<Instruction>(Use.getUser()); in findUsersOutsideInfluenceRegion() local
221 if (!InfluenceRegion.count(UserInst->getParent())) { in findUsersOutsideInfluenceRegion()
223 if (DV.insert(UserInst).second) in findUsersOutsideInfluenceRegion()
224 Worklist.push_back(UserInst); in findUsersOutsideInfluenceRegion()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp1078 Instruction *UserInst = nullptr; member
1378 Offset, F.HasBaseReg, F.Scale, Fixup.UserInst)) in RateFormula()
1473 if (const PHINode *PN = dyn_cast<PHINode>(UserInst)) { in isUseFullyOutsideLoop()
1481 return !L->contains(UserInst); in isUseFullyOutsideLoop()
1488 if (StoreInst *Store = dyn_cast<StoreInst>(UserInst)) { in print()
1491 } else if (UserInst->getType()->isVoidTy()) in print()
1492 OS << UserInst->getOpcodeName(); in print()
1494 UserInst->printAsOperand(OS, /*PrintType=*/false); in print()
1749 F.Scale, Fixup.UserInst)) in isAMCompletelyFolded()
1857 Instruction *UserInst; member
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLoopRotationUtils.cpp130 Instruction *UserInst = cast<Instruction>(U.getUser()); in RewriteUsesOfClonedInstructions() local
131 if (!isa<PHINode>(UserInst)) { in RewriteUsesOfClonedInstructions()
132 BasicBlock *UserBB = UserInst->getParent(); in RewriteUsesOfClonedInstructions()
575 auto *UserInst = cast<Instruction>(UseI); in shouldSpeculateInstrs() local
576 if (!L->contains(UserInst)) in shouldSpeculateInstrs()
DCodeMoverUtils.cpp121 if (auto *UserInst = dyn_cast<Instruction>(U.getUser())) in isSafeToMoveBefore() local
122 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore()
DPromoteMemoryToRegister.cpp359 Instruction *UserInst = cast<Instruction>(*UI++); in rewriteSingleStoreAlloca() local
360 if (UserInst == OnlyStore) in rewriteSingleStoreAlloca()
362 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca()
/external/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp349 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-project/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp414 Instruction *UserInst = dyn_cast<Instruction>(User); in canVectorizeInst() local
415 if (!UserInst) in canVectorizeInst()
419 (UserInst->getOpcode() == Instruction::GetElementPtr || in canVectorizeInst()
420 UserInst->getOpcode() == Instruction::BitCast) && in canVectorizeInst()
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCOpts.cpp1924 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-10.0/llvm/lib/Transforms/ObjCARC/
DObjCARCOpts.cpp2127 const Instruction *UserInst = cast<Instruction>(U); in OptimizeWeakCalls() local
2128 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()
2139 CallInst *UserInst = cast<CallInst>(*UI++); in OptimizeWeakCalls() local
2140 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()
2144 UserInst->replaceAllUsesWith(UserInst->getArgOperand(1)); in OptimizeWeakCalls()
2152 UserInst->eraseFromParent(); in OptimizeWeakCalls()
/external/llvm-project/llvm/lib/Transforms/ObjCARC/
DObjCARCOpts.cpp2170 const Instruction *UserInst = cast<Instruction>(U); in OptimizeWeakCalls() local
2171 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()
2182 CallInst *UserInst = cast<CallInst>(*UI++); in OptimizeWeakCalls() local
2183 switch (GetBasicARCInstKind(UserInst)) { in OptimizeWeakCalls()
2187 UserInst->replaceAllUsesWith(UserInst->getArgOperand(1)); in OptimizeWeakCalls()
2195 UserInst->eraseFromParent(); in OptimizeWeakCalls()
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp248 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()

12