Home
last modified time | relevance | path

Searched refs:NextBB (Results 1 – 25 of 30) sorted by relevance

12

/external/llvm/lib/Transforms/Utils/
DEvaluator.cpp193 BasicBlock *&NextBB) { in EvaluateBlock() argument
477 NextBB = BI->getSuccessor(0); in EvaluateBlock()
483 NextBB = BI->getSuccessor(!Cond->getZExtValue()); in EvaluateBlock()
489 NextBB = SI->findCaseValue(Val).getCaseSuccessor(); in EvaluateBlock()
493 NextBB = BA->getBasicBlock(); in EvaluateBlock()
497 NextBB = nullptr; in EvaluateBlock()
523 NextBB = II->getNormalDest(); in EvaluateBlock()
562 BasicBlock *NextBB = nullptr; // Initialized to avoid compiler warnings. in EvaluateFunction() local
565 if (!EvaluateBlock(CurInst, NextBB)) in EvaluateFunction()
568 if (!NextBB) { in EvaluateFunction()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DEvaluator.cpp329 BasicBlock *&NextBB) { in EvaluateBlock() argument
612 NextBB = BI->getSuccessor(0); in EvaluateBlock()
618 NextBB = BI->getSuccessor(!Cond->getZExtValue()); in EvaluateBlock()
624 NextBB = SI->findCaseValue(Val)->getCaseSuccessor(); in EvaluateBlock()
628 NextBB = BA->getBasicBlock(); in EvaluateBlock()
632 NextBB = nullptr; in EvaluateBlock()
659 NextBB = II->getNormalDest(); in EvaluateBlock()
698 BasicBlock *NextBB = nullptr; // Initialized to avoid compiler warnings. in EvaluateFunction() local
701 if (!EvaluateBlock(CurInst, NextBB)) in EvaluateFunction()
704 if (!NextBB) { in EvaluateFunction()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIInsertSkips.cpp59 bool skipIfDead(MachineInstr &MI, MachineBasicBlock &NextBB);
149 bool SIInsertSkips::skipIfDead(MachineInstr &MI, MachineBasicBlock &NextBB) { in skipIfDead() argument
163 .addMBB(&NextBB); in skipIfDead()
441 MachineFunction::iterator NextBB; in runOnMachineFunction() local
446 BI != BE; BI = NextBB) { in runOnMachineFunction()
447 NextBB = std::next(BI); in runOnMachineFunction()
493 if (NextBB != BE && skipIfDead(MI, *NextBB)) { in runOnMachineFunction()
495 NextBB = std::next(BI); in runOnMachineFunction()
DSILowerControlFlow.cpp527 MachineFunction::iterator NextBB; in runOnMachineFunction() local
529 BI != BE; BI = NextBB) { in runOnMachineFunction()
530 NextBB = std::next(BI); in runOnMachineFunction()
/external/llvm/lib/Target/AMDGPU/
DSILowerControlFlow.cpp79 bool skipIfDead(MachineInstr &MI, MachineBasicBlock &NextBB);
211 bool SILowerControlFlow::skipIfDead(MachineInstr &MI, MachineBasicBlock &NextBB) { in skipIfDead() argument
220 SkipBB->addSuccessor(&NextBB); in skipIfDead()
226 .addMBB(&NextBB); in skipIfDead()
696 MachineFunction::iterator NextBB; in runOnMachineFunction() local
699 BI != BE; BI = NextBB) { in runOnMachineFunction()
700 NextBB = std::next(BI); in runOnMachineFunction()
751 if (skipIfDead(MI, *NextBB)) { in runOnMachineFunction()
752 NextBB = std::next(BI); in runOnMachineFunction()
762 if (skipIfDead(MI, *NextBB)) { in runOnMachineFunction()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64BranchRelaxation.cpp147 auto NextBB = std::next(MBBI); in BBHasFallthrough() local
148 if (NextBB == MBB->getParent()->end()) in BBHasFallthrough()
152 if (S == &*NextBB) in BBHasFallthrough()
433 MachineBasicBlock *NextBB = &*std::next(MachineFunction::iterator(MBB)); in fixupConditionalBranch() local
437 << NextBB->getNumber() << "\n"); in fixupConditionalBranch()
448 MIB.addMBB(NextBB); in fixupConditionalBranch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DInlineCost.cpp271 void findDeadBlocks(BasicBlock *CurrBB, BasicBlock *NextBB);
1865 void CallAnalyzer::findDeadBlocks(BasicBlock *CurrBB, BasicBlock *NextBB) { in findDeadBlocks() argument
1881 if (Succ == NextBB || !IsNewlyDead(Succ)) in findDeadBlocks()
2003 BasicBlock *NextBB = BI->getSuccessor(SimpleCond->isZero() ? 1 : 0); in analyze() local
2004 BBWorklist.insert(NextBB); in analyze()
2005 KnownSuccessors[BB] = NextBB; in analyze()
2006 findDeadBlocks(BB, NextBB); in analyze()
2014 BasicBlock *NextBB = SI->findCaseValue(SimpleCond)->getCaseSuccessor(); in analyze() local
2015 BBWorklist.insert(NextBB); in analyze()
2016 KnownSuccessors[BB] = NextBB; in analyze()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DBranchRelaxation.cpp385 MachineBasicBlock &NextBB = *std::next(MachineFunction::iterator(MBB)); in fixupConditionalBranch() local
389 << printMBBReference(NextBB) << '\n'); in fixupConditionalBranch()
393 insertBranch(MBB, &NextBB, TBB, Cond); in fixupConditionalBranch()
DTailDuplicator.cpp731 MachineBasicBlock *NextBB = PredBB->getNextNode(); in duplicateSimpleBB() local
739 PredTBB = NextBB; in duplicateSimpleBB()
741 PredFBB = NextBB; in duplicateSimpleBB()
756 if (PredFBB == NextBB) in duplicateSimpleBB()
758 if (PredTBB == NextBB && PredFBB == nullptr) in duplicateSimpleBB()
DExpandMemCmp.cpp412 BasicBlock *NextBB = (BlockIndex == (LoadCmpBlocks.size() - 1)) in emitLoadCompareBlockMultipleLoads() local
417 BranchInst *CmpBr = BranchInst::Create(ResBlock.BB, NextBB, Cmp); in emitLoadCompareBlockMultipleLoads()
483 BasicBlock *NextBB = (BlockIndex == (LoadCmpBlocks.size() - 1)) in emitLoadCompareBlock() local
488 BranchInst *CmpBr = BranchInst::Create(NextBB, ResBlock.BB, Cmp); in emitLoadCompareBlock()
DBranchFolding.cpp472 MachineBasicBlock *NextBB = &*I; in FixTail() local
473 if (TBB == NextBB && !Cond.empty() && !FBB) { in FixTail()
1735 MachineBasicBlock *NextBB = &*std::next(MBB->getIterator()); in OptimizeBlock() local
1737 TII->insertBranch(*MBB, NextBB, nullptr, CurCond, DebugLoc()); in OptimizeBlock()
DMachineBlockPlacement.cpp2634 MachineBasicBlock *NextBB = &*NextFI; in buildCFGChains() local
2639 << getBlockName(BB) << " -> " << getBlockName(NextBB) in buildCFGChains()
2641 Chain->merge(NextBB, nullptr); in buildCFGChains()
2646 BB = NextBB; in buildCFGChains()
/external/llvm/lib/CodeGen/
DTailDuplicator.cpp673 MachineBasicBlock *NextBB = &*std::next(PredBB->getIterator()); in duplicateSimpleBB() local
681 PredTBB = NextBB; in duplicateSimpleBB()
683 PredFBB = NextBB; in duplicateSimpleBB()
698 if (PredFBB == NextBB) in duplicateSimpleBB()
700 if (PredTBB == NextBB && PredFBB == nullptr) in duplicateSimpleBB()
DMachineBlockPlacement.cpp1425 MachineBasicBlock *NextBB = &*NextFI; in buildCFGChains() local
1430 << getBlockName(BB) << " -> " << getBlockName(NextBB) in buildCFGChains()
1432 Chain->merge(NextBB, nullptr); in buildCFGChains()
1434 BB = NextBB; in buildCFGChains()
DBranchFolding.cpp512 MachineBasicBlock *NextBB = &*I; in FixTail() local
513 if (TBB == NextBB && !Cond.empty() && !FBB) { in FixTail()
1563 MachineBasicBlock *NextBB = &*std::next(MBB->getIterator()); in OptimizeBlock() local
1565 TII->InsertBranch(*MBB, NextBB, nullptr, CurCond, DebugLoc()); in OptimizeBlock()
/external/llvm/include/llvm/Transforms/Utils/
DEvaluator.h62 bool EvaluateBlock(BasicBlock::iterator CurInst, BasicBlock *&NextBB);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DEvaluator.h63 bool EvaluateBlock(BasicBlock::iterator CurInst, BasicBlock *&NextBB);
/external/llvm/lib/Target/Mips/
DMipsConstantIslandPass.cpp597 MachineBasicBlock *NextBB = &*std::next(MBBI); in BBHasFallthrough() local
600 if (*I == NextBB) in BBHasFallthrough()
1630 MachineBasicBlock *NextBB = &*++MBB->getIterator(); in fixupConditionalBr() local
1634 << NextBB->getNumber() << "\n"); in fixupConditionalBr()
1641 .addMBB(NextBB); in fixupConditionalBr()
1644 .addMBB(NextBB); in fixupConditionalBr()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsConstantIslandPass.cpp596 MachineBasicBlock *NextBB = &*std::next(MBBI); in BBHasFallthrough() local
599 if (*I == NextBB) in BBHasFallthrough()
1609 MachineBasicBlock *NextBB = &*++MBB->getIterator(); in fixupConditionalBr() local
1613 << printMBBReference(*NextBB) << "\n"); in fixupConditionalBr()
1620 .addMBB(NextBB); in fixupConditionalBr()
1623 .addMBB(NextBB); in fixupConditionalBr()
/external/llvm/lib/Transforms/Scalar/
DTailRecursionElimination.cpp293 auto *NextBB = WorklistUnescaped.pop_back_val(); in markTails() local
294 if (Visited[NextBB] == UNESCAPED) { in markTails()
295 BB = NextBB; in markTails()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DTailRecursionElimination.cpp300 auto *NextBB = WorklistUnescaped.pop_back_val(); in markTails() local
301 if (Visited[NextBB] == UNESCAPED) { in markTails()
302 BB = NextBB; in markTails()
/external/llvm/lib/Target/ARM/
DARMConstantIslandPass.cpp670 MachineBasicBlock *NextBB = &*std::next(MBBI); in BBHasFallthrough() local
671 if (std::find(MBB->succ_begin(), MBB->succ_end(), NextBB) == MBB->succ_end()) in BBHasFallthrough()
1770 MachineBasicBlock *NextBB = &*++MBB->getIterator(); in fixupConditionalBr() local
1774 << NextBB->getNumber() << "\n"); in fixupConditionalBr()
1779 .addMBB(NextBB).addImm(CC).addReg(CCReg); in fixupConditionalBr()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMConstantIslandPass.cpp624 MachineBasicBlock *NextBB = &*std::next(MBBI); in BBHasFallthrough() local
625 if (!MBB->isSuccessor(NextBB)) in BBHasFallthrough()
1709 MachineBasicBlock *NextBB = &*++MBB->getIterator(); in fixupConditionalBr() local
1713 << printMBBReference(*NextBB) << "\n"); in fixupConditionalBr()
1718 .addMBB(NextBB).addImm(CC).addReg(CCReg); in fixupConditionalBr()
/external/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp1137 BasicBlock *NextBB = BasicBlock::Create(*DFS.Ctx, "", F); in loadShadow() local
1138 DT.addNewBlock(NextBB, LastBr->getParent()); in loadShadow()
1139 IRBuilder<> NextIRB(NextBB); in loadShadow()
1144 LastBr->setSuccessor(0, NextBB); in loadShadow()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp1276 BasicBlock *NextBB = BasicBlock::Create(*DFS.Ctx, "", F); in loadShadow() local
1277 DT.addNewBlock(NextBB, LastBr->getParent()); in loadShadow()
1278 IRBuilder<> NextIRB(NextBB); in loadShadow()
1284 LastBr->setSuccessor(0, NextBB); in loadShadow()

12