/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 643 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, in UpdatePHINodes() argument 648 for (BasicBlock::iterator I = OrigBB->begin(); isa<PHINode>(I); ) { in UpdatePHINodes() 778 void llvm::SplitLandingPadPredecessors(BasicBlock *OrigBB, in SplitLandingPadPredecessors() argument 785 assert(OrigBB->isLandingPad() && "Trying to split a non-landing pad!"); in SplitLandingPadPredecessors() 789 BasicBlock *NewBB1 = BasicBlock::Create(OrigBB->getContext(), in SplitLandingPadPredecessors() 790 OrigBB->getName() + Suffix1, in SplitLandingPadPredecessors() 791 OrigBB->getParent(), OrigBB); in SplitLandingPadPredecessors() 795 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors() 796 BI1->setDebugLoc(OrigBB->getFirstNonPHI()->getDebugLoc()); in SplitLandingPadPredecessors() 805 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1); in SplitLandingPadPredecessors() [all …]
|
D | LowerMemIntrinsics.cpp | 292 BasicBlock *OrigBB = InsertBefore->getParent(); in createMemMoveLoop() local 293 Function *F = OrigBB->getParent(); in createMemMoveLoop() 324 new ICmpInst(OrigBB->getTerminator(), ICmpInst::ICMP_EQ, CopyLen, in createMemMoveLoop() 372 BasicBlock *OrigBB = InsertBefore->getParent(); in createMemSetLoop() local 373 Function *F = OrigBB->getParent(); in createMemSetLoop() 375 OrigBB->splitBasicBlock(InsertBefore, "split"); in createMemSetLoop() 379 IRBuilder<> Builder(OrigBB->getTerminator()); in createMemSetLoop() 389 OrigBB->getTerminator()->eraseFromParent(); in createMemSetLoop() 393 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0), OrigBB); in createMemSetLoop()
|
D | InlineFunction.cpp | 1479 auto *OrigBB = cast<BasicBlock>(Entry.first); in updateCallerBFI() local 1481 uint64_t Freq = CalleeBFI->getBlockFreq(OrigBB).getFrequency(); in updateCallerBFI() 1600 BasicBlock *OrigBB = TheCall->getParent(); in InlineFunction() local 1601 Function *Caller = OrigBB->getParent(); in InlineFunction() 1744 updateCallerBFI(OrigBB, VMap, IFI.CallerBFI, IFI.CalleeBFI, in InlineFunction() 2249 OrigBB->getInstList().splice(TheCall->getIterator(), in InlineFunction() 2298 OrigBB->splitBasicBlock(CreatedBranchToNormalDest->getIterator(), in InlineFunction() 2305 AfterCallBB = OrigBB->splitBasicBlock(TheCall->getIterator(), in InlineFunction() 2312 AfterCallBB, IFI.CallerBFI->getBlockFreq(OrigBB).getFrequency()); in InlineFunction() 2318 Instruction *Br = OrigBB->getTerminator(); in InlineFunction() [all …]
|
D | LowerSwitch.cpp | 211 fixPhis(BasicBlock *SuccBB, BasicBlock *OrigBB, BasicBlock *NewBB, in fixPhis() argument 222 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis() 232 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | BranchRelaxation.cpp | 228 MachineBasicBlock *OrigBB = MI.getParent(); in splitBlockBeforeInstr() local 232 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 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() 247 NewBB->transferSuccessors(OrigBB); in splitBlockBeforeInstr() 248 OrigBB->addSuccessor(NewBB); in splitBlockBeforeInstr() 249 OrigBB->addSuccessor(DestBB); in splitBlockBeforeInstr() 254 OrigBB->updateTerminator(); in splitBlockBeforeInstr() 261 BlockInfo[OrigBB->getNumber()].Size = computeBlockSize(*OrigBB); in splitBlockBeforeInstr() [all …]
|
D | RegisterCoalescer.cpp | 3717 const MachineBasicBlock *OrigBB = Copy.getParent(); in applyTerminalRule() local 3726 if (&MI == &Copy || !MI.isCopyLike() || MI.getParent() != OrigBB) in applyTerminalRule()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/ |
D | MipsConstantIslandPass.cpp | 851 MachineBasicBlock *OrigBB = MI.getParent(); in splitBlockBeforeInstr() local 855 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 856 MachineFunction::iterator MBBI = ++OrigBB->getIterator(); 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() 870 NewBB->transferSuccessors(OrigBB); in splitBlockBeforeInstr() 873 OrigBB->addSuccessor(NewBB); in splitBlockBeforeInstr() 888 water_iterator IP = llvm::lower_bound(WaterList, OrigBB, CompareMBBNumbers); in splitBlockBeforeInstr() 890 if (WaterBB == OrigBB) in splitBlockBeforeInstr() 893 WaterList.insert(IP, OrigBB); in splitBlockBeforeInstr() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 887 MachineBasicBlock *OrigBB = MI->getParent(); in splitBlockBeforeInstr() local 891 LRs.addLiveOuts(*OrigBB); in splitBlockBeforeInstr() 893 for (MachineInstr &LiveMI : make_range(OrigBB->rbegin(), LivenessEnd)) in splitBlockBeforeInstr() 898 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 899 MachineFunction::iterator MBBI = ++OrigBB->getIterator(); in splitBlockBeforeInstr() 903 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 911 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB); in splitBlockBeforeInstr() 913 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)) in splitBlockBeforeInstr() 919 NewBB->transferSuccessors(OrigBB); in splitBlockBeforeInstr() 922 OrigBB->addSuccessor(NewBB); in splitBlockBeforeInstr() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | PlaceSafepoints.cpp | 624 BasicBlock *OrigBB = InsertBefore->getParent(); in INITIALIZE_PASS_DEPENDENCY() local 643 if (Before == OrigBB->begin()) in INITIALIZE_PASS_DEPENDENCY() 649 assert(After != OrigBB->end() && "must have successor"); in INITIALIZE_PASS_DEPENDENCY() 665 BasicBlock::iterator Start = IsBegin ? OrigBB->begin() : std::next(Before); in INITIALIZE_PASS_DEPENDENCY()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | BasicBlockUtils.h | 271 BasicBlock *OrigBB, ArrayRef<BasicBlock *> Preds, const char *Suffix,
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1359 BasicBlock *OrigBB = CI->getParent(); in PerformHeapAllocSRoA() local 1361 OrigBB->splitBasicBlock(CI->getIterator(), "malloc_cont"); in PerformHeapAllocSRoA() 1365 BasicBlock *NullPtrBlock = BasicBlock::Create(OrigBB->getContext(), in PerformHeapAllocSRoA() 1367 OrigBB->getParent()); in PerformHeapAllocSRoA() 1371 OrigBB->getTerminator()->eraseFromParent(); in PerformHeapAllocSRoA() 1372 BranchInst::Create(NullPtrBlock, ContBB, RunningOr, OrigBB); in PerformHeapAllocSRoA() 1383 OrigBB->getParent()); in PerformHeapAllocSRoA() 1385 OrigBB->getParent()); in PerformHeapAllocSRoA()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | SIISelLowering.cpp | 3173 MachineBasicBlock &OrigBB, in emitLoadM0FromVGPRLoop() argument 3184 MachineFunction *MF = OrigBB.getParent(); in emitLoadM0FromVGPRLoop() 3197 .addMBB(&OrigBB) in emitLoadM0FromVGPRLoop() 3203 .addMBB(&OrigBB) in emitLoadM0FromVGPRLoop()
|
D | SIInstrInfo.cpp | 4329 MachineBasicBlock &OrigBB, MachineBasicBlock &LoopBB, in emitLoadSRsrcFromVGPRLoop() argument 4331 MachineFunction &MF = *OrigBB.getParent(); in emitLoadSRsrcFromVGPRLoop()
|