/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | MachineLoopUtils.cpp | 39 MachineBasicBlock *NewBB = MF.CreateMachineBasicBlock(Loop->getBasicBlock()); in PeelSingleBlockLoop() local 41 MF.insert(Loop->getIterator(), NewBB); in PeelSingleBlockLoop() 43 MF.insert(std::next(Loop->getIterator()), NewBB); in PeelSingleBlockLoop() 47 auto InsertPt = NewBB->end(); in PeelSingleBlockLoop() 50 NewBB->insert(InsertPt, NewMI); in PeelSingleBlockLoop() 75 for (auto I = NewBB->getFirstNonPHI(); I != NewBB->end(); ++I) in PeelSingleBlockLoop() 80 for (auto I = NewBB->begin(); I->isPHI(); ++I) { in PeelSingleBlockLoop() 108 Preheader->replaceSuccessor(Loop, NewBB); in PeelSingleBlockLoop() 109 NewBB->addSuccessor(Loop); in PeelSingleBlockLoop() 110 Loop->replacePhiUsesWith(Preheader, NewBB); in PeelSingleBlockLoop() [all …]
|
D | BranchRelaxation.cpp | 213 MachineBasicBlock *NewBB = in createNewBlockAfter() local 215 MF->insert(++BB.getIterator(), NewBB); in createNewBlockAfter() 218 BlockInfo.insert(BlockInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); in createNewBlockAfter() 220 return NewBB; in createNewBlockAfter() 231 MachineBasicBlock *NewBB = in splitBlockBeforeInstr() local 233 MF->insert(++OrigBB->getIterator(), NewBB); in splitBlockBeforeInstr() 236 NewBB->splice(NewBB->end(), OrigBB, MI.getIterator(), OrigBB->end()); in splitBlockBeforeInstr() 242 TII->insertUnconditionalBranch(*OrigBB, NewBB, DebugLoc()); in splitBlockBeforeInstr() 245 BlockInfo.insert(BlockInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); in splitBlockBeforeInstr() 247 NewBB->transferSuccessors(OrigBB); in splitBlockBeforeInstr() [all …]
|
D | ModuloSchedule.cpp | 204 MachineBasicBlock *NewBB = MF.CreateMachineBasicBlock(BB->getBasicBlock()); in generateProlog() local 205 PrologBBs.push_back(NewBB); in generateProlog() 206 MF.insert(BB->getIterator(), NewBB); in generateProlog() 207 NewBB->transferSuccessors(PredBB); in generateProlog() 208 PredBB->addSuccessor(NewBB); in generateProlog() 209 PredBB = NewBB; in generateProlog() 223 NewBB->push_back(NewMI); in generateProlog() 228 rewritePhiValues(NewBB, i, VRMap, InstrMap); in generateProlog() 231 NewBB->dump(); in generateProlog() 278 MachineBasicBlock *NewBB = MF.CreateMachineBasicBlock(); in generateEpilog() local [all …]
|
D | MachineDominators.cpp | 107 if (PredBB == Edge.NewBB) in applySplitCriticalEdges() 139 MachineDomTreeNode *NewDTNode = DT->addNewBlock(Edge.NewBB, Edge.FromBB); in applySplitCriticalEdges()
|
D | ShrinkWrap.cpp | 559 MachineBasicBlock *NewBB; in runOnMachineFunction() local 564 NewBB = Save; in runOnMachineFunction() 570 NewBB = Restore; in runOnMachineFunction() 572 updateSaveRestorePoints(*NewBB, RS.get()); in runOnMachineFunction()
|
D | StackProtector.cpp | 490 BasicBlock *NewBB = BB->splitBasicBlock(RI->getIterator(), "SP_return"); in InsertStackProtectors() local 494 DT->addNewBlock(NewBB, BB); in InsertStackProtectors() 503 NewBB->moveAfter(BB); in InsertStackProtectors() 517 B.CreateCondBr(Cmp, NewBB, FailBB, Weights); in InsertStackProtectors()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | CloneFunction.cpp | 45 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F); in CloneBasicBlock() local 47 NewBB->setName(BB->getName() + NameSuffix); in CloneBasicBlock() 60 NewBB->getInstList().push_back(NewInst); in CloneBasicBlock() 78 return NewBB; in CloneBasicBlock() 310 BasicBlock *NewBB; in CloneBlock() local 311 BBEntry = NewBB = BasicBlock::Create(BB->getContext()); in CloneBlock() 312 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); in CloneBlock() 326 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); in CloneBlock() 366 NewBB->getInstList().push_back(NewInst); in CloneBlock() 398 VMap[OldTI] = BranchInst::Create(Dest, NewBB); in CloneBlock() [all …]
|
D | BreakCriticalEdges.cpp | 162 BasicBlock *NewBB = BasicBlock::Create(TI->getContext(), in SplitCriticalEdge() local 165 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); in SplitCriticalEdge() 169 TI->setSuccessor(SuccNum, NewBB); in SplitCriticalEdge() 174 F.getBasicBlockList().insert(++FBBI, NewBB); in SplitCriticalEdge() 193 PN->setIncomingBlock(BBIdx, NewBB); in SplitCriticalEdge() 208 TI->setSuccessor(i, NewBB); in SplitCriticalEdge() 219 DestBB, NewBB, {TIBB}, Options.MergeIdenticalEdges); in SplitCriticalEdge() 222 return NewBB; in SplitCriticalEdge() 235 Updates.push_back({DominatorTree::Insert, TIBB, NewBB}); in SplitCriticalEdge() 236 Updates.push_back({DominatorTree::Insert, NewBB, DestBB}); in SplitCriticalEdge() [all …]
|
D | BasicBlockUtils.cpp | 552 static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB, in UpdateAnalysisInformation() argument 560 assert(NewBB == &NewBB->getParent()->getEntryBlock()); in UpdateAnalysisInformation() 561 DT->setNewRoot(NewBB); in UpdateAnalysisInformation() 564 DT->splitBlock(NewBB); in UpdateAnalysisInformation() 570 MSSAU->wireOldPredecessorsToNewImmediatePredecessor(OldBB, NewBB, Preds); in UpdateAnalysisInformation() 633 InnermostPredLoop->addBasicBlockToLoop(NewBB, *LI); in UpdateAnalysisInformation() 635 L->addBasicBlockToLoop(NewBB, *LI); in UpdateAnalysisInformation() 637 L->moveToHeader(NewBB); in UpdateAnalysisInformation() 643 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, in UpdatePHINodes() argument 683 PN->addIncoming(InVal, NewBB); in UpdatePHINodes() [all …]
|
D | LoopUnrollRuntime.cpp | 321 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, "." + suffix, F); in CloneLoopBlocks() local 322 NewBlocks.push_back(NewBB); in CloneLoopBlocks() 328 addClonedBlockToLoopInfo(*BB, NewBB, LI, NewLoops); in CloneLoopBlocks() 330 VMap[*BB] = NewBB; in CloneLoopBlocks() 334 InsertTop->getTerminator()->setSuccessor(0, NewBB); in CloneLoopBlocks() 340 DT->addNewBlock(NewBB, InsertTop); in CloneLoopBlocks() 344 DT->addNewBlock(NewBB, cast<BasicBlock>(VMap[IDomBB])); in CloneLoopBlocks() 353 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); in CloneLoopBlocks() 368 NewIdx->addIncoming(IdxSub, NewBB); in CloneLoopBlocks()
|
D | LoopUnrollPeel.cpp | 508 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".peel", F); in cloneLoopBlocks() local 509 NewBlocks.push_back(NewBB); in cloneLoopBlocks() 512 ParentLoop->addBasicBlockToLoop(NewBB, *LI); in cloneLoopBlocks() 514 VMap[*BB] = NewBB; in cloneLoopBlocks() 519 DT->addNewBlock(NewBB, InsertTop); in cloneLoopBlocks() 523 DT->addNewBlock(NewBB, cast<BasicBlock>(VMap[IDom->getBlock()])); in cloneLoopBlocks()
|
D | CodeExtractor.cpp | 648 BasicBlock *NewBB = SplitBlock(Header, Header->getFirstNonPHI(), DT); in severSplitPHINodesOfEntry() local 654 Blocks.insert(NewBB); in severSplitPHINodesOfEntry() 655 Header = NewBB; in severSplitPHINodesOfEntry() 666 TI->replaceUsesOfWith(OldPred, NewBB); in severSplitPHINodesOfEntry() 677 PN->getName() + ".ce", &NewBB->front()); in severSplitPHINodesOfEntry() 701 BasicBlock *NewBB = nullptr; in severSplitPHINodesOfExits() local 718 if (!NewBB) { in severSplitPHINodesOfExits() 719 NewBB = BasicBlock::Create(ExitBB->getContext(), in severSplitPHINodesOfExits() 726 PredBB->getTerminator()->replaceUsesOfWith(ExitBB, NewBB); in severSplitPHINodesOfExits() 727 BranchInst::Create(ExitBB, NewBB); in severSplitPHINodesOfExits() [all …]
|
D | LoopSimplify.cpp | 86 static void placeSplitBlockCarefully(BasicBlock *NewBB, in placeSplitBlockCarefully() argument 90 Function::iterator BBI = --NewBB->getIterator(); in placeSplitBlockCarefully() 105 if (++BBI != NewBB->getParent()->end() && L->contains(&*BBI)) { in placeSplitBlockCarefully() 116 NewBB->moveAfter(FoundBB); in placeSplitBlockCarefully() 261 BasicBlock *NewBB = SplitBlockPredecessors(Header, OuterLoopPreds, ".outer", in separateNestedLoop() local 266 placeSplitBlockCarefully(NewBB, OuterLoopPreds, L); in separateNestedLoop() 307 OuterLoopBlocks.push_back(NewBB); in separateNestedLoop()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/ |
D | MSP430BranchSelector.cpp | 152 MachineBasicBlock *NewBB = in expandBranches() local 154 MF->insert(std::next(MBB), NewBB); in expandBranches() 157 NewBB->splice(NewBB->end(), &*MBB, std::next(MI), MBB->end()); in expandBranches() 164 MBB->replaceSuccessor(Succ, NewBB); in expandBranches() 165 NewBB->addSuccessor(Succ); in expandBranches()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | MachineDominators.h | 54 MachineBasicBlock *NewBB; member 212 void splitBlock(MachineBasicBlock* NewBB) { in splitBlock() argument 214 DT->splitBlock(NewBB); in splitBlock() 244 MachineBasicBlock *NewBB) { in recordSplitCriticalEdge() argument 245 bool Inserted = NewBBs.insert(NewBB).second; in recordSplitCriticalEdge() 249 CriticalEdgesToSplit.push_back({FromBB, ToBB, NewBB}); in recordSplitCriticalEdge()
|
D | ModuloSchedule.h | 189 void generateExistingPhis(MachineBasicBlock *NewBB, MachineBasicBlock *BB1, 194 void generatePhis(MachineBasicBlock *NewBB, MachineBasicBlock *BB1, 218 void rewritePhiValues(MachineBasicBlock *NewBB, unsigned StageNum,
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/ |
D | VPlan.cpp | 119 BasicBlock *NewBB = BasicBlock::Create(PrevBB->getContext(), getName(), in createEmptyBasicBlock() local 121 LLVM_DEBUG(dbgs() << "LV: created " << NewBB->getName() << '\n'); in createEmptyBasicBlock() 149 BranchInst::Create(NewBB, PredBB); in createEmptyBasicBlock() 156 PredBBTerminator->setSuccessor(idx, NewBB); in createEmptyBasicBlock() 159 return NewBB; in createEmptyBasicBlock() 167 BasicBlock *NewBB = State->CFG.PrevBB; // Reuse it if possible. in execute() local 182 NewBB = createEmptyBasicBlock(State->CFG); in execute() 183 State->Builder.SetInsertPoint(NewBB); in execute() 189 L->addBasicBlockToLoop(NewBB, *State->LI); in execute() 190 State->CFG.PrevBB = NewBB; in execute() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 1935 BasicBlock *BB, BasicBlock *NewBB, in UpdateSSA() argument 1968 SSAUpdate.AddAvailableValue(NewBB, ValueMapping[&I]); in UpdateSSA() 1981 BasicBlock::iterator BE, BasicBlock *NewBB, in CloneInstructions() argument 1992 PHINode *NewPN = PHINode::Create(PN->getType(), 1, PN->getName(), NewBB); in CloneInstructions() 2003 NewBB->getInstList().push_back(New); in CloneInstructions() 2087 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), in ThreadEdge() local 2090 NewBB->moveAfter(PredBB); in ThreadEdge() 2096 BFI->setBlockFreq(NewBB, NewBBFreq.getFrequency()); in ThreadEdge() 2101 CloneInstructions(BB->begin(), std::prev(BB->end()), NewBB, PredBB); in ThreadEdge() 2105 BranchInst *NewBI = BranchInst::Create(SuccBB, NewBB); in ThreadEdge() [all …]
|
D | GVNHoist.cpp | 393 const BasicBlock *NewBB = NewPt->getParent(); in hasMemoryUse() local 405 if (BB == NewBB) { in hasMemoryUse() 447 const BasicBlock *NewBB = NewPt->getParent(); in hasEHOrLoadsOnPath() local 449 assert(DT->dominates(NewBB, OldBB) && "invalid path"); in hasEHOrLoadsOnPath() 450 assert(DT->dominates(Def->getDefiningAccess()->getBlock(), NewBB) && in hasEHOrLoadsOnPath() 459 if (BB == NewBB) { in hasEHOrLoadsOnPath() 524 const BasicBlock *NewBB = NewPt->getParent(); in safeToHoistLdSt() local 531 if (DT->properlyDominates(NewBB, DBB)) in safeToHoistLdSt() 535 if (NewBB == DBB && !MSSA->isLiveOnEntryDef(D)) in safeToHoistLdSt() 545 } else if (hasEHOnPath(NewBB, OldBB, NBBsOnAllPaths)) in safeToHoistLdSt() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | GenericDomTree.h | 613 void changeImmediateDominator(NodeT *BB, NodeT *NewBB) { 614 changeImmediateDominator(getNode(BB), getNode(NewBB)); 651 void splitBlock(NodeT *NewBB) { 653 Split<Inverse<NodeT *>>(NewBB); 655 Split<NodeT *>(NewBB); 772 void Split(typename GraphTraits<N>::NodeRef NewBB) { 775 assert(std::distance(GraphT::child_begin(NewBB), 776 GraphT::child_end(NewBB)) == 1 && 778 NodeRef NewBBSucc = *GraphT::child_begin(NewBB); 781 for (auto Pred : children<Inverse<N>>(NewBB)) [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 254 void updateForInsertedWaterBlock(MachineBasicBlock *NewBB); 869 void ARMConstantIslands::updateForInsertedWaterBlock(MachineBasicBlock *NewBB) { in updateForInsertedWaterBlock() argument 871 NewBB->getParent()->RenumberBlocks(NewBB); in updateForInsertedWaterBlock() 875 BBUtils->insert(NewBB->getNumber(), BasicBlockInfo()); in updateForInsertedWaterBlock() 879 water_iterator IP = llvm::lower_bound(WaterList, NewBB, CompareMBBNumbers); in updateForInsertedWaterBlock() 880 WaterList.insert(IP, NewBB); in updateForInsertedWaterBlock() 897 MachineBasicBlock *NewBB = in splitBlockBeforeInstr() local 900 MF->insert(MBBI, NewBB); in splitBlockBeforeInstr() 903 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 911 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB); in splitBlockBeforeInstr() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/ |
D | MipsConstantIslandPass.cpp | 387 void updateForInsertedWaterBlock(MachineBasicBlock *NewBB); 828 (MachineBasicBlock *NewBB) { in updateForInsertedWaterBlock() argument 830 NewBB->getParent()->RenumberBlocks(NewBB); in updateForInsertedWaterBlock() 834 BBInfo.insert(BBInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); in updateForInsertedWaterBlock() 838 water_iterator IP = llvm::lower_bound(WaterList, NewBB, CompareMBBNumbers); in updateForInsertedWaterBlock() 839 WaterList.insert(IP, NewBB); in updateForInsertedWaterBlock() 854 MachineBasicBlock *NewBB = in splitBlockBeforeInstr() local 857 MF->insert(MBBI, NewBB); in splitBlockBeforeInstr() 860 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 866 BuildMI(OrigBB, DebugLoc(), TII->get(Mips::Bimm16)).addMBB(NewBB); in splitBlockBeforeInstr() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/ |
D | JumpThreading.h | 113 void UpdateSSA(BasicBlock *BB, BasicBlock *NewBB, 117 BasicBlock *NewBB, 165 BasicBlock *NewBB, BasicBlock *SuccBB);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64PromoteConstant.cpp | 398 BasicBlock *NewBB = NewPt->getParent(); in tryAndMerge() local 407 if (NewBB == CurBB) { in tryAndMerge() 419 BasicBlock *CommonDominator = DT.findNearestCommonDominator(NewBB, CurBB); in tryAndMerge() 424 if (CommonDominator != NewBB) { in tryAndMerge()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/ |
D | CoroFrame.cpp | 687 auto NewBB = SplitEdge(II->getParent(), II->getNormalDest()); in insertSpills() local 688 InsertPt = NewBB->getTerminator(); in insertSpills() 843 auto *NewBB = BasicBlock::Create(BB->getContext(), "", BB->getParent(), Succ); in ehAwareSplitEdge() local 844 setUnwindEdgeTo(BB->getTerminator(), NewBB); in ehAwareSplitEdge() 845 updatePhiNodes(Succ, BB, NewBB, LandingPadReplacement); in ehAwareSplitEdge() 849 auto *Terminator = BranchInst::Create(Succ, NewBB); in ehAwareSplitEdge() 851 LandingPadReplacement->addIncoming(NewLP, NewBB); in ehAwareSplitEdge() 852 return NewBB; in ehAwareSplitEdge() 862 auto *NewCleanupPad = CleanupPadInst::Create(ParentPad, {}, "", NewBB); in ehAwareSplitEdge() 863 CleanupReturnInst::Create(NewCleanupPad, Succ, NewBB); in ehAwareSplitEdge() [all …]
|