/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
H A D | MachineDominators.h | 157 inline void splitBlock(MachineBasicBlock* NewBB) { argument 158 DT->splitBlock(NewBB);
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
H A D | StackProtector.cpp | 218 BasicBlock *NewBB = BB->splitBasicBlock(RI, "SP_return"); local 221 DT->addNewBlock(NewBB, BB); 230 NewBB->moveAfter(BB); 236 BranchInst::Create(NewBB, FailBB, Cmp, BB);
|
H A D | ShadowStackGC.cpp | 166 BasicBlock *NewBB = local 171 NewBB->getInstList().remove(CI); 179 NewBB, CleanupBB,
|
H A D | DwarfEHPrepare.cpp | 408 BasicBlock *NewBB = BasicBlock::Create(F->getContext(), local 412 LPad->getParent()->getBasicBlockList().insert(LPad, NewBB); 414 // Redirect unwind edges from the original landing pad to NewBB. 419 PT->setSuccessor(1, NewBB); 423 // merge incoming values from NewBB instead. 426 pred_iterator PB = pred_begin(NewBB), PE = pred_end(NewBB); 440 // in NewBB. 443 PN->getName()+".unwind", NewBB); 448 // Now use this new PHI as the common incoming value for NewBB i [all...] |
/external/llvm/include/llvm/Analysis/ |
H A D | LoopInfoImpl.h | 180 /// information. NewBB is set to be a new member of the current loop. 187 addBasicBlockToLoop(BlockT *NewBB, LoopInfoBase<BlockT, LoopT> &LIB) { argument 190 assert(NewBB && "Cannot add a null basic block to the loop!"); 191 assert(!LIB[NewBB] && "BasicBlock already in the loop!"); 196 LIB.BBMap[NewBB] = L; 200 L->addBlockEntry(NewBB);
|
/external/llvm/include/llvm/CodeGen/ |
H A D | MachineDominators.h | 47 MachineBasicBlock *NewBB; member in struct:llvm::MachineDominatorTree::CriticalEdge 56 /// Invariant: NewBBs == all the basic blocks contained in the NewBB 59 /// such as BB == elt.NewBB. 205 inline void splitBlock(MachineBasicBlock* NewBB) { argument 207 DT->splitBlock(NewBB); 224 /// split with NewBB. 237 MachineBasicBlock *NewBB) { 238 bool Inserted = NewBBs.insert(NewBB).second; 242 CriticalEdgesToSplit.push_back({FromBB, ToBB, NewBB}); 235 recordSplitCriticalEdge(MachineBasicBlock *FromBB, MachineBasicBlock *ToBB, MachineBasicBlock *NewBB) argument
|
/external/llvm/lib/CodeGen/ |
H A D | ShrinkWrap.cpp | 499 MachineBasicBlock *NewBB; local 504 NewBB = Save; 510 NewBB = Restore; 512 updateSaveRestorePoints(*NewBB, RS.get());
|
H A D | StackProtector.cpp | 409 BasicBlock *NewBB = BB->splitBasicBlock(RI->getIterator(), "SP_return"); local 413 DT->addNewBlock(NewBB, BB); 422 NewBB->moveAfter(BB); 436 B.CreateCondBr(Cmp, NewBB, FailBB, Weights);
|
H A D | ShadowStackGCLowering.cpp | 170 BasicBlock *NewBB = CallBB->splitBasicBlock( local 175 NewBB->getInstList().remove(CI); 183 InvokeInst::Create(CI->getCalledValue(), NewBB, CleanupBB, Args,
|
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64BranchRelaxation.cpp | 228 MachineBasicBlock *NewBB = local 230 MF->insert(++OrigBB->getIterator(), NewBB); 232 // Splice the instructions starting with MI over to NewBB. 233 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); 235 // Add an unconditional branch from OrigBB to NewBB. 239 BuildMI(OrigBB, DebugLoc(), TII->get(AArch64::B)).addMBB(NewBB); 242 BlockInfo.insert(BlockInfo.begin() + NewBB->getNumber(), BasicBlockInfo()); 253 computeBlockSize(*NewBB); 260 return NewBB; 420 MachineBasicBlock *NewBB = splitBlockBeforeInstr(MI); local [all...] |
H A D | AArch64PromoteConstant.cpp | 391 BasicBlock *NewBB = NewPt->getParent(); local 400 if (NewBB == CurBB) { 412 BasicBlock *CommonDominator = DT.findNearestCommonDominator(NewBB, CurBB); 417 if (CommonDominator != NewBB) { 424 // else, CommonDominator is the block of NewBB, hence NewBB is the last
|
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXLowerAggrCopies.cpp | 67 BasicBlock *NewBB = local 69 BasicBlock *LoopBB = BasicBlock::Create(Context, "loadstoreloop", &F, NewBB); 106 NewBB); 212 BasicBlock *NewBB = local 214 BasicBlock *LoopBB = BasicBlock::Create(Context, "loadstoreloop", &F, NewBB); 238 NewBB);
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
H A D | CloneFunction.cpp | 38 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F); local 39 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); 49 NewBB->getInstList().push_back(NewInst); 68 return NewBB; 223 BasicBlock *NewBB; 224 BBEntry = NewBB = BasicBlock::Create(BB->getContext()); 225 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); 243 NewBB->getInstList().push_back(NewInst); 271 VMap[OldTI] = BranchInst::Create(Dest, NewBB); 285 VMap[OldTI] = BranchInst::Create(Dest, NewBB); 384 BasicBlock *NewBB = cast_or_null<BasicBlock>(V); local 420 BasicBlock *NewBB = cast<BasicBlock>(VMap[OldBB]); local [all...] |
H A D | BasicBlockUtils.cpp | 320 static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB, argument 358 DT->splitBlock(NewBB); 386 InnermostPredLoop->addBasicBlockToLoop(NewBB, LI->getBase()); 388 L->addBasicBlockToLoop(NewBB, LI->getBase()); 390 L->moveToHeader(NewBB); 395 /// from NewBB. This also updates AliasAnalysis, if available. 396 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, argument 399 // Otherwise, create a new PHI node in NewBB for each PHI node in OrigBB. 424 // Create the new PHI node, insert it into NewBB at the end of the block 440 PN->addIncoming(InVal, NewBB); 460 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), BB->getName()+Suffix, local [all...] |
H A D | LoopSimplify.cpp | 104 void PlaceSplitBlockCarefully(BasicBlock *NewBB, 382 BasicBlock *NewBB = local 386 NewBB->getTerminator()->setDebugLoc(Header->getFirstNonPHI()->getDebugLoc()); 387 DEBUG(dbgs() << "LoopSimplify: Creating pre-header " << NewBB->getName() 390 // Make sure that NewBB is put someplace intelligent, which doesn't mess up 392 PlaceSplitBlockCarefully(NewBB, OutsideBlocks, L); 394 return NewBB; 480 void LoopSimplify::PlaceSplitBlockCarefully(BasicBlock *NewBB, argument 483 // Check to see if NewBB is already well placed. 484 Function::iterator BBI = NewBB; 559 BasicBlock *NewBB = SplitBlockPredecessors(Header, &OuterLoopPreds[0], local [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | PlaceSafepoints.cpp | 555 BasicBlock *NewBB = SplitEdge(Term->getParent(), Header, &DT); local 556 PollsNeeded.push_back(NewBB->getTerminator());
|
/external/llvm/lib/Transforms/Utils/ |
H A D | CloneFunction.cpp | 43 BasicBlock *NewBB = BasicBlock::Create(BB->getContext(), "", F); local 44 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); 54 NewBB->getInstList().push_back(NewInst); 72 return NewBB; 255 BasicBlock *NewBB; 256 BBEntry = NewBB = BasicBlock::Create(BB->getContext()); 257 if (BB->hasName()) NewBB->setName(BB->getName()+NameSuffix); 271 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); 310 NewBB->getInstList().push_back(NewInst); 342 VMap[OldTI] = BranchInst::Create(Dest, NewBB); 439 BasicBlock *NewBB = cast_or_null<BasicBlock>(V); local 473 BasicBlock *NewBB = cast<BasicBlock>(VMap[OldBB]); local 686 BasicBlock *NewBB = CloneBasicBlock(BB, VMap, NameSuffix, F); local [all...] |
H A D | LoopSimplify.cpp | 81 static void placeSplitBlockCarefully(BasicBlock *NewBB, argument 84 // Check to see if NewBB is already well placed. 85 Function::iterator BBI = --NewBB->getIterator(); 100 if (++BBI != NewBB->getParent()->end() && L->contains(&*BBI)) { 111 NewBB->moveAfter(FoundBB); 148 // Make sure that NewBB is put someplace intelligent, which doesn't mess up 285 BasicBlock *NewBB = SplitBlockPredecessors(Header, OuterLoopPreds, ".outer", local 288 // Make sure that NewBB is put someplace intelligent, which doesn't mess up 290 placeSplitBlockCarefully(NewBB, OuterLoopPreds, L);
|
H A D | LoopUnrollRuntime.cpp | 295 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, "." + suffix, F); local 296 NewBlocks.push_back(NewBB); 299 NewLoop->addBasicBlockToLoop(NewBB, *LI); 301 ParentLoop->addBasicBlockToLoop(NewBB, *LI); 303 VMap[*BB] = NewBB; 307 InsertTop->getTerminator()->setSuccessor(0, NewBB); 315 BranchInst *LatchBR = cast<BranchInst>(NewBB->getTerminator()); 330 NewIdx->addIncoming(IdxSub, NewBB);
|
H A D | BasicBlockUtils.cpp | 278 static void UpdateAnalysisInformation(BasicBlock *OldBB, BasicBlock *NewBB, argument 284 DT->splitBlock(NewBB); 340 InnermostPredLoop->addBasicBlockToLoop(NewBB, *LI); 342 L->addBasicBlockToLoop(NewBB, *LI); 344 L->moveToHeader(NewBB); 348 /// Update the PHI nodes in OrigBB to include the values coming from NewBB. 350 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, argument 353 // Otherwise, create a new PHI node in NewBB for each PHI node in OrigBB. 390 PN->addIncoming(InVal, NewBB); 396 // Create the new PHI node, insert it into NewBB a 436 BasicBlock *NewBB = BasicBlock::Create( local [all...] |
H A D | CodeExtractor.cpp | 210 BasicBlock *NewBB = Header->splitBasicBlock(AfterPHIs, local 217 Blocks.insert(NewBB); 218 Header = NewBB; 223 DT->splitBlock(NewBB); 230 // changing them to branch to NewBB instead. 234 TI->replaceUsesOfWith(OldPred, NewBB); 238 // just have to update the PHI nodes now, inserting PHI nodes into NewBB. 244 PN->getName() + ".ce", &NewBB->front());
|
H A D | LowerSwitch.cpp | 162 static void fixPhis(BasicBlock *SuccBB, BasicBlock *OrigBB, BasicBlock *NewBB, argument 174 PN->setIncomingBlock(Idx, NewBB);
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
H A D | AutoUpgrade.cpp | 581 BasicBlock *NewBB = BasicBlock::Create(Context, "new.lpad", local 583 BranchInst::Create(UnwindDest, NewBB); 584 Invoke->setUnwindDest(NewBB); 592 PN->setIncomingBlock(Idx, NewBB); 595 UnwindDest = NewBB;
|
/external/llvm/lib/CodeGen/GlobalISel/ |
H A D | RegBankSelect.cpp | 747 MachineBasicBlock *NewBB = Src.SplitCriticalEdge(DstOrSplit, P); local 748 assert(NewBB && "Invalid call to materialize"); 750 DstOrSplit = NewBB;
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
H A D | RegionInfo.cpp | 819 void RegionInfo::splitBlock(BasicBlock* NewBB, BasicBlock *OldBB) argument 823 setRegionFor(NewBB, R); 826 R->replaceEntry(NewBB);
|