Home
last modified time | relevance | path

Searched refs:FBB (Results 1 – 25 of 87) sorted by relevance

1234

/external/llvm/lib/CodeGen/
DEarlyIfConversion.cpp97 MachineBasicBlock *FBB; member in __anonfc1f82480111::SSAIfConv
101 bool isTriangle() const { return TBB == Tail || FBB == Tail; } in isTriangle()
107 MachineBasicBlock *getFPred() const { return FBB == Tail ? Head : FBB; } in getFPred()
342 TBB = FBB = Tail = nullptr; in canConvertIf()
389 if (TII->AnalyzeBranch(*Head, TBB, FBB, Cond)) { in canConvertIf()
402 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf()
435 if (FBB != Tail && !canSpeculateInstrs(FBB)) in canConvertIf()
509 assert(Head && Tail && TBB && FBB && "Call canConvertIf first."); in convertIf()
520 if (FBB != Tail) in convertIf()
521 Head->splice(InsertionPoint, FBB, FBB->begin(), FBB->getFirstTerminator()); in convertIf()
[all …]
DBranchFolding.cpp212 MachineBasicBlock *MBB = I, *TBB = nullptr, *FBB = nullptr; in OptimizeFunction() local
214 if (!TII->AnalyzeBranch(*MBB, TBB, FBB, Cond, true)) in OptimizeFunction()
215 MadeChange |= MBB->CorrectExtraCFGEdges(TBB, FBB, !Cond.empty()); in OptimizeFunction()
478 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in FixTail() local
482 !TII->AnalyzeBranch(*CurMBB, TBB, FBB, Cond, true)) { in FixTail()
484 if (TBB == NextBB && !Cond.empty() && !FBB) { in FixTail()
984 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in TailMergeBlocks() local
986 if (!TII->AnalyzeBranch(*PBB, TBB, FBB, Cond, true)) { in TailMergeBlocks()
994 if (!FBB) in TailMergeBlocks()
995 FBB = std::next(MachineFunction::iterator(PBB)); in TailMergeBlocks()
[all …]
DMachineBlockPlacement.cpp899 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; // For AnalyzeBranch. in buildCFGChains() local
900 if (!TII->AnalyzeBranch(*BB, TBB, FBB, Cond) || !FI->canFallThrough()) in buildCFGChains()
1013 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; // For AnalyzeBranch. in buildCFGChains() local
1014 if (!TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond)) { in buildCFGChains()
1026 if (!Cond.empty() && (!FBB || FBB == ChainBB)) { in buildCFGChains()
1030 TBB = FBB = nullptr; in buildCFGChains()
1031 if (TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond)) { in buildCFGChains()
1033 TBB = FBB = nullptr; in buildCFGChains()
1039 if (TBB && !Cond.empty() && FBB && in buildCFGChains()
1040 MBPI->getEdgeWeight(PrevBB, FBB) > MBPI->getEdgeWeight(PrevBB, TBB) && in buildCFGChains()
[all …]
DMachineBasicBlock.cpp388 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in updateTerminator() local
391 bool B = TII->AnalyzeBranch(*this, TBB, FBB, Cond); in updateTerminator()
422 if (FBB) { in updateTerminator()
430 TII->InsertBranch(*this, FBB, nullptr, Cond, dl); in updateTerminator()
431 } else if (isLayoutSuccessor(FBB)) { in updateTerminator()
637 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in canFallThrough() local
640 if (TII->AnalyzeBranch(*this, TBB, FBB, Cond)) { in canFallThrough()
655 MachineFunction::iterator(FBB) == Fallthrough) in canFallThrough()
664 return FBB == nullptr; in canFallThrough()
685 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in SplitCriticalEdge() local
[all …]
/external/llvm/lib/Target/Mips/
DMipsInstrInfo.cpp88 MachineBasicBlock *&FBB, in AnalyzeBranch() argument
92 BranchType BT = AnalyzeBranch(MBB, TBB, FBB, Cond, AllowModify, BranchInstrs); in AnalyzeBranch()
117 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, in InsertBranch() argument
131 if (FBB) { in InsertBranch()
133 BuildMI(&MBB, DL, get(UncondBrOpc)).addMBB(FBB); in InsertBranch()
179 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, in AnalyzeBranch() argument
192 TBB = FBB = nullptr; in AnalyzeBranch()
256 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
DMipsInstrInfo.h55 MachineBasicBlock *&FBB,
62 MachineBasicBlock *FBB,
70 MachineBasicBlock *&FBB,
/external/llvm/lib/Target/MSP430/
DMSP430InstrInfo.cpp174 MachineBasicBlock *&FBB, in AnalyzeBranch() argument
211 FBB = nullptr; in AnalyzeBranch()
235 FBB = TBB; in AnalyzeBranch()
264 MachineBasicBlock *FBB, in InsertBranch() argument
274 assert(!FBB && "Unconditional branch with multiple successors!"); in InsertBranch()
284 if (FBB) { in InsertBranch()
286 BuildMI(&MBB, DL, get(MSP430::JMP)).addMBB(FBB); in InsertBranch()
DMSP430InstrInfo.h79 MachineBasicBlock *&TBB, MachineBasicBlock *&FBB,
85 MachineBasicBlock *FBB,
/external/llvm/lib/Target/BPF/
DBPFInstrInfo.cpp80 MachineBasicBlock *&FBB, in AnalyzeBranch() argument
112 FBB = 0; in AnalyzeBranch()
135 MachineBasicBlock *FBB, in InsertBranch() argument
143 assert(!FBB && "Unconditional branch with multiple successors!"); in InsertBranch()
DBPFInstrInfo.h48 MachineBasicBlock *&FBB,
54 MachineBasicBlock *FBB,
/external/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp169 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, in AnalyzeBranch() argument
206 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
250 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, in InsertBranch() argument
258 if (!FBB) { in InsertBranch()
269 BuildMI(&MBB, DL, get(NVPTX::GOTO)).addMBB(FBB); in InsertBranch()
DNVPTXInstrInfo.h64 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB,
68 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB,
/external/llvm/lib/Target/AArch64/
DAArch64A53Fix835769.cpp131 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in getBBFallenThrough() local
136 if (S == PrevBB && !TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond) && in getBBFallenThrough()
137 !TBB && !FBB) in getBBFallenThrough()
DAArch64BranchRelaxation.cpp407 MachineBasicBlock *TBB, *FBB; in fixupConditionalBranch() local
409 TII->AnalyzeBranch(*MBB, TBB, FBB, Cond, false); in fixupConditionalBranch()
421 MBB->replaceSuccessor(FBB, NewBB); in fixupConditionalBranch()
422 NewBB->addSuccessor(FBB); in fixupConditionalBranch()
DAArch64InstrInfo.h137 MachineBasicBlock *&FBB,
142 MachineBasicBlock *FBB,
/external/llvm/lib/Target/Sparc/
DSparcInstrInfo.cpp129 MachineBasicBlock *&FBB, in AnalyzeBranch() argument
163 FBB = nullptr; in AnalyzeBranch()
217 FBB = TBB; in AnalyzeBranch()
231 MachineBasicBlock *FBB, in InsertBranch() argument
239 assert(!FBB && "Unconditional branch with multiple successors!"); in InsertBranch()
251 if (!FBB) in InsertBranch()
254 BuildMI(&MBB, DL, get(SP::BA)).addMBB(FBB); in InsertBranch()
DSparcInstrInfo.h69 MachineBasicBlock *&FBB,
76 MachineBasicBlock *FBB,
/external/llvm/lib/Target/XCore/
DXCoreInstrInfo.h54 MachineBasicBlock *&FBB,
59 MachineBasicBlock *FBB,
DXCoreInstrInfo.cpp195 MachineBasicBlock *&FBB, in AnalyzeBranch() argument
254 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
283 MachineBasicBlock *FBB, in InsertBranch() argument
291 if (!FBB) { // One way branch. in InsertBranch()
309 BuildMI(&MBB, DL, get(XCore::BRFU_lu6)).addMBB(FBB); in InsertBranch()
/external/mesa3d/src/gallium/drivers/radeon/
DR600InstrInfo.cpp179 MachineBasicBlock *&FBB, in AnalyzeBranch() argument
239 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
263 MachineBasicBlock *FBB, in InsertBranch() argument
269 if (FBB == 0) { in InsertBranch()
292 BuildMI(&MBB, DL, get(AMDGPU::JUMP)).addMBB(FBB).addReg(0); in InsertBranch()
DR600InstrInfo.h68 bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB,
71 …unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, cons…
/external/llvm/unittests/IR/
DIRBuilderTest.cpp85 BasicBlock *FBB = BasicBlock::Create(Ctx, "", F); in TEST_F() local
87 BranchInst *BI = Builder.CreateCondBr(Builder.getTrue(), TBB, FBB); in TEST_F()
92 EXPECT_EQ(FBB, TI->getSuccessor(1)); in TEST_F()
96 BI = Builder.CreateCondBr(Builder.getTrue(), TBB, FBB, Weights); in TEST_F()
101 EXPECT_EQ(FBB, TI->getSuccessor(1)); in TEST_F()
/external/llvm/lib/Target/SystemZ/
DSystemZInstrInfo.h147 MachineBasicBlock *&FBB,
152 MachineBasicBlock *FBB,
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.h139 MachineBasicBlock *&FBB,
144 MachineBasicBlock *FBB,
/external/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.h63 MachineBasicBlock *&FBB,
70 MachineBasicBlock *FBB,

1234