/external/llvm/lib/CodeGen/ |
D | EarlyIfConversion.cpp | 97 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 …]
|
D | BranchFolding.cpp | 212 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 …]
|
D | MachineBlockPlacement.cpp | 899 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 …]
|
D | MachineBasicBlock.cpp | 388 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/ |
D | MipsInstrInfo.cpp | 88 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()
|
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/BPF/ |
D | BPFInstrInfo.cpp | 80 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()
|
D | BPFInstrInfo.h | 48 MachineBasicBlock *&FBB, 54 MachineBasicBlock *FBB,
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXInstrInfo.cpp | 169 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()
|
D | NVPTXInstrInfo.h | 64 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, 68 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB,
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64A53Fix835769.cpp | 131 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()
|
D | AArch64BranchRelaxation.cpp | 407 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()
|
D | AArch64InstrInfo.h | 137 MachineBasicBlock *&FBB, 142 MachineBasicBlock *FBB,
|
/external/llvm/lib/Target/Sparc/ |
D | SparcInstrInfo.cpp | 129 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()
|
D | SparcInstrInfo.h | 69 MachineBasicBlock *&FBB, 76 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/llvm/unittests/IR/ |
D | IRBuilderTest.cpp | 85 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/ |
D | SystemZInstrInfo.h | 147 MachineBasicBlock *&FBB, 152 MachineBasicBlock *FBB,
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCInstrInfo.h | 139 MachineBasicBlock *&FBB, 144 MachineBasicBlock *FBB,
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonInstrInfo.h | 63 MachineBasicBlock *&FBB, 70 MachineBasicBlock *FBB,
|