/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() 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 …]
|
D | BranchFolding.cpp | 218 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 …]
|
D | MachineBlockPlacement.cpp | 1141 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 …]
|
D | MachineBasicBlock.cpp | 419 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/ |
D | MipsInstrInfo.cpp | 88 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()
|
D | MipsInstrInfo.h | 55 MachineBasicBlock *&FBB, 62 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, 69 MachineBasicBlock *&FBB,
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyInstrInfo.cpp | 65 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()
|
D | WebAssemblyInstrInfo.h | 42 MachineBasicBlock *&FBB, 47 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
|
/external/llvm/lib/Target/MSP430/ |
D | MSP430InstrInfo.cpp | 172 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()
|
D | MSP430InstrInfo.h | 79 MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, 85 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
|
/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, ArrayRef<MachineOperand> Cond,
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXInstrInfo.cpp | 149 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()
|
D | NVPTXInstrInfo.h | 63 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, 67 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 | 416 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()
|
D | AArch64InstrInfo.h | 138 MachineBasicBlock *&FBB, 143 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
|
/external/llvm/lib/Target/XCore/ |
D | XCoreInstrInfo.h | 54 MachineBasicBlock *&FBB, 59 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
|
D | XCoreInstrInfo.cpp | 195 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/llvm/lib/Target/Sparc/ |
D | SparcInstrInfo.h | 69 MachineBasicBlock *&FBB, 76 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
|
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()
|
/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, ArrayRef<MachineOperand> Cond,
|