Searched refs:OrigBB (Results 1 - 18 of 18) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
H A DBasicBlockUtils.cpp394 /// UpdatePHINodes - Update the PHI nodes in OrigBB to include the values coming
396 static void UpdatePHINodes(BasicBlock *OrigBB, BasicBlock *NewBB, argument
399 // Otherwise, create a new PHI node in NewBB for each PHI node in OrigBB.
401 for (BasicBlock::iterator I = OrigBB->begin(); isa<PHINode>(I); ) {
499 /// OrigBB, by introducing two new basic blocks into the function. One of those
501 /// block gets the remaining predecessors of OrigBB. The landingpad instruction
502 /// OrigBB is clone into both of the new basic blocks. The new blocks are given
511 void llvm::SplitLandingPadPredecessors(BasicBlock *OrigBB, argument
516 assert(OrigBB->isLandingPad() && "Trying to split a non-landing pad!");
518 // Create a new basic block for OrigBB'
[all...]
H A DInlineFunction.cpp913 BasicBlock *OrigBB = TheCall->getParent(); local
914 Function *Caller = OrigBB->getParent();
1157 OrigBB->getInstList().splice(TheCall, FirstNewBlock->getInstList(),
1201 AfterCallBB = OrigBB->splitBasicBlock(NewBr,
1208 AfterCallBB = OrigBB->splitBasicBlock(TheCall,
1215 TerminatorInst *Br = OrigBB->getTerminator();
1299 CalleeEntry->replaceAllUsesWith(OrigBB); // Update PHI nodes
1300 OrigBB->getInstList().splice(Br, CalleeEntry->getInstList());
1303 OrigBB->getInstList().erase(Br);
/external/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp66 BasicBlock *OrigBB = ConvertedInst->getParent(); local
71 OrigBB->getTerminator()->setSuccessor(0, LoopBB);
72 IRBuilder<> Builder(OrigBB->getTerminator());
85 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0), OrigBB); local
136 BasicBlock *OrigBB = ConvertedInst->getParent(); local
165 new ICmpInst(OrigBB->getTerminator(), ICmpInst::ICMP_EQ, CopyLen,
211 BasicBlock *OrigBB = ConvertedInst->getParent(); local
216 OrigBB->getTerminator()->setSuccessor(0, LoopBB);
217 IRBuilder<> Builder(OrigBB->getTerminator());
226 LoopIndex->addIncoming(ConstantInt::get(CopyLen->getType(), 0), OrigBB);
[all...]
/external/llvm/lib/Transforms/Utils/
H A DBasicBlockUtils.cpp348 /// 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.
355 for (BasicBlock::iterator I = OrigBB->begin(); isa<PHINode>(I); ) {
474 void llvm::SplitLandingPadPredecessors(BasicBlock *OrigBB, argument
480 assert(OrigBB->isLandingPad() && "Trying to split a non-landing pad!");
482 // Create a new basic block for OrigBB's predecessors listed in Preds. Insert
484 BasicBlock *NewBB1 = BasicBlock::Create(OrigBB->getContext(),
485 OrigBB->getName() + Suffix1,
486 OrigBB
[all...]
H A DInlineFunction.cpp1384 BasicBlock *OrigBB = TheCall->getParent(); local
1385 Function *Caller = OrigBB->getParent();
1950 OrigBB->getInstList().splice(TheCall->getIterator(),
1999 OrigBB->splitBasicBlock(CreatedBranchToNormalDest->getIterator(),
2006 AfterCallBB = OrigBB->splitBasicBlock(TheCall->getIterator(),
2013 TerminatorInst *Br = OrigBB->getTerminator();
2113 CalleeEntry->replaceAllUsesWith(OrigBB); // Update PHI nodes
2114 OrigBB->getInstList().splice(Br->getIterator(), CalleeEntry->getInstList());
2117 OrigBB->getInstList().erase(Br);
H A DLowerSwitch.cpp162 static void fixPhis(BasicBlock *SuccBB, BasicBlock *OrigBB, BasicBlock *NewBB, argument
173 if (PN->getIncomingBlock(Idx) == OrigBB) {
183 if (PN->getIncomingBlock(Idx) == OrigBB) {
/external/llvm/lib/Target/AArch64/
H A DAArch64BranchRelaxation.cpp225 MachineBasicBlock *OrigBB = MI->getParent(); local
227 // Create a new MBB for the code after the OrigBB.
229 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock());
230 MF->insert(++OrigBB->getIterator(), 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);
244 // Figure out how large the OrigBB is. As the first half of the original
249 computeBlockSize(*OrigBB);
[all...]
/external/llvm/lib/Target/Mips/
H A DMipsConstantIslandPass.cpp862 MachineBasicBlock *OrigBB = MI.getParent(); local
864 // Create a new MBB for the code after the OrigBB.
866 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock());
867 MachineFunction::iterator MBBI = ++OrigBB->getIterator();
871 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end());
873 // Add an unconditional branch from OrigBB to NewBB.
877 BuildMI(OrigBB, DebugLoc(), TII->get(Mips::Bimm16)).addMBB(NewBB);
880 // Update the CFG. All succs of OrigBB are now succs of NewBB.
881 NewBB->transferSuccessors(OrigBB);
[all...]
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
H A DARMConstantIslandPass.cpp725 MachineBasicBlock *OrigBB = MI->getParent(); local
726 MachineFunction &MF = *OrigBB->getParent();
728 // Create a new MBB for the code after the OrigBB.
730 MF.CreateMachineBasicBlock(OrigBB->getBasicBlock());
731 MachineFunction::iterator MBBI = OrigBB; ++MBBI;
735 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end());
737 // Add an unconditional branch from OrigBB to NewBB.
743 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB);
745 BuildMI(OrigBB, DebugLo
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DPlaceSafepoints.cpp614 BasicBlock *OrigBB = InsertBefore->getParent(); local
633 if (Before == OrigBB->begin())
639 assert(After != OrigBB->end() && "must have successor");
655 BasicBlock::iterator Start = IsBegin ? OrigBB->begin() : std::next(Before);
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/
H A DBasicBlockUtils.h181 /// OrigBB, by introducing two new basic blocks into the function. One of those
183 /// block gets the remaining predecessors of OrigBB. The landingpad instruction
184 /// OrigBB is clone into both of the new basic blocks. The new blocks are given
193 void SplitLandingPadPredecessors(BasicBlock *OrigBB,ArrayRef<BasicBlock*> Preds,
/external/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp376 // OrigBB (the MergeBB after if-then-else splitting). After moving the invoke
377 // instructions to its own BB, OrigBB is no longer the predecessor block of BB.
381 BasicBlock *OrigBB,
388 int IX = PHI->getBasicBlockIndex(OrigBB);
399 // OrigBB (the MergeBB after if-then-else splitting). After moving the invoke
403 BasicBlock *OrigBB,
410 int IX = PHI->getBasicBlockIndex(OrigBB);
416 PHI->addIncoming(NewInst, OrigBB);
380 fixupPHINodeForUnwind(Instruction *Inst, BasicBlock *BB, BasicBlock *OrigBB, BasicBlock *IndirectCallBB, BasicBlock *DirectCallBB) argument
402 fixupPHINodeForNormalDest(Instruction *Inst, BasicBlock *BB, BasicBlock *OrigBB, BasicBlock *IndirectCallBB, Instruction *NewInst) argument
/external/llvm/include/llvm/Transforms/Utils/
H A DBasicBlockUtils.h203 /// This method transforms the landing pad, OrigBB, by introducing two new basic
206 /// predecessors of OrigBB. The landingpad instruction OrigBB is clone into both
215 void SplitLandingPadPredecessors(BasicBlock *OrigBB,
/external/llvm/lib/Target/ARM/
H A DARMConstantIslandPass.cpp980 MachineBasicBlock *OrigBB = MI->getParent(); local
982 // Create a new MBB for the code after the OrigBB.
984 MF->CreateMachineBasicBlock(OrigBB->getBasicBlock());
985 MachineFunction::iterator MBBI = ++OrigBB->getIterator();
989 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end());
991 // Add an unconditional branch from OrigBB to NewBB.
997 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB);
999 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB)
1003 // Update the CFG. All succs of OrigBB ar
[all...]
/external/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp1298 BasicBlock *OrigBB = CI->getParent(); local
1300 OrigBB->splitBasicBlock(CI->getIterator(), "malloc_cont");
1304 BasicBlock *NullPtrBlock = BasicBlock::Create(OrigBB->getContext(),
1306 OrigBB->getParent());
1308 // Remove the uncond branch from OrigBB to ContBB, turning it into a cond
1310 OrigBB->getTerminator()->eraseFromParent();
1311 BranchInst::Create(NullPtrBlock, ContBB, RunningOr, OrigBB);
1320 OrigBB->getParent());
1322 OrigBB->getParent());
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
H A DGlobalOpt.cpp1360 BasicBlock *OrigBB = CI->getParent(); local
1361 BasicBlock *ContBB = OrigBB->splitBasicBlock(CI, "malloc_cont");
1365 BasicBlock *NullPtrBlock = BasicBlock::Create(OrigBB->getContext(),
1367 OrigBB->getParent());
1369 // Remove the uncond branch from OrigBB to ContBB, turning it into a cond
1371 OrigBB->getTerminator()->eraseFromParent();
1372 BranchInst::Create(NullPtrBlock, ContBB, RunningOr, OrigBB);
1381 OrigBB->getParent());
1383 OrigBB->getParent());
/external/clang/lib/CodeGen/
H A DCGExprComplex.cpp675 llvm::BasicBlock *OrigBB = Branch->getParent(); local
700 RealPHI->addIncoming(ResR, OrigBB);
704 ImagPHI->addIncoming(ResI, OrigBB);
/external/llvm/lib/CodeGen/
H A DRegisterCoalescer.cpp2849 const MachineBasicBlock *OrigBB = Copy.getParent(); local
2858 if (&MI == &Copy || !MI.isCopyLike() || MI.getParent() != OrigBB)

Completed in 1221 milliseconds