/external/llvm/lib/Transforms/Utils/ |
D | BreakCriticalEdges.cpp | 148 BasicBlock *NewBB = BasicBlock::Create(TI->getContext(), in SplitCriticalEdge() local 151 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); in SplitCriticalEdge() 155 TI->setSuccessor(SuccNum, NewBB); in SplitCriticalEdge() 160 F.getBasicBlockList().insert(++FBBI, NewBB); in SplitCriticalEdge() 179 PN->setIncomingBlock(BBIdx, NewBB); in SplitCriticalEdge() 194 TI->setSuccessor(i, NewBB); in SplitCriticalEdge() 202 return NewBB; in SplitCriticalEdge() 215 if (PN->getIncomingBlock(i) != NewBB) in SplitCriticalEdge() 221 if (P != NewBB) in SplitCriticalEdge() 236 DomTreeNode *NewBBNode = DT->addNewBlock(NewBB, TIBB); in SplitCriticalEdge() [all …]
|
D | CloneFunction.cpp | 43 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F); in CloneBasicBlock() local 44 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); in CloneBasicBlock() 54 NewBB->getInstList().push_back(NewInst); in CloneBasicBlock() 72 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() 338 Director->handleInstruction(VMap, &*II, NewBB); in CloneBlock() 381 NewBB->getInstList().push_back(NewInst); in CloneBlock() [all …]
|
D | BasicBlockUtils.cpp | 316 static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB, in UpdateAnalysisInformation() argument 322 DT->splitBlock(NewBB); in UpdateAnalysisInformation() 383 InnermostPredLoop->addBasicBlockToLoop(NewBB, *LI); in UpdateAnalysisInformation() 385 L->addBasicBlockToLoop(NewBB, *LI); in UpdateAnalysisInformation() 387 L->moveToHeader(NewBB); in UpdateAnalysisInformation() 393 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, in UpdatePHINodes() argument 433 PN->addIncoming(InVal, NewBB); in UpdatePHINodes() 455 PN->addIncoming(NewPHI, NewBB); in UpdatePHINodes() 494 BasicBlock *NewBB = BasicBlock::Create( in SplitBlockPredecessors() local 498 BranchInst *BI = BranchInst::Create(BB, NewBB); in SplitBlockPredecessors() [all …]
|
D | LoopUnrollRuntime.cpp | 166 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".prol", F); in CloneLoopBlocks() local 167 NewBlocks.push_back(NewBB); in CloneLoopBlocks() 170 NewLoop->addBasicBlockToLoop(NewBB, *LI); in CloneLoopBlocks() 172 ParentLoop->addBasicBlockToLoop(NewBB, *LI); in CloneLoopBlocks() 174 VMap[*BB] = NewBB; in CloneLoopBlocks() 178 InsertTop->getTerminator()->setSuccessor(0, NewBB); in CloneLoopBlocks() 186 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); in CloneLoopBlocks() 200 NewIdx->addIncoming(IdxSub, NewBB); in CloneLoopBlocks()
|
D | LoopSimplify.cpp | 80 static void placeSplitBlockCarefully(BasicBlock *NewBB, in placeSplitBlockCarefully() argument 84 Function::iterator BBI = --NewBB->getIterator(); in placeSplitBlockCarefully() 99 if (++BBI != NewBB->getParent()->end() && L->contains(&*BBI)) { in placeSplitBlockCarefully() 110 NewBB->moveAfter(FoundBB); in placeSplitBlockCarefully() 284 BasicBlock *NewBB = SplitBlockPredecessors(Header, OuterLoopPreds, ".outer", in separateNestedLoop() local 289 placeSplitBlockCarefully(NewBB, OuterLoopPreds, L); in separateNestedLoop()
|
D | CodeExtractor.cpp | 215 BasicBlock *NewBB = Header->splitBasicBlock(AfterPHIs, in severSplitPHINodes() local 222 Blocks.insert(NewBB); in severSplitPHINodes() 223 Header = NewBB; in severSplitPHINodes() 228 DT->splitBlock(NewBB); in severSplitPHINodes() 239 TI->replaceUsesOfWith(OldPred, NewBB); in severSplitPHINodes() 249 PN->getName() + ".ce", &NewBB->front()); in severSplitPHINodes()
|
D | LowerSwitch.cpp | 168 static void fixPhis(BasicBlock *SuccBB, BasicBlock *OrigBB, BasicBlock *NewBB, in fixPhis() argument 180 PN->setIncomingBlock(Idx, NewBB); in fixPhis()
|
D | InlineFunction.cpp | 274 if (BasicBlock *NewBB = HandleCallsInBlockInlinedThroughInvoke( in HandleInlinedLandingPad() local 278 Invoke.addIncomingPHIValuesFor(NewBB); in HandleInlinedLandingPad() 372 if (BasicBlock *NewBB = in HandleInlinedEHPad() local 376 UpdatePHINodes(NewBB); in HandleInlinedEHPad()
|
/external/llvm/include/llvm/CodeGen/ |
D | MachineDominators.h | 47 MachineBasicBlock *NewBB; member 205 inline void splitBlock(MachineBasicBlock* NewBB) { in splitBlock() argument 207 DT->splitBlock(NewBB); in splitBlock() 235 MachineBasicBlock *NewBB) { in recordSplitCriticalEdge() argument 236 bool Inserted = NewBBs.insert(NewBB).second; in recordSplitCriticalEdge() 240 CriticalEdgesToSplit.push_back({FromBB, ToBB, NewBB}); in recordSplitCriticalEdge()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64BranchRelaxation.cpp | 228 MachineBasicBlock *NewBB = in splitBlockBeforeInstr() local 230 MF->insert(++OrigBB->getIterator(), NewBB); in splitBlockBeforeInstr() 233 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 239 BuildMI(OrigBB, DebugLoc(), TII->get(AArch64::B)).addMBB(NewBB); in splitBlockBeforeInstr() 242 BlockInfo.insert(BlockInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); in splitBlockBeforeInstr() 253 computeBlockSize(*NewBB); in splitBlockBeforeInstr() 260 return NewBB; in splitBlockBeforeInstr() 420 MachineBasicBlock *NewBB = splitBlockBeforeInstr(MI); in fixupConditionalBranch() local 430 MBB->replaceSuccessor(FBB, NewBB); in fixupConditionalBranch() 431 NewBB->addSuccessor(FBB); in fixupConditionalBranch()
|
D | AArch64PromoteConstant.cpp | 372 BasicBlock *NewBB = NewPt->getParent(); in tryAndMerge() local 381 if (NewBB == CurBB) { in tryAndMerge() 393 BasicBlock *CommonDominator = DT.findNearestCommonDominator(NewBB, CurBB); in tryAndMerge() 398 if (CommonDominator != NewBB) { in tryAndMerge()
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 295 void updateForInsertedWaterBlock(MachineBasicBlock *NewBB); 955 void ARMConstantIslands::updateForInsertedWaterBlock(MachineBasicBlock *NewBB) { in updateForInsertedWaterBlock() argument 957 NewBB->getParent()->RenumberBlocks(NewBB); in updateForInsertedWaterBlock() 961 BBInfo.insert(BBInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); in updateForInsertedWaterBlock() 966 std::lower_bound(WaterList.begin(), WaterList.end(), NewBB, in updateForInsertedWaterBlock() 968 WaterList.insert(IP, NewBB); in updateForInsertedWaterBlock() 979 MachineBasicBlock *NewBB = in splitBlockBeforeInstr() local 982 MF->insert(MBBI, NewBB); in splitBlockBeforeInstr() 985 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 993 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB); in splitBlockBeforeInstr() [all …]
|
/external/llvm/include/llvm/Support/ |
D | GenericDomTree.h | 254 typename GraphT::NodeType *NewBB) { in Split() argument 255 assert(std::distance(GraphT::child_begin(NewBB), in Split() 256 GraphT::child_end(NewBB)) == 1 && in Split() 258 typename GraphT::NodeType *NewBBSucc = *GraphT::child_begin(NewBB); in Split() 263 PI = InvTraits::child_begin(NewBB), in Split() 264 PE = InvTraits::child_end(NewBB); in Split() 276 if (ND != NewBB && !DT.dominates(NewBBSucc, ND) && in Split() 305 DomTreeNodeBase<NodeT> *NewBBNode = DT.addNewBlock(NewBB, NewBBIDom); in Split() 577 void changeImmediateDominator(NodeT *BB, NodeT *NewBB) { in changeImmediateDominator() argument 578 changeImmediateDominator(getNode(BB), getNode(NewBB)); in changeImmediateDominator() [all …]
|
/external/llvm/lib/Target/Mips/ |
D | MipsConstantIslandPass.cpp | 393 void updateForInsertedWaterBlock(MachineBasicBlock *NewBB); 852 (MachineBasicBlock *NewBB) { in updateForInsertedWaterBlock() argument 854 NewBB->getParent()->RenumberBlocks(NewBB); in updateForInsertedWaterBlock() 858 BBInfo.insert(BBInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); in updateForInsertedWaterBlock() 863 std::lower_bound(WaterList.begin(), WaterList.end(), NewBB, in updateForInsertedWaterBlock() 865 WaterList.insert(IP, NewBB); in updateForInsertedWaterBlock() 880 MachineBasicBlock *NewBB = in splitBlockBeforeInstr() local 883 MF->insert(MBBI, NewBB); in splitBlockBeforeInstr() 886 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 892 BuildMI(OrigBB, DebugLoc(), TII->get(Mips::Bimm16)).addMBB(NewBB); in splitBlockBeforeInstr() [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerAggrCopies.cpp | 67 BasicBlock *NewBB = in convertMemCpyToLoop() local 69 BasicBlock *LoopBB = BasicBlock::Create(Context, "loadstoreloop", &F, NewBB); in convertMemCpyToLoop() 106 NewBB); in convertMemCpyToLoop() 212 BasicBlock *NewBB = in convertMemSetToLoop() local 214 BasicBlock *LoopBB = BasicBlock::Create(Context, "loadstoreloop", &F, NewBB); in convertMemSetToLoop() 238 NewBB); in convertMemSetToLoop()
|
/external/llvm/lib/Transforms/Scalar/ |
D | JumpThreading.cpp | 171 BasicBlock *NewBB, BasicBlock *SuccBB); 1492 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), in ThreadEdge() local 1495 NewBB->moveAfter(PredBB); in ThreadEdge() 1501 BFI->setBlockFreq(NewBB, NewBBFreq.getFrequency()); in ThreadEdge() 1513 NewBB->getInstList().push_back(New); in ThreadEdge() 1527 BranchInst *NewBI = BranchInst::Create(SuccBB, NewBB); in ThreadEdge() 1532 AddPHINodeEntriesForMappedBlock(SuccBB, BB, NewBB, ValueMapping); in ThreadEdge() 1565 SSAUpdate.AddAvailableValue(NewBB, ValueMapping[&*I]); in ThreadEdge() 1580 PredTerm->setSuccessor(i, NewBB); in ThreadEdge() 1586 SimplifyInstructionsInBlock(NewBB, TLI); in ThreadEdge() [all …]
|
D | LoopUnswitch.cpp | 1011 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); in UnswitchNontrivialCondition() local 1013 NewBlocks.push_back(NewBB); in UnswitchNontrivialCondition() 1014 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. in UnswitchNontrivialCondition() 1015 LPM->cloneBasicBlockSimpleAnalysis(LoopBlocks[i], NewBB, L); in UnswitchNontrivialCondition()
|
D | PlaceSafepoints.cpp | 633 BasicBlock *NewBB = SplitEdge(Term->getParent(), Header, &DT); in runOnFunction() local 634 PollsNeeded.push_back(NewBB->getTerminator()); in runOnFunction()
|
/external/llvm/lib/CodeGen/ |
D | MachineDominators.cpp | 84 if (PredBB == Edge.NewBB) in applySplitCriticalEdges() 116 MachineDomTreeNode *NewDTNode = DT->addNewBlock(Edge.NewBB, Edge.FromBB); in applySplitCriticalEdges()
|
D | StackProtector.cpp | 436 BasicBlock *NewBB = BB->splitBasicBlock(RI->getIterator(), "SP_return"); in InsertStackProtectors() local 440 DT->addNewBlock(NewBB, BB); in InsertStackProtectors() 449 NewBB->moveAfter(BB); in InsertStackProtectors() 462 B.CreateCondBr(Cmp, NewBB, FailBB, Weights); in InsertStackProtectors()
|
D | ShrinkWrap.cpp | 454 MachineBasicBlock *NewBB; in runOnMachineFunction() local 459 NewBB = Save; in runOnMachineFunction() 465 NewBB = Restore; in runOnMachineFunction() 467 updateSaveRestorePoints(*NewBB, RS.get()); in runOnMachineFunction()
|
D | ShadowStackGCLowering.cpp | 166 BasicBlock *NewBB = CallBB->splitBasicBlock( in Next() local 171 NewBB->getInstList().remove(CI); in Next() 179 InvokeInst::Create(CI->getCalledValue(), NewBB, CleanupBB, Args, in Next()
|
/external/llvm/include/llvm/Analysis/ |
D | LoopInfo.h | 269 void addBasicBlockToLoop(BlockT *NewBB, LoopInfoBase<BlockT, LoopT> &LI); 712 auto *NewBB = NewLoc->getParent(); in movementPreservesLCSSAForm() local 716 if (OldBB == NewBB) in movementPreservesLCSSAForm() 720 auto *NewLoop = getLoopFor(NewBB); in movementPreservesLCSSAForm() 743 if (UBB != NewBB && getLoopFor(UBB) != NewLoop) in movementPreservesLCSSAForm() 765 if (DefBlock != NewBB && getLoopFor(DefBlock) != NewLoop) in movementPreservesLCSSAForm()
|
D | LoopInfoImpl.h | 187 addBasicBlockToLoop(BlockT *NewBB, LoopInfoBase<BlockT, LoopT> &LIB) { in addBasicBlockToLoop() argument 190 assert(NewBB && "Cannot add a null basic block to the loop!"); in addBasicBlockToLoop() 191 assert(!LIB[NewBB] && "BasicBlock already in the loop!"); in addBasicBlockToLoop() 196 LIB.BBMap[NewBB] = L; in addBasicBlockToLoop() 200 L->addBlockEntry(NewBB); in addBasicBlockToLoop()
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Cloning.h | 172 BasicBlock *NewBB) = 0;
|