/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 396 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, in UpdatePHINodes() argument 401 for (BasicBlock::iterator I = OrigBB->begin(); isa<PHINode>(I); ) { in UpdatePHINodes() 511 void llvm::SplitLandingPadPredecessors(BasicBlock *OrigBB, in SplitLandingPadPredecessors() argument 516 assert(OrigBB->isLandingPad() && "Trying to split a non-landing pad!"); in SplitLandingPadPredecessors() 520 BasicBlock *NewBB1 = BasicBlock::Create(OrigBB->getContext(), in SplitLandingPadPredecessors() 521 OrigBB->getName() + Suffix1, in SplitLandingPadPredecessors() 522 OrigBB->getParent(), OrigBB); in SplitLandingPadPredecessors() 526 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors() 535 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1); in SplitLandingPadPredecessors() 540 UpdateAnalysisInformation(OrigBB, NewBB1, Preds, P, HasLoopExit); in SplitLandingPadPredecessors() [all …]
|
D | InlineFunction.cpp | 913 BasicBlock *OrigBB = TheCall->getParent(); in InlineFunction() local 914 Function *Caller = OrigBB->getParent(); in InlineFunction() 1157 OrigBB->getInstList().splice(TheCall, FirstNewBlock->getInstList(), in InlineFunction() 1201 AfterCallBB = OrigBB->splitBasicBlock(NewBr, in InlineFunction() 1208 AfterCallBB = OrigBB->splitBasicBlock(TheCall, in InlineFunction() 1215 TerminatorInst *Br = OrigBB->getTerminator(); in InlineFunction() 1299 CalleeEntry->replaceAllUsesWith(OrigBB); // Update PHI nodes in InlineFunction() 1300 OrigBB->getInstList().splice(Br, CalleeEntry->getInstList()); in InlineFunction() 1303 OrigBB->getInstList().erase(Br); in InlineFunction()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 417 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, in UpdatePHINodes() argument 422 for (BasicBlock::iterator I = OrigBB->begin(); isa<PHINode>(I); ) { in UpdatePHINodes() 543 void llvm::SplitLandingPadPredecessors(BasicBlock *OrigBB, in SplitLandingPadPredecessors() argument 549 assert(OrigBB->isLandingPad() && "Trying to split a non-landing pad!"); in SplitLandingPadPredecessors() 553 BasicBlock *NewBB1 = BasicBlock::Create(OrigBB->getContext(), in SplitLandingPadPredecessors() 554 OrigBB->getName() + Suffix1, in SplitLandingPadPredecessors() 555 OrigBB->getParent(), OrigBB); in SplitLandingPadPredecessors() 559 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors() 560 BI1->setDebugLoc(OrigBB->getFirstNonPHI()->getDebugLoc()); in SplitLandingPadPredecessors() 569 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1); in SplitLandingPadPredecessors() [all …]
|
D | LowerMemIntrinsics.cpp | 293 BasicBlock *OrigBB = InsertBefore->getParent(); in createMemMoveLoop() local 294 Function *F = OrigBB->getParent(); in createMemMoveLoop() 323 new ICmpInst(OrigBB->getTerminator(), ICmpInst::ICMP_EQ, CopyLen, in createMemMoveLoop() 369 BasicBlock *OrigBB = InsertBefore->getParent(); in createMemSetLoop() local 370 Function *F = OrigBB->getParent(); in createMemSetLoop() 372 OrigBB->splitBasicBlock(InsertBefore, "split"); in createMemSetLoop() 376 IRBuilder<> Builder(OrigBB->getTerminator()); in createMemSetLoop() 386 OrigBB->getTerminator()->eraseFromParent(); in createMemSetLoop() 390 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0), OrigBB); in createMemSetLoop()
|
D | InlineFunction.cpp | 1414 auto *OrigBB = cast<BasicBlock>(Entry.first); in updateCallerBFI() local 1416 uint64_t Freq = CalleeBFI->getBlockFreq(OrigBB).getFrequency(); in updateCallerBFI() 1529 BasicBlock *OrigBB = TheCall->getParent(); in InlineFunction() local 1530 Function *Caller = OrigBB->getParent(); in InlineFunction() 1673 updateCallerBFI(OrigBB, VMap, IFI.CallerBFI, IFI.CalleeBFI, in InlineFunction() 1679 updateCalleeCount(IFI.CallerBFI, OrigBB, TheCall, CalledFunc, IFI.PSI); in InlineFunction() 2178 OrigBB->getInstList().splice(TheCall->getIterator(), in InlineFunction() 2227 OrigBB->splitBasicBlock(CreatedBranchToNormalDest->getIterator(), in InlineFunction() 2234 AfterCallBB = OrigBB->splitBasicBlock(TheCall->getIterator(), in InlineFunction() 2241 AfterCallBB, IFI.CallerBFI->getBlockFreq(OrigBB).getFrequency()); in InlineFunction() [all …]
|
D | LowerSwitch.cpp | 182 static void fixPhis(BasicBlock *SuccBB, BasicBlock *OrigBB, BasicBlock *NewBB, in fixPhis() argument 193 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis() 203 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis()
|
/external/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 350 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, in UpdatePHINodes() argument 355 for (BasicBlock::iterator I = OrigBB->begin(); isa<PHINode>(I); ) { in UpdatePHINodes() 474 void llvm::SplitLandingPadPredecessors(BasicBlock *OrigBB, in SplitLandingPadPredecessors() argument 480 assert(OrigBB->isLandingPad() && "Trying to split a non-landing pad!"); in SplitLandingPadPredecessors() 484 BasicBlock *NewBB1 = BasicBlock::Create(OrigBB->getContext(), in SplitLandingPadPredecessors() 485 OrigBB->getName() + Suffix1, in SplitLandingPadPredecessors() 486 OrigBB->getParent(), OrigBB); in SplitLandingPadPredecessors() 490 BranchInst *BI1 = BranchInst::Create(OrigBB, NewBB1); in SplitLandingPadPredecessors() 491 BI1->setDebugLoc(OrigBB->getFirstNonPHI()->getDebugLoc()); in SplitLandingPadPredecessors() 500 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1); in SplitLandingPadPredecessors() [all …]
|
D | InlineFunction.cpp | 1384 BasicBlock *OrigBB = TheCall->getParent(); in InlineFunction() local 1385 Function *Caller = OrigBB->getParent(); in InlineFunction() 1950 OrigBB->getInstList().splice(TheCall->getIterator(), in InlineFunction() 1999 OrigBB->splitBasicBlock(CreatedBranchToNormalDest->getIterator(), in InlineFunction() 2006 AfterCallBB = OrigBB->splitBasicBlock(TheCall->getIterator(), in InlineFunction() 2013 TerminatorInst *Br = OrigBB->getTerminator(); in InlineFunction() 2113 CalleeEntry->replaceAllUsesWith(OrigBB); // Update PHI nodes in InlineFunction() 2114 OrigBB->getInstList().splice(Br->getIterator(), CalleeEntry->getInstList()); in InlineFunction() 2117 OrigBB->getInstList().erase(Br); in InlineFunction()
|
D | LowerSwitch.cpp | 162 static void fixPhis(BasicBlock *SuccBB, BasicBlock *OrigBB, BasicBlock *NewBB, in fixPhis() argument 173 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis() 183 if (PN->getIncomingBlock(Idx) == OrigBB) { in fixPhis()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | BranchRelaxation.cpp | 230 MachineBasicBlock *OrigBB = MI.getParent(); in splitBlockBeforeInstr() local 234 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 235 MF->insert(++OrigBB->getIterator(), NewBB); in splitBlockBeforeInstr() 238 NewBB->splice(NewBB->end(), OrigBB, MI.getIterator(), OrigBB->end()); in splitBlockBeforeInstr() 244 TII->insertUnconditionalBranch(*OrigBB, NewBB, DebugLoc()); in splitBlockBeforeInstr() 249 NewBB->transferSuccessors(OrigBB); in splitBlockBeforeInstr() 250 OrigBB->addSuccessor(NewBB); in splitBlockBeforeInstr() 251 OrigBB->addSuccessor(DestBB); in splitBlockBeforeInstr() 256 OrigBB->updateTerminator(); in splitBlockBeforeInstr() 263 BlockInfo[OrigBB->getNumber()].Size = computeBlockSize(*OrigBB); in splitBlockBeforeInstr() [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerAggrCopies.cpp | 66 BasicBlock *OrigBB = ConvertedInst->getParent(); in convertMemCpyToLoop() local 71 OrigBB->getTerminator()->setSuccessor(0, LoopBB); in convertMemCpyToLoop() 72 IRBuilder<> Builder(OrigBB->getTerminator()); in convertMemCpyToLoop() 85 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0), OrigBB); in convertMemCpyToLoop() 136 BasicBlock *OrigBB = ConvertedInst->getParent(); in convertMemMoveToLoop() local 165 new ICmpInst(OrigBB->getTerminator(), ICmpInst::ICMP_EQ, CopyLen, in convertMemMoveToLoop() 211 BasicBlock *OrigBB = ConvertedInst->getParent(); in convertMemSetToLoop() local 216 OrigBB->getTerminator()->setSuccessor(0, LoopBB); in convertMemSetToLoop() 217 IRBuilder<> Builder(OrigBB->getTerminator()); in convertMemSetToLoop() 226 LoopIndex->addIncoming(ConstantInt::get(CopyLen->getType(), 0), OrigBB); in convertMemSetToLoop()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64BranchRelaxation.cpp | 225 MachineBasicBlock *OrigBB = MI->getParent(); in splitBlockBeforeInstr() local 229 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 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() 249 computeBlockSize(*OrigBB); in splitBlockBeforeInstr() 256 adjustBlockOffsets(*OrigBB); in splitBlockBeforeInstr()
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 725 MachineBasicBlock *OrigBB = MI->getParent(); in SplitBlockBeforeInstr() local 726 MachineFunction &MF = *OrigBB->getParent(); in SplitBlockBeforeInstr() 730 MF.CreateMachineBasicBlock(OrigBB->getBasicBlock()); in SplitBlockBeforeInstr() 731 MachineFunction::iterator MBBI = OrigBB; ++MBBI; in SplitBlockBeforeInstr() 735 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in SplitBlockBeforeInstr() 743 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB); in SplitBlockBeforeInstr() 745 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB) in SplitBlockBeforeInstr() 750 while (!OrigBB->succ_empty()) { in SplitBlockBeforeInstr() 751 MachineBasicBlock *Succ = *OrigBB->succ_begin(); in SplitBlockBeforeInstr() 752 OrigBB->removeSuccessor(Succ); in SplitBlockBeforeInstr() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/ |
D | MipsConstantIslandPass.cpp | 860 MachineBasicBlock *OrigBB = MI.getParent(); in splitBlockBeforeInstr() local 864 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 865 MachineFunction::iterator MBBI = ++OrigBB->getIterator(); in splitBlockBeforeInstr() 869 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 875 BuildMI(OrigBB, DebugLoc(), TII->get(Mips::Bimm16)).addMBB(NewBB); in splitBlockBeforeInstr() 879 NewBB->transferSuccessors(OrigBB); in splitBlockBeforeInstr() 882 OrigBB->addSuccessor(NewBB); in splitBlockBeforeInstr() 898 std::lower_bound(WaterList.begin(), WaterList.end(), OrigBB, in splitBlockBeforeInstr() 901 if (WaterBB == OrigBB) in splitBlockBeforeInstr() 904 WaterList.insert(IP, OrigBB); in splitBlockBeforeInstr() [all …]
|
/external/llvm/lib/Target/Mips/ |
D | MipsConstantIslandPass.cpp | 862 MachineBasicBlock *OrigBB = MI.getParent(); in splitBlockBeforeInstr() local 866 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 867 MachineFunction::iterator MBBI = ++OrigBB->getIterator(); in splitBlockBeforeInstr() 871 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 877 BuildMI(OrigBB, DebugLoc(), TII->get(Mips::Bimm16)).addMBB(NewBB); in splitBlockBeforeInstr() 881 NewBB->transferSuccessors(OrigBB); in splitBlockBeforeInstr() 884 OrigBB->addSuccessor(NewBB); in splitBlockBeforeInstr() 900 std::lower_bound(WaterList.begin(), WaterList.end(), OrigBB, in splitBlockBeforeInstr() 903 if (WaterBB == OrigBB) in splitBlockBeforeInstr() 906 WaterList.insert(IP, OrigBB); in splitBlockBeforeInstr() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 908 MachineBasicBlock *OrigBB = MI->getParent(); in splitBlockBeforeInstr() local 912 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 913 MachineFunction::iterator MBBI = ++OrigBB->getIterator(); in splitBlockBeforeInstr() 917 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 925 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB); in splitBlockBeforeInstr() 927 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)) in splitBlockBeforeInstr() 933 NewBB->transferSuccessors(OrigBB); in splitBlockBeforeInstr() 936 OrigBB->addSuccessor(NewBB); in splitBlockBeforeInstr() 952 std::lower_bound(WaterList.begin(), WaterList.end(), OrigBB, in splitBlockBeforeInstr() 955 if (WaterBB == OrigBB) in splitBlockBeforeInstr() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 980 MachineBasicBlock *OrigBB = MI->getParent(); in splitBlockBeforeInstr() local 984 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock()); in splitBlockBeforeInstr() 985 MachineFunction::iterator MBBI = ++OrigBB->getIterator(); in splitBlockBeforeInstr() 989 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end()); in splitBlockBeforeInstr() 997 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB); in splitBlockBeforeInstr() 999 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB) in splitBlockBeforeInstr() 1004 NewBB->transferSuccessors(OrigBB); in splitBlockBeforeInstr() 1007 OrigBB->addSuccessor(NewBB); in splitBlockBeforeInstr() 1023 std::lower_bound(WaterList.begin(), WaterList.end(), OrigBB, in splitBlockBeforeInstr() 1026 if (WaterBB == OrigBB) in splitBlockBeforeInstr() [all …]
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | IndirectCallPromotion.cpp | 381 BasicBlock *OrigBB, in fixupPHINodeForUnwind() argument 388 int IX = PHI->getBasicBlockIndex(OrigBB); in fixupPHINodeForUnwind() 403 BasicBlock *OrigBB, in fixupPHINodeForNormalDest() argument 410 int IX = PHI->getBasicBlockIndex(OrigBB); in fixupPHINodeForNormalDest() 416 PHI->addIncoming(NewInst, OrigBB); in fixupPHINodeForNormalDest()
|
/external/llvm/lib/Transforms/Scalar/ |
D | PlaceSafepoints.cpp | 614 BasicBlock *OrigBB = InsertBefore->getParent(); in INITIALIZE_PASS_DEPENDENCY() local 633 if (Before == OrigBB->begin()) in INITIALIZE_PASS_DEPENDENCY() 639 assert(After != OrigBB->end() && "must have successor"); in INITIALIZE_PASS_DEPENDENCY() 655 BasicBlock::iterator Start = IsBegin ? OrigBB->begin() : std::next(Before); in INITIALIZE_PASS_DEPENDENCY()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | PlaceSafepoints.cpp | 627 BasicBlock *OrigBB = InsertBefore->getParent(); in INITIALIZE_PASS_DEPENDENCY() local 646 if (Before == OrigBB->begin()) in INITIALIZE_PASS_DEPENDENCY() 652 assert(After != OrigBB->end() && "must have successor"); in INITIALIZE_PASS_DEPENDENCY() 668 BasicBlock::iterator Start = IsBegin ? OrigBB->begin() : std::next(Before); in INITIALIZE_PASS_DEPENDENCY()
|
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/ |
D | BasicBlockUtils.h | 193 void SplitLandingPadPredecessors(BasicBlock *OrigBB,ArrayRef<BasicBlock*> Preds,
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | BasicBlockUtils.h | 215 void SplitLandingPadPredecessors(BasicBlock *OrigBB,
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | BasicBlockUtils.h | 219 void SplitLandingPadPredecessors(BasicBlock *OrigBB,
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1298 BasicBlock *OrigBB = CI->getParent(); in PerformHeapAllocSRoA() local 1300 OrigBB->splitBasicBlock(CI->getIterator(), "malloc_cont"); in PerformHeapAllocSRoA() 1304 BasicBlock *NullPtrBlock = BasicBlock::Create(OrigBB->getContext(), in PerformHeapAllocSRoA() 1306 OrigBB->getParent()); in PerformHeapAllocSRoA() 1310 OrigBB->getTerminator()->eraseFromParent(); in PerformHeapAllocSRoA() 1311 BranchInst::Create(NullPtrBlock, ContBB, RunningOr, OrigBB); in PerformHeapAllocSRoA() 1320 OrigBB->getParent()); in PerformHeapAllocSRoA() 1322 OrigBB->getParent()); in PerformHeapAllocSRoA()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 1342 BasicBlock *OrigBB = CI->getParent(); in PerformHeapAllocSRoA() local 1344 OrigBB->splitBasicBlock(CI->getIterator(), "malloc_cont"); in PerformHeapAllocSRoA() 1348 BasicBlock *NullPtrBlock = BasicBlock::Create(OrigBB->getContext(), in PerformHeapAllocSRoA() 1350 OrigBB->getParent()); in PerformHeapAllocSRoA() 1354 OrigBB->getTerminator()->eraseFromParent(); in PerformHeapAllocSRoA() 1355 BranchInst::Create(NullPtrBlock, ContBB, RunningOr, OrigBB); in PerformHeapAllocSRoA() 1364 OrigBB->getParent()); in PerformHeapAllocSRoA() 1366 OrigBB->getParent()); in PerformHeapAllocSRoA()
|