/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 145 (DT.dominates(cast<Instruction>(U), PN.getIncomingBlock(i)) || in FoldIntegerTypedPHI() 146 cast<Instruction>(U)->getParent() == PN.getIncomingBlock(i))) { in FoldIntegerTypedPHI() 195 PtrPHI->getIncomingValueForBlock(PN.getIncomingBlock(i))) { in FoldIntegerTypedPHI() 236 auto *IncomingBB = PN.getIncomingBlock(i); in FoldIntegerTypedPHI() 329 NewLHS->addIncoming(InLHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI() 337 NewRHS->addIncoming(InRHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI() 348 NewLHS->addIncoming(NewInLHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI() 352 NewRHS->addIncoming(NewInRHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI() 458 NewPN->addIncoming(FirstOp, PN.getIncomingBlock(0)); in FoldPHIArgGEPIntoPHI() 469 BasicBlock *InBB = PN.getIncomingBlock(i); in FoldPHIArgGEPIntoPHI() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 73 NewLHS->addIncoming(InLHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI() 81 NewRHS->addIncoming(InRHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI() 92 NewLHS->addIncoming(NewInLHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI() 96 NewRHS->addIncoming(NewInRHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI() 202 NewPN->addIncoming(FirstOp, PN.getIncomingBlock(0)); in FoldPHIArgGEPIntoPHI() 213 BasicBlock *InBB = PN.getIncomingBlock(i); in FoldPHIArgGEPIntoPHI() 295 if (FirstLI->getParent() != PN.getIncomingBlock(0) || in FoldPHIArgLoadIntoPHI() 315 LI->getParent() != PN.getIncomingBlock(i) || in FoldPHIArgLoadIntoPHI() 342 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI() 367 NewPN->addIncoming(NewInVal, PN.getIncomingBlock(i)); in FoldPHIArgLoadIntoPHI() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 85 NewLHS->addIncoming(InLHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI() 93 NewRHS->addIncoming(InRHS, PN.getIncomingBlock(0)); in FoldPHIArgBinOpIntoPHI() 104 NewLHS->addIncoming(NewInLHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI() 108 NewRHS->addIncoming(NewInRHS, PN.getIncomingBlock(i)); in FoldPHIArgBinOpIntoPHI() 211 NewPN->addIncoming(FirstOp, PN.getIncomingBlock(0)); in FoldPHIArgGEPIntoPHI() 222 BasicBlock *InBB = PN.getIncomingBlock(i); in FoldPHIArgGEPIntoPHI() 306 if (FirstLI->getParent() != PN.getIncomingBlock(0) || in FoldPHIArgLoadIntoPHI() 326 LI->getParent() != PN.getIncomingBlock(i) || in FoldPHIArgLoadIntoPHI() 353 NewPN->addIncoming(InVal, PN.getIncomingBlock(0)); in FoldPHIArgLoadIntoPHI() 360 NewPN->addIncoming(NewInVal, PN.getIncomingBlock(i)); in FoldPHIArgLoadIntoPHI() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | DemoteRegToStack.cpp | 67 Value *&V = Loads[PN->getIncomingBlock(i)]; in DemoteRegToStack() 71 PN->getIncomingBlock(i)->getTerminator()); in DemoteRegToStack() 131 assert(II->getParent() != P->getIncomingBlock(i) && in DemotePHIToStack() 135 P->getIncomingBlock(i)->getTerminator()); in DemotePHIToStack()
|
D | SSAUpdater.cpp | 81 if (ValueMapping[PHI->getIncomingBlock(i)] != in IsEquivalentPHI() 131 BasicBlock *PredBB = SomePhi->getIncomingBlock(i); in GetValueInMiddleOfBlock() 210 V = GetValueAtEndOfBlock(UserPN->getIncomingBlock(U)); in RewriteUse() 226 V = GetValueAtEndOfBlock(UserPN->getIncomingBlock(U)); in RewriteUseAfterInsertions() 251 BasicBlock *getIncomingBlock() { return PHI->getIncomingBlock(idx); } in getIncomingBlock() function in __anon53fdc8780111::PHIiter 284 Preds->push_back(SomePhi->getIncomingBlock(PI)); in FindPredecessorBlocks()
|
D | CodeExtractor.cpp | 118 if (BlocksToExtract.count(PN->getIncomingBlock(i))) in severSplitPHINodes() 155 if (BlocksToExtract.count(PN->getIncomingBlock(i))) { in severSplitPHINodes() 156 TerminatorInst *TI = PN->getIncomingBlock(i)->getTerminator(); in severSplitPHINodes() 173 if (BlocksToExtract.count(PN->getIncomingBlock(i))) { in severSplitPHINodes() 174 NewPN->addIncoming(PN->getIncomingValue(i), PN->getIncomingBlock(i)); in severSplitPHINodes() 365 return P->getIncomingBlock(UI); in FindPhiPredForUseInBlock() 720 if (!BlocksToExtract.count(PN->getIncomingBlock(i))) in ExtractCodeRegion() 734 if (BlocksToExtract.count(PN->getIncomingBlock(i))) { in ExtractCodeRegion() 735 if (ProcessedPreds.insert(PN->getIncomingBlock(i)).second) in ExtractCodeRegion()
|
D | LoopSimplify.cpp | 470 L->contains(PN->getIncomingBlock(i))) in FindPHIToPartitionLoops() 542 !L->contains(PN->getIncomingBlock(i))) { in SeparateNestedLoop() 544 if (isa<IndirectBrInst>(PN->getIncomingBlock(i)->getTerminator())) in SeparateNestedLoop() 547 OuterLoopPreds.push_back(PN->getIncomingBlock(i)); in SeparateNestedLoop() 681 BasicBlock *IBB = PN->getIncomingBlock(i); in InsertUniqueBackedgeBlock() 700 PN->setIncomingBlock(0, PN->getIncomingBlock(PreheaderIdx)); in InsertUniqueBackedgeBlock()
|
D | BreakCriticalEdges.cpp | 214 if (PN->getIncomingBlock(BBIdx) != TIBB) in SplitCriticalEdge() 259 if (PN->getIncomingBlock(i) != NewBB) in SplitCriticalEdge() 260 OtherPreds.push_back(PN->getIncomingBlock(i)); in SplitCriticalEdge()
|
/external/llvm/lib/Transforms/Utils/ |
D | DemoteRegToStack.cpp | 71 Value *&V = Loads[PN->getIncomingBlock(i)]; in DemoteRegToStack() 75 PN->getIncomingBlock(i)->getTerminator()); in DemoteRegToStack() 127 assert(II->getParent() != P->getIncomingBlock(i) && in DemotePHIToStack() 131 P->getIncomingBlock(i)->getTerminator()); in DemotePHIToStack()
|
D | SSAUpdater.cpp | 73 if (ValueMapping[PHI->getIncomingBlock(i)] != in IsEquivalentPHI() 102 BasicBlock *PredBB = SomePhi->getIncomingBlock(i); in GetValueInMiddleOfBlock() 183 V = GetValueAtEndOfBlock(UserPN->getIncomingBlock(U)); in RewriteUse() 200 V = GetValueAtEndOfBlock(UserPN->getIncomingBlock(U)); in RewriteUseAfterInsertions() 234 BasicBlock *getIncomingBlock() { return PHI->getIncomingBlock(idx); } in getIncomingBlock() function in llvm::SSAUpdaterTraits::PHI_iterator
|
D | CodeExtractor.cpp | 195 if (Blocks.count(PN->getIncomingBlock(i))) in severSplitPHINodes() 232 if (Blocks.count(PN->getIncomingBlock(i))) { in severSplitPHINodes() 233 TerminatorInst *TI = PN->getIncomingBlock(i)->getTerminator(); in severSplitPHINodes() 250 if (Blocks.count(PN->getIncomingBlock(i))) { in severSplitPHINodes() 251 NewPN->addIncoming(PN->getIncomingValue(i), PN->getIncomingBlock(i)); in severSplitPHINodes() 401 return P->getIncomingBlock(U); in FindPhiPredForUseInBlock() 731 if (!Blocks.count(PN->getIncomingBlock(i))) in extractCodeRegion() 745 if (Blocks.count(PN->getIncomingBlock(i))) { in extractCodeRegion() 746 if (ProcessedPreds.insert(PN->getIncomingBlock(i)).second) in extractCodeRegion()
|
D | BreakCriticalEdges.cpp | 160 if (PN->getIncomingBlock(BBIdx) != TIBB) in SplitCriticalEdge() 198 if (PN->getIncomingBlock(i) != NewBB) in SplitCriticalEdge() 199 OtherPreds.push_back(PN->getIncomingBlock(i)); in SplitCriticalEdge()
|
D | LoopSimplify.cpp | 223 L->contains(PN->getIncomingBlock(i))) in findPHIToPartitionLoops() 270 !L->contains(PN->getIncomingBlock(i))) { in separateNestedLoop() 272 if (isa<IndirectBrInst>(PN->getIncomingBlock(i)->getTerminator())) in separateNestedLoop() 274 OuterLoopPreds.push_back(PN->getIncomingBlock(i)); in separateNestedLoop() 405 BasicBlock *IBB = PN->getIncomingBlock(i); in insertUniqueBackedgeBlock() 424 PN->setIncomingBlock(0, PN->getIncomingBlock(PreheaderIdx)); in insertUniqueBackedgeBlock()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | DemoteRegToStack.cpp | 73 Value *&V = Loads[PN->getIncomingBlock(i)]; in DemoteRegToStack() 77 PN->getIncomingBlock(i)->getTerminator()); in DemoteRegToStack() 132 assert(II->getParent() != P->getIncomingBlock(i) && in DemotePHIToStack() 136 P->getIncomingBlock(i)->getTerminator()); in DemotePHIToStack()
|
D | SSAUpdater.cpp | 87 if (ValueMapping[PHI->getIncomingBlock(i)] != in IsEquivalentPHI() 116 BasicBlock *PredBB = SomePhi->getIncomingBlock(i); in GetValueInMiddleOfBlock() 195 V = GetValueAtEndOfBlock(UserPN->getIncomingBlock(U)); in RewriteUse() 212 V = GetValueAtEndOfBlock(UserPN->getIncomingBlock(U)); in RewriteUseAfterInsertions() 248 BasicBlock *getIncomingBlock() { return PHI->getIncomingBlock(idx); } in getIncomingBlock() function in llvm::SSAUpdaterTraits::PHI_iterator
|
D | LoopSimplify.cpp | 191 L->contains(PN->getIncomingBlock(i))) in findPHIToPartitionLoops() 238 !L->contains(PN->getIncomingBlock(i))) { in separateNestedLoop() 240 if (isa<IndirectBrInst>(PN->getIncomingBlock(i)->getTerminator())) in separateNestedLoop() 242 OuterLoopPreds.push_back(PN->getIncomingBlock(i)); in separateNestedLoop() 394 BasicBlock *IBB = PN->getIncomingBlock(i); in insertUniqueBackedgeBlock() 413 PN->setIncomingBlock(0, PN->getIncomingBlock(PreheaderIdx)); in insertUniqueBackedgeBlock()
|
D | CodeExtractor.cpp | 538 if (Blocks.count(PN->getIncomingBlock(i))) in severSplitPHINodes() 568 if (Blocks.count(PN->getIncomingBlock(i))) { in severSplitPHINodes() 569 TerminatorInst *TI = PN->getIncomingBlock(i)->getTerminator(); in severSplitPHINodes() 588 if (Blocks.count(PN->getIncomingBlock(i))) { in severSplitPHINodes() 589 NewPN->addIncoming(PN->getIncomingValue(i), PN->getIncomingBlock(i)); in severSplitPHINodes() 1255 if (!Blocks.count(PN->getIncomingBlock(i))) in extractCodeRegion() 1269 if (Blocks.count(PN->getIncomingBlock(i))) { in extractCodeRegion() 1270 if (ProcessedPreds.insert(PN->getIncomingBlock(i)).second) in extractCodeRegion()
|
/external/llvm/lib/IR/ |
D | Dominators.cpp | 201 PN->getIncomingBlock(U) == BBE.getStart()) in dominates() 208 UseBB = PN->getIncomingBlock(U); in dominates() 223 UseBB = PN->getIncomingBlock(U); in dominates() 274 return isReachableFromEntry(PN->getIncomingBlock(U)); in isReachableFromEntry()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | BasicBlockTest.cpp | 83 EXPECT_EQ(BB.get(), PN.getIncomingBlock(0)); in TEST() 84 EXPECT_EQ(BB1.get(), PN.getIncomingBlock(1)); in TEST() 85 EXPECT_EQ(BB2.get(), PN.getIncomingBlock(2)); in TEST()
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | MemorySSA.h | 407 BasicBlock *getIncomingBlock(unsigned I) const { return block_begin()[I]; } 411 BasicBlock *getIncomingBlock(const Use &U) const { 413 return getIncomingBlock(unsigned(&U - op_begin())); 418 BasicBlock *getIncomingBlock(MemoryAccess::const_user_iterator I) const { 419 return getIncomingBlock(I.getUse()); 792 return MP->getIncomingBlock(ArgNo);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Dominators.cpp | 231 PN->getIncomingBlock(U) == BBE.getStart()) in dominates() 238 UseBB = PN->getIncomingBlock(U); in dominates() 253 UseBB = PN->getIncomingBlock(U); in dominates() 304 return isReachableFromEntry(PN->getIncomingBlock(U)); in isReachableFromEntry()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | MemorySSA.h | 521 BasicBlock *getIncomingBlock(unsigned I) const { return block_begin()[I]; } 525 BasicBlock *getIncomingBlock(const Use &U) const { 527 return getIncomingBlock(unsigned(&U - op_begin())); 532 BasicBlock *getIncomingBlock(MemoryAccess::const_user_iterator I) const { 533 return getIncomingBlock(I.getUse()); 585 if (Pred(getIncomingValue(I), getIncomingBlock(I))) { 1060 return MP->getIncomingBlock(ArgNo);
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | CodeGenPrepare.cpp | 237 Insn->getParent() != UPN->getIncomingBlock(I)) in CanMergeBlocks() 255 BBPreds.insert(BBPN->getIncomingBlock(i)); in CanMergeBlocks() 262 BasicBlock *Pred = DestBBPN->getIncomingBlock(i); in CanMergeBlocks() 324 InValPhi->getIncomingBlock(i)); in EliminateMostlyEmptyBlock() 330 PN->addIncoming(InVal, BBPN->getIncomingBlock(i)); in EliminateMostlyEmptyBlock() 407 UserBB = PN->getIncomingBlock(UI); in OptimizeNoopCopyExpression() 640 if (CI && CI->hasOneUse() && CI->getParent() == PN->getIncomingBlock(I) && in DupRetToEnableTailCallOpts()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCLoopPreIncPrep.cpp | 226 if ( (CurrentPHINode->getIncomingBlock(0) == LatchBB && in alreadyPrepared() 227 CurrentPHINode->getIncomingBlock(1) == PredBB) || in alreadyPrepared() 228 (CurrentPHINode->getIncomingBlock(1) == LatchBB && in alreadyPrepared() 229 CurrentPHINode->getIncomingBlock(0) == PredBB) ) { in alreadyPrepared()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | SIAnnotateControlFlow.cpp | 187 if (Phi->getIncomingBlock(i) == IDom) { in isElse() 246 BasicBlock *From = Phi->getIncomingBlock(i); in handleLoopCondition() 265 BasicBlock *From = Phi->getIncomingBlock(i); in handleLoopCondition()
|