/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | EarlyIfConversion.cpp | 97 MachineBasicBlock *FBB; member in __anon8c0b47800111::SSAIfConv 101 bool isTriangle() const { return TBB == Tail || FBB == Tail; } in isTriangle() 107 MachineBasicBlock *getFPred() const { return FBB == Tail ? Head : FBB; } in getFPred() 343 TBB = FBB = Tail = nullptr; in canConvertIf() 390 if (TII->analyzeBranch(*Head, TBB, FBB, Cond)) { in canConvertIf() 403 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf() 436 if (FBB != Tail && !canSpeculateInstrs(FBB)) in canConvertIf() 519 assert(Head && Tail && TBB && FBB && "Call canConvertIf first."); in convertIf() 530 if (FBB != Tail) in convertIf() 531 Head->splice(InsertionPoint, FBB, FBB->begin(), FBB->getFirstTerminator()); in convertIf() [all …]
|
D | BranchRelaxation.cpp | 306 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in fixupConditionalBranch() local 318 MachineBasicBlock *FBB, in fixupConditionalBranch() 322 TII->insertBranch(*MBB, TBB, FBB, Cond, DL, &NewBrSize); in fixupConditionalBranch() 342 bool Fail = TII->analyzeBranch(*MBB, TBB, FBB, Cond); in fixupConditionalBranch() 356 if (FBB && isBlockInRange(MI, *FBB)) { in fixupConditionalBranch() 369 insertBranch(MBB, FBB, TBB, Cond); in fixupConditionalBranch() 373 if (FBB) { in fixupConditionalBranch() 378 insertUncondBranch(NewBB, FBB); in fixupConditionalBranch() 381 MBB->replaceSuccessor(FBB, NewBB); in fixupConditionalBranch() 382 NewBB->addSuccessor(FBB); in fixupConditionalBranch() [all …]
|
D | BranchFolding.cpp | 196 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in OptimizeFunction() local 198 if (!TII->analyzeBranch(MBB, TBB, FBB, Cond, true)) in OptimizeFunction() 199 MadeChange |= MBB.CorrectExtraCFGEdges(TBB, FBB, !Cond.empty()); in OptimizeFunction() 514 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in FixTail() local 517 if (I != MF->end() && !TII->analyzeBranch(*CurMBB, TBB, FBB, Cond, true)) { in FixTail() 519 if (TBB == NextBB && !Cond.empty() && !FBB) { in FixTail() 1169 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in TailMergeBlocks() local 1171 if (!TII->analyzeBranch(*PBB, TBB, FBB, Cond, true)) { in TailMergeBlocks() 1179 if (!FBB) { in TailMergeBlocks() 1182 FBB = &*Next; in TailMergeBlocks() [all …]
|
/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 | 223 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in OptimizeFunction() local 225 if (!TII->analyzeBranch(MBB, TBB, FBB, Cond, true)) in OptimizeFunction() 226 MadeChange |= MBB.CorrectExtraCFGEdges(TBB, FBB, !Cond.empty()); in OptimizeFunction() 508 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in FixTail() local 511 if (I != MF->end() && !TII->analyzeBranch(*CurMBB, TBB, FBB, Cond, true)) { in FixTail() 513 if (TBB == NextBB && !Cond.empty() && !FBB) { in FixTail() 1029 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in TailMergeBlocks() local 1031 if (!TII->analyzeBranch(*PBB, TBB, FBB, Cond, true)) { in TailMergeBlocks() 1039 if (!FBB) { in TailMergeBlocks() 1042 FBB = &*Next; in TailMergeBlocks() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARC/ |
D | ARCInstrInfo.cpp | 160 MachineBasicBlock *&FBB, in analyzeBranch() argument 163 TBB = FBB = nullptr; in analyzeBranch() 193 assert(!FBB && "FBB should have been null."); in analyzeBranch() 194 FBB = TBB; in analyzeBranch() 214 FBB = nullptr; in analyzeBranch() 360 MachineBasicBlock *FBB, in insertBranch() argument 382 if (!FBB) { in insertBranch() 387 BuildMI(&MBB, dl, get(ARC::BR)).addMBB(FBB); in insertBranch()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyInstrInfo.cpp | 98 MachineBasicBlock *&FBB, in analyzeBranch() argument 136 FBB = MI.getOperand(0).getMBB(); in analyzeBranch() 170 MachineBasicBlock *FBB, in insertBranch() argument 191 if (!FBB) in insertBranch() 194 BuildMI(&MBB, DL, get(WebAssembly::BR)).addMBB(FBB); in insertBranch()
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyInstrInfo.cpp | 97 MachineBasicBlock *&FBB, in analyzeBranch() argument 135 FBB = MI.getOperand(0).getMBB(); in analyzeBranch() 166 MachineBasicBlock *FBB, in InsertBranch() argument 186 if (!FBB) in InsertBranch() 189 BuildMI(&MBB, DL, get(WebAssembly::BR)).addMBB(FBB); in InsertBranch()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | BranchFolding.cpp | 188 MachineBasicBlock *MBB = I, *TBB = 0, *FBB = 0; in OptimizeFunction() local 190 if (!TII->AnalyzeBranch(*MBB, TBB, FBB, Cond, true)) in OptimizeFunction() 191 MadeChange |= MBB->CorrectExtraCFGEdges(TBB, FBB, !Cond.empty()); in OptimizeFunction() 454 MachineBasicBlock *TBB = 0, *FBB = 0; in FixTail() local 458 !TII->AnalyzeBranch(*CurMBB, TBB, FBB, Cond, true)) { in FixTail() 460 if (TBB == NextBB && !Cond.empty() && !FBB) { in FixTail() 873 MachineBasicBlock *TBB = 0, *FBB = 0; in TailMergeBlocks() local 875 if (!TII->AnalyzeBranch(*PBB, TBB, FBB, Cond, true)) { in TailMergeBlocks() 883 if (!FBB) in TailMergeBlocks() 884 FBB = llvm::next(MachineFunction::iterator(PBB)); in TailMergeBlocks() [all …]
|
D | MachineBasicBlock.cpp | 286 MachineBasicBlock *TBB = 0, *FBB = 0; in updateTerminator() local 289 bool B = TII->AnalyzeBranch(*this, TBB, FBB, Cond); in updateTerminator() 306 if (FBB) { in updateTerminator() 314 TII->InsertBranch(*this, FBB, 0, Cond, dl); in updateTerminator() 315 } else if (isLayoutSuccessor(FBB)) { in updateTerminator() 470 MachineBasicBlock *TBB = 0, *FBB = 0; in canFallThrough() local 473 if (TII->AnalyzeBranch(*this, TBB, FBB, Cond)) { in canFallThrough() 491 MachineFunction::iterator(FBB) == Fallthrough) in canFallThrough() 500 return FBB == 0; in canFallThrough() 511 MachineBasicBlock *TBB = 0, *FBB = 0; in SplitCriticalEdge() local [all …]
|
D | CodePlacementOpt.cpp | 80 MachineBasicBlock *TBB = 0, *FBB = 0; in HasFallthrough() local 82 if (TII->AnalyzeBranch(*MBB, TBB, FBB, Cond)) in HasFallthrough() 85 if (FBB) in HasFallthrough() 109 MachineBasicBlock *TBB = 0, *FBB = 0; in HasAnalyzableTerminator() local 112 if (TII->AnalyzeBranch(*MBB, TBB, FBB, Cond)) in HasAnalyzableTerminator()
|
/external/llvm/lib/Target/MSP430/ |
D | MSP430InstrInfo.cpp | 175 MachineBasicBlock *&FBB, in analyzeBranch() argument 212 FBB = nullptr; in analyzeBranch() 236 FBB = TBB; in analyzeBranch() 265 MachineBasicBlock *FBB, in InsertBranch() argument 275 assert(!FBB && "Unconditional branch with multiple successors!"); in InsertBranch() 285 if (FBB) { in InsertBranch() 287 BuildMI(&MBB, DL, get(MSP430::JMP)).addMBB(FBB); in InsertBranch()
|
/external/swiftshader/third_party/LLVM/lib/Target/MSP430/ |
D | MSP430InstrInfo.cpp | 177 MachineBasicBlock *&FBB, in AnalyzeBranch() argument 214 FBB = 0; in AnalyzeBranch() 238 FBB = TBB; in AnalyzeBranch() 267 MachineBasicBlock *FBB, in InsertBranch() argument 277 assert(!FBB && "Unconditional branch with multiple successors!"); in InsertBranch() 287 if (FBB) { in InsertBranch() 289 BuildMI(&MBB, DL, get(MSP430::JMP)).addMBB(FBB); in InsertBranch()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/MSP430/ |
D | MSP430InstrInfo.cpp | 178 MachineBasicBlock *&FBB, in analyzeBranch() argument 215 FBB = nullptr; in analyzeBranch() 239 FBB = TBB; in analyzeBranch() 268 MachineBasicBlock *FBB, in insertBranch() argument 280 assert(!FBB && "Unconditional branch with multiple successors!"); in insertBranch() 290 if (FBB) { in insertBranch() 292 BuildMI(&MBB, DL, get(MSP430::JMP)).addMBB(FBB); in insertBranch()
|
/external/swiftshader/third_party/LLVM/lib/Target/PTX/ |
D | PTXInstrInfo.cpp | 179 MachineBasicBlock *&FBB, in AnalyzeBranch() argument 201 DEBUG(dbgs() << "AnalyzeBranch: FBB: " << FBB << "\n"); in AnalyzeBranch() 240 FBB = GetBranchTarget(instLast1); in AnalyzeBranch() 268 MachineBasicBlock *FBB, in InsertBranch() argument 275 DEBUG(if (FBB) dbgs() << "InsertBranch: FBB: " << FBB->getName().str() in InsertBranch() 282 if (FBB) { in InsertBranch() 286 .addMBB(FBB).addReg(PTX::NoRegister).addImm(PTXPredicate::None); in InsertBranch()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/ |
D | NVPTXInstrInfo.cpp | 98 MachineBasicBlock *&FBB, in analyzeBranch() argument 136 FBB = LastInst.getOperand(0).getMBB(); in analyzeBranch() 183 MachineBasicBlock *FBB, in insertBranch() argument 195 if (!FBB) { in insertBranch() 206 BuildMI(&MBB, DL, get(NVPTX::GOTO)).addMBB(FBB); in insertBranch()
|
/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 *FBB, in InsertBranch() argument 132 if (FBB) { in InsertBranch() 134 BuildMI(&MBB, DL, get(UncondBrOpc)).addMBB(FBB); in InsertBranch() 180 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, in analyzeBranch() argument 193 TBB = FBB = nullptr; in analyzeBranch() 257 FBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
|
D | MipsInstrInfo.h | 54 MachineBasicBlock *&FBB, 61 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond, 68 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()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXInstrInfo.cpp | 151 MachineBasicBlock *&FBB, in analyzeBranch() argument 189 FBB = LastInst.getOperand(0).getMBB(); in analyzeBranch() 234 MachineBasicBlock *FBB, in InsertBranch() argument 243 if (!FBB) { in InsertBranch() 254 BuildMI(&MBB, DL, get(NVPTX::GOTO)).addMBB(FBB); in InsertBranch()
|
/external/swiftshader/third_party/LLVM/lib/Target/Sparc/ |
D | SparcInstrInfo.cpp | 118 MachineBasicBlock *&FBB, in AnalyzeBranch() argument 152 FBB = 0; in AnalyzeBranch() 206 FBB = TBB; in AnalyzeBranch() 220 MachineBasicBlock *FBB, in InsertBranch() argument 228 assert(!FBB && "Unconditional branch with multiple successors!"); in InsertBranch() 240 if (!FBB) in InsertBranch() 243 BuildMI(&MBB, DL, get(SP::BA)).addMBB(FBB); in InsertBranch()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonBranchRelaxation.cpp | 147 MachineBasicBlock *TBB = NULL, *FBB = NULL; in isJumpOutOfRange() local 151 if (HII->analyzeBranch(B, TBB, FBB, Cond, false)) { in isJumpOutOfRange() 163 if (FBB) { in isJumpOutOfRange() 172 Distance = std::abs((long long)InstOffset - BlockToInstOffset[FBB]) in isJumpOutOfRange()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonBranchRelaxation.cpp | 163 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in isJumpOutOfRange() local 167 if (HII->analyzeBranch(B, TBB, FBB, Cond, false)) { in isJumpOutOfRange() 179 if (FBB) { in isJumpOutOfRange() 188 Distance = std::abs((long long)InstOffset - BlockToInstOffset[FBB]) in isJumpOutOfRange()
|
/external/llvm/lib/Target/AVR/ |
D | AVRInstrInfo.cpp | 243 MachineBasicBlock *&FBB, in analyzeBranch() argument 285 FBB = 0; in analyzeBranch() 347 FBB = TBB; in analyzeBranch() 378 MachineBasicBlock *FBB, in InsertBranch() argument 387 assert(!FBB && "Unconditional branch with multiple successors!"); in InsertBranch() 398 if (FBB) { in InsertBranch() 400 BuildMI(&MBB, DL, get(AVR::RJMPk)).addMBB(FBB); in InsertBranch()
|
/external/swiftshader/third_party/LLVM/lib/Target/XCore/ |
D | XCoreInstrInfo.cpp | 188 MachineBasicBlock *&FBB, in AnalyzeBranch() argument 247 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch() 276 MachineBasicBlock *FBB, in InsertBranch() argument 284 if (FBB == 0) { // One way branch. in InsertBranch() 302 BuildMI(&MBB, DL, get(XCore::BRFU_lu6)).addMBB(FBB); in InsertBranch()
|