/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/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Dominators.cpp | 232 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/ |
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-project/llvm/lib/IR/ |
D | Dominators.cpp | 243 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/ |
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/llvm-project/llvm/lib/Transforms/Utils/ |
D | UnifyLoopExits.cpp | 92 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()
|
D | LoopRotationUtils.cpp | 137 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()
|
D | CodeMoverUtils.cpp | 337 if (auto *UserInst = dyn_cast<Instruction>(U.getUser())) in isSafeToMoveBefore() local 338 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore()
|
D | PromoteMemoryToRegister.cpp | 370 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/ |
D | DivergenceAnalysis.cpp | 145 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()
|
D | LegacyDivergenceAnalysis.cpp | 220 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/ |
D | LoopStrengthReduce.cpp | 1071 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/ |
D | DivergenceAnalysis.cpp | 263 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()
|
D | LegacyDivergenceAnalysis.cpp | 220 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/ |
D | LoopStrengthReduce.cpp | 1078 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/ |
D | LoopRotationUtils.cpp | 130 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()
|
D | CodeMoverUtils.cpp | 121 if (auto *UserInst = dyn_cast<Instruction>(U.getUser())) in isSafeToMoveBefore() local 122 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore()
|
D | PromoteMemoryToRegister.cpp | 359 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/ |
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-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 414 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/ |
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-10.0/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCOpts.cpp | 2127 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/ |
D | ObjCARCOpts.cpp | 2170 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/ |
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()
|