/external/llvm/lib/CodeGen/ |
D | EarlyIfConversion.cpp | 97 MachineBasicBlock *FBB; member in __anon03f39d3f0111::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 …]
|
D | BranchFolding.cpp | 205 MachineBasicBlock *MBB = I, *TBB = nullptr, *FBB = nullptr; in OptimizeFunction() local 207 if (!TII->AnalyzeBranch(*MBB, TBB, FBB, Cond, true)) in OptimizeFunction() 208 MadeChange |= MBB->CorrectExtraCFGEdges(TBB, FBB, !Cond.empty()); in OptimizeFunction() 470 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in FixTail() local 474 !TII->AnalyzeBranch(*CurMBB, TBB, FBB, Cond, true)) { in FixTail() 476 if (TBB == NextBB && !Cond.empty() && !FBB) { in FixTail() 900 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in TailMergeBlocks() local 902 if (!TII->AnalyzeBranch(*PBB, TBB, FBB, Cond, true)) { in TailMergeBlocks() 910 if (!FBB) in TailMergeBlocks() 911 FBB = std::next(MachineFunction::iterator(PBB)); in TailMergeBlocks() [all …]
|
D | MachineBlockPlacement.cpp | 887 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; // For AnalyzeBranch. in buildCFGChains() local 888 if (!TII->AnalyzeBranch(*BB, TBB, FBB, Cond) || !FI->canFallThrough()) in buildCFGChains() 991 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; // For AnalyzeBranch. in buildCFGChains() local 992 if (!TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond)) { in buildCFGChains() 1004 if (!Cond.empty() && (!FBB || FBB == *BI)) { in buildCFGChains() 1008 TBB = FBB = nullptr; in buildCFGChains() 1009 if (TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond)) { in buildCFGChains() 1011 TBB = FBB = nullptr; in buildCFGChains() 1017 if (TBB && !Cond.empty() && FBB && in buildCFGChains() 1018 MBPI->getEdgeWeight(PrevBB, FBB) > MBPI->getEdgeWeight(PrevBB, TBB) && in buildCFGChains() [all …]
|
D | MachineBasicBlock.cpp | 397 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in updateTerminator() local 400 bool B = TII->AnalyzeBranch(*this, TBB, FBB, Cond); in updateTerminator() 431 if (FBB) { in updateTerminator() 439 TII->InsertBranch(*this, FBB, nullptr, Cond, dl); in updateTerminator() 440 } else if (isLayoutSuccessor(FBB)) { in updateTerminator() 646 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in canFallThrough() local 649 if (TII->AnalyzeBranch(*this, TBB, FBB, Cond)) { in canFallThrough() 664 MachineFunction::iterator(FBB) == Fallthrough) in canFallThrough() 673 return FBB == nullptr; in canFallThrough() 694 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in SplitCriticalEdge() local [all …]
|
/external/llvm/lib/Target/Mips/ |
D | MipsInstrInfo.cpp | 88 MachineBasicBlock *&FBB, in AnalyzeBranch() argument 92 BranchType BT = AnalyzeBranch(MBB, TBB, FBB, Cond, AllowModify, BranchInstrs); in AnalyzeBranch() 118 MachineBasicBlock *FBB, in InsertBranch() argument 133 if (FBB) { in InsertBranch() 135 BuildMI(&MBB, DL, get(UncondBrOpc)).addMBB(FBB); in InsertBranch() 185 MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, in AnalyzeBranch() argument 198 TBB = FBB = nullptr; in AnalyzeBranch() 262 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
|
D | MipsInstrInfo.h | 55 MachineBasicBlock *&FBB, 62 MachineBasicBlock *FBB, 70 MachineBasicBlock *&FBB,
|
/external/llvm/lib/Target/MSP430/ |
D | MSP430InstrInfo.cpp | 174 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()
|
D | MSP430InstrInfo.h | 79 MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, 85 MachineBasicBlock *FBB,
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXInstrInfo.cpp | 171 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, in AnalyzeBranch() argument 208 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch() 252 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, in InsertBranch() argument 260 if (!FBB) { in InsertBranch() 271 BuildMI(&MBB, DL, get(NVPTX::GOTO)).addMBB(FBB); in InsertBranch()
|
D | NVPTXInstrInfo.h | 64 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, 68 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB,
|
/external/llvm/lib/Target/Sparc/ |
D | SparcInstrInfo.h | 67 MachineBasicBlock *&FBB, 74 MachineBasicBlock *FBB,
|
D | SparcInstrInfo.cpp | 130 MachineBasicBlock *&FBB, in AnalyzeBranch() argument 164 FBB = nullptr; in AnalyzeBranch() 218 FBB = TBB; in AnalyzeBranch() 232 MachineBasicBlock *FBB, in InsertBranch() argument 240 assert(!FBB && "Unconditional branch with multiple successors!"); in InsertBranch() 252 if (!FBB) in InsertBranch() 255 BuildMI(&MBB, DL, get(SP::BA)).addMBB(FBB); in InsertBranch()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64A53Fix835769.cpp | 135 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in getBBFallenThrough() local 140 if (S == PrevBB && !TII->AnalyzeBranch(*PrevBB, TBB, FBB, Cond) && in getBBFallenThrough() 141 !TBB && !FBB) in getBBFallenThrough()
|
D | AArch64BranchRelaxation.cpp | 406 MachineBasicBlock *TBB, *FBB; in fixupConditionalBranch() local 408 TII->AnalyzeBranch(*MBB, TBB, FBB, Cond, false); in fixupConditionalBranch() 420 MBB->replaceSuccessor(FBB, NewBB); in fixupConditionalBranch() 421 NewBB->addSuccessor(FBB); in fixupConditionalBranch()
|
D | AArch64InstrInfo.h | 128 MachineBasicBlock *&FBB, 133 MachineBasicBlock *FBB,
|
/external/llvm/lib/Target/XCore/ |
D | XCoreInstrInfo.h | 54 MachineBasicBlock *&FBB, 59 MachineBasicBlock *FBB,
|
D | XCoreInstrInfo.cpp | 195 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/ |
D | R600InstrInfo.cpp | 179 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()
|
D | R600InstrInfo.h | 68 bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, 71 …unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, cons…
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/ |
D | R600InstrInfo.cpp | 179 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()
|
D | R600InstrInfo.h | 68 bool AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, 71 …unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, cons…
|
/external/llvm/unittests/IR/ |
D | IRBuilderTest.cpp | 83 BasicBlock *FBB = BasicBlock::Create(Ctx, "", F); in TEST_F() local 85 BranchInst *BI = Builder.CreateCondBr(Builder.getTrue(), TBB, FBB); in TEST_F() 90 EXPECT_EQ(FBB, TI->getSuccessor(1)); in TEST_F() 94 BI = Builder.CreateCondBr(Builder.getTrue(), TBB, FBB, Weights); in TEST_F() 99 EXPECT_EQ(FBB, TI->getSuccessor(1)); in TEST_F()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCInstrInfo.h | 130 MachineBasicBlock *&FBB, 135 MachineBasicBlock *FBB,
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZInstrInfo.h | 144 MachineBasicBlock *&FBB, 149 MachineBasicBlock *FBB,
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonInstrInfo.h | 63 MachineBasicBlock *&FBB, 70 MachineBasicBlock *FBB,
|