Home
last modified time | relevance | path

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

12345

/external/llvm/lib/CodeGen/
DEarlyIfConversion.cpp97 MachineBasicBlock *FBB; member in __anonbdb953a90111::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()
518 assert(Head && Tail && TBB && FBB && "Call canConvertIf first."); in convertIf()
529 if (FBB != Tail) in convertIf()
530 Head->splice(InsertionPoint, FBB, FBB->begin(), FBB->getFirstTerminator()); in convertIf()
[all …]
DBranchFolding.cpp218 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in OptimizeFunction() local
220 if (!TII->AnalyzeBranch(MBB, TBB, FBB, Cond, true)) in OptimizeFunction()
221 MadeChange |= MBB.CorrectExtraCFGEdges(TBB, FBB, !Cond.empty()); in OptimizeFunction()
488 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in FixTail() local
492 !TII->AnalyzeBranch(*CurMBB, TBB, FBB, Cond, true)) { in FixTail()
494 if (TBB == NextBB && !Cond.empty() && !FBB) { in FixTail()
999 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in TailMergeBlocks() local
1001 if (!TII->AnalyzeBranch(*PBB, TBB, FBB, Cond, true)) { in TailMergeBlocks()
1009 if (!FBB) { in TailMergeBlocks()
1012 FBB = &*Next; in TailMergeBlocks()
[all …]
DMachineBlockPlacement.cpp1141 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; // For AnalyzeBranch. in buildCFGChains() local
1142 if (!TII->AnalyzeBranch(*BB, TBB, FBB, Cond) || !FI->canFallThrough()) in buildCFGChains()
1255 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; // For AnalyzeBranch. in buildCFGChains() local
1256 if (!TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond)) { in buildCFGChains()
1268 if (!Cond.empty() && (!FBB || FBB == ChainBB)) { in buildCFGChains()
1272 TBB = FBB = nullptr; in buildCFGChains()
1273 if (TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond)) { in buildCFGChains()
1275 TBB = FBB = nullptr; in buildCFGChains()
1281 if (TBB && !Cond.empty() && FBB && in buildCFGChains()
1282 MBPI->getEdgeProbability(PrevBB, FBB) > in buildCFGChains()
[all …]
DMachineBasicBlock.cpp419 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in updateTerminator() local
422 bool B = TII->AnalyzeBranch(*this, TBB, FBB, Cond); in updateTerminator()
453 if (FBB) { in updateTerminator()
461 TII->InsertBranch(*this, FBB, nullptr, Cond, DL); in updateTerminator()
462 } else if (isLayoutSuccessor(FBB)) { in updateTerminator()
685 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in canFallThrough() local
688 if (TII->AnalyzeBranch(*this, TBB, FBB, Cond)) { in canFallThrough()
703 MachineFunction::iterator(FBB) == Fallthrough) in canFallThrough()
712 return FBB == nullptr; in canFallThrough()
733 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()
116 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, in InsertBranch() argument
130 if (FBB) { in InsertBranch()
132 BuildMI(&MBB, DL, get(UncondBrOpc)).addMBB(FBB); in InsertBranch()
178 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, in AnalyzeBranch() argument
191 TBB = FBB = nullptr; in AnalyzeBranch()
255 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
DMipsInstrInfo.h55 MachineBasicBlock *&FBB,
62 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
69 MachineBasicBlock *&FBB,
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyInstrInfo.cpp65 MachineBasicBlock *&FBB, in AnalyzeBranch() argument
94 FBB = MI.getOperand(0).getMBB(); in AnalyzeBranch()
125 MachineBasicBlock *FBB, in InsertBranch() argument
147 if (!FBB) in InsertBranch()
150 BuildMI(&MBB, DL, get(WebAssembly::BR)).addMBB(FBB); in InsertBranch()
DWebAssemblyInstrInfo.h42 MachineBasicBlock *&FBB,
47 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
/external/llvm/lib/Target/MSP430/
DMSP430InstrInfo.cpp172 MachineBasicBlock *&FBB, in AnalyzeBranch() argument
209 FBB = nullptr; in AnalyzeBranch()
233 FBB = TBB; in AnalyzeBranch()
262 MachineBasicBlock *FBB, in InsertBranch() argument
272 assert(!FBB && "Unconditional branch with multiple successors!"); in InsertBranch()
282 if (FBB) { in InsertBranch()
284 BuildMI(&MBB, DL, get(MSP430::JMP)).addMBB(FBB); in InsertBranch()
DMSP430InstrInfo.h79 MachineBasicBlock *&TBB, MachineBasicBlock *&FBB,
85 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
/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, ArrayRef<MachineOperand> Cond,
/external/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp149 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, in AnalyzeBranch() argument
186 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
230 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, in InsertBranch() argument
238 if (!FBB) { in InsertBranch()
249 BuildMI(&MBB, DL, get(NVPTX::GOTO)).addMBB(FBB); in InsertBranch()
DNVPTXInstrInfo.h63 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB,
67 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.cpp416 MachineBasicBlock *TBB, *FBB; in fixupConditionalBranch() local
418 TII->AnalyzeBranch(*MBB, TBB, FBB, Cond, false); in fixupConditionalBranch()
430 MBB->replaceSuccessor(FBB, NewBB); in fixupConditionalBranch()
431 NewBB->addSuccessor(FBB); in fixupConditionalBranch()
DAArch64InstrInfo.h138 MachineBasicBlock *&FBB,
143 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
/external/llvm/lib/Target/Sparc/
DSparcInstrInfo.h69 MachineBasicBlock *&FBB,
76 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
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()
/external/llvm/lib/Target/XCore/
DXCoreInstrInfo.h54 MachineBasicBlock *&FBB,
59 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
DXCoreInstrInfo.cpp195 MachineBasicBlock *&FBB, in AnalyzeBranch() argument
249 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
278 MachineBasicBlock *FBB, in InsertBranch() argument
286 if (!FBB) { // One way branch. in InsertBranch()
304 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, ArrayRef<MachineOperand> Cond,

12345