/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | EarlyIfConversion.cpp | 98 MachineBasicBlock *FBB; member in __anonf2bb7d710111::SSAIfConv 102 bool isTriangle() const { return TBB == Tail || FBB == Tail; } in isTriangle() 108 MachineBasicBlock *getFPred() const { return FBB == Tail ? Head : FBB; } in getFPred() 434 TBB = FBB = Tail = nullptr; in canConvertIf() 482 if (TII->analyzeBranch(*Head, TBB, FBB, Cond)) { in canConvertIf() 502 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf() 536 if (FBB != Tail && !canPredicateInstrs(FBB)) in canConvertIf() 541 if (FBB != Tail && !canSpeculateInstrs(FBB)) in canConvertIf() 626 assert(Head && Tail && TBB && FBB && "Call canConvertIf first."); in convertIf() 640 if (FBB != Tail) { in convertIf() [all …]
|
D | BranchRelaxation.cpp | 304 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in fixupConditionalBranch() local 316 MachineBasicBlock *FBB, in fixupConditionalBranch() 320 TII->insertBranch(*MBB, TBB, FBB, Cond, DL, &NewBrSize); in fixupConditionalBranch() 340 bool Fail = TII->analyzeBranch(*MBB, TBB, FBB, Cond); in fixupConditionalBranch() 354 if (FBB && isBlockInRange(MI, *FBB)) { in fixupConditionalBranch() 367 insertBranch(MBB, FBB, TBB, Cond); in fixupConditionalBranch() 371 if (FBB) { in fixupConditionalBranch() 376 insertUncondBranch(NewBB, FBB); in fixupConditionalBranch() 379 MBB->replaceSuccessor(FBB, NewBB); in fixupConditionalBranch() 380 NewBB->addSuccessor(FBB); in fixupConditionalBranch() [all …]
|
/external/llvm/lib/CodeGen/ |
D | EarlyIfConversion.cpp | 97 MachineBasicBlock *FBB; member in __anon9f98c04f0111::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/llvm-project/llvm/lib/CodeGen/ |
D | BranchRelaxation.cpp | 298 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in fixupConditionalBranch() local 310 MachineBasicBlock *FBB, in fixupConditionalBranch() 314 TII->insertBranch(*MBB, TBB, FBB, Cond, DL, &NewBrSize); in fixupConditionalBranch() 334 bool Fail = TII->analyzeBranch(*MBB, TBB, FBB, Cond); in fixupConditionalBranch() 348 if (FBB && isBlockInRange(MI, *FBB)) { in fixupConditionalBranch() 361 insertBranch(MBB, FBB, TBB, Cond); in fixupConditionalBranch() 365 if (FBB) { in fixupConditionalBranch() 370 insertUncondBranch(NewBB, FBB); in fixupConditionalBranch() 373 MBB->replaceSuccessor(FBB, NewBB); in fixupConditionalBranch() 374 NewBB->addSuccessor(FBB); in fixupConditionalBranch() [all …]
|
D | EarlyIfConversion.cpp | 99 MachineBasicBlock *FBB; member in __anonae2cbf7d0111::SSAIfConv 103 bool isTriangle() const { return TBB == Tail || FBB == Tail; } in isTriangle() 109 MachineBasicBlock *getFPred() const { return FBB == Tail ? Head : FBB; } in getFPred() 437 TBB = FBB = Tail = nullptr; in canConvertIf() 485 if (TII->analyzeBranch(*Head, TBB, FBB, Cond)) { in canConvertIf() 505 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf() 540 if (FBB != Tail && !canPredicateInstrs(FBB)) in canConvertIf() 545 if (FBB != Tail && !canSpeculateInstrs(FBB)) in canConvertIf() 630 assert(Head && Tail && TBB && FBB && "Call canConvertIf first."); in convertIf() 644 if (FBB != Tail) { in convertIf() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86CondBrFolding.cpp | 90 MachineBasicBlock *FBB; member 150 assert(SaveMBB == PredMBBInfo->TBB || SaveMBB == PredMBBInfo->FBB); in findPath() 151 bool IsFalseBranch = (SaveMBB == PredMBBInfo->FBB); in findPath() 233 MBBInfo->FBB = NewDest; in replaceBrDest() 259 .addMBB(MBBInfo->FBB); in fixupModifiedCond() 297 replaceBrDest(PredMBB, &MBB, MBBInfo->FBB); in optimizeCondBr() 322 .addMBB(RootMBBInfo->FBB).addImm(NewCC); in optimizeCondBr() 369 fixBranchProb(MBBInfo->FBB); in optimizeCondBr() 481 MachineBasicBlock *FBB; in analyzeMBB() local 494 FBB = TBB = nullptr; in analyzeMBB() [all …]
|
/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-10.0/llvm/lib/Target/NVPTX/ |
D | NVPTXInstrInfo.cpp | 97 MachineBasicBlock *&FBB, in analyzeBranch() argument 135 FBB = LastInst.getOperand(0).getMBB(); in analyzeBranch() 182 MachineBasicBlock *FBB, in insertBranch() argument 194 if (!FBB) { in insertBranch() 205 BuildMI(&MBB, DL, get(NVPTX::GOTO)).addMBB(FBB); in insertBranch()
|
/external/llvm-project/llvm/lib/Target/NVPTX/ |
D | NVPTXInstrInfo.cpp | 97 MachineBasicBlock *&FBB, in analyzeBranch() argument 135 FBB = LastInst.getOperand(0).getMBB(); in analyzeBranch() 182 MachineBasicBlock *FBB, in insertBranch() argument 194 if (!FBB) { in insertBranch() 205 BuildMI(&MBB, DL, get(NVPTX::GOTO)).addMBB(FBB); in insertBranch()
|
/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-10.0/llvm/lib/Target/MSP430/ |
D | MSP430InstrInfo.cpp | 177 MachineBasicBlock *&FBB, in analyzeBranch() argument 214 FBB = nullptr; in analyzeBranch() 238 FBB = TBB; in analyzeBranch() 267 MachineBasicBlock *FBB, in insertBranch() argument 279 assert(!FBB && "Unconditional branch with multiple successors!"); in insertBranch() 289 if (FBB) { in insertBranch() 291 BuildMI(&MBB, DL, get(MSP430::JMP)).addMBB(FBB); in insertBranch()
|
/external/llvm-project/llvm/lib/Target/MSP430/ |
D | MSP430InstrInfo.cpp | 165 MachineBasicBlock *&FBB, in analyzeBranch() argument 202 FBB = nullptr; in analyzeBranch() 226 FBB = TBB; in analyzeBranch() 255 MachineBasicBlock *FBB, in insertBranch() argument 267 assert(!FBB && "Unconditional branch with multiple successors!"); in insertBranch() 277 if (FBB) { in insertBranch() 279 BuildMI(&MBB, DL, get(MSP430::JMP)).addMBB(FBB); in insertBranch()
|
/external/llvm-project/llvm/lib/Target/ARC/ |
D | ARCInstrInfo.cpp | 172 MachineBasicBlock *&FBB, in analyzeBranch() argument 175 TBB = FBB = nullptr; in analyzeBranch() 205 assert(!FBB && "FBB should have been null."); in analyzeBranch() 206 FBB = TBB; in analyzeBranch() 226 FBB = nullptr; in analyzeBranch() 372 MachineBasicBlock *FBB, in insertBranch() argument 394 if (!FBB) { in insertBranch() 399 BuildMI(&MBB, dl, get(ARC::BR)).addMBB(FBB); in insertBranch()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARC/ |
D | ARCInstrInfo.cpp | 172 MachineBasicBlock *&FBB, in analyzeBranch() argument 175 TBB = FBB = nullptr; in analyzeBranch() 205 assert(!FBB && "FBB should have been null."); in analyzeBranch() 206 FBB = TBB; in analyzeBranch() 226 FBB = nullptr; in analyzeBranch() 372 MachineBasicBlock *FBB, in insertBranch() argument 394 if (!FBB) { in insertBranch() 399 BuildMI(&MBB, dl, get(ARC::BR)).addMBB(FBB); in insertBranch()
|
/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-project/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyFixBrTableDefaults.cpp | 96 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in fixBrTableDefault() local 99 bool Analyzed = !TII.analyzeBranch(*HeaderMBB, TBB, FBB, Cond); in fixBrTableDefault() 112 assert((FBB == nullptr || FBB == MBB) && in fixBrTableDefault()
|
D | WebAssemblyInstrInfo.cpp | 108 MachineBasicBlock *&FBB, in analyzeBranch() argument 144 FBB = MI.getOperand(0).getMBB(); in analyzeBranch() 185 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, in insertBranch() argument 217 if (!FBB) in insertBranch() 220 BuildMI(&MBB, DL, get(WebAssembly::BR)).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()
|
/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-10.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyInstrInfo.cpp | 104 MachineBasicBlock *&FBB, in analyzeBranch() argument 140 FBB = MI.getOperand(0).getMBB(); in analyzeBranch() 181 MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, in insertBranch() argument 213 if (!FBB) in insertBranch() 216 BuildMI(&MBB, DL, get(WebAssembly::BR)).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/llvm-project/llvm/lib/Target/Hexagon/ |
D | HexagonBranchRelaxation.cpp | 161 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in isJumpOutOfRange() local 165 if (HII->analyzeBranch(B, TBB, FBB, Cond, false)) { in isJumpOutOfRange() 177 if (FBB) { in isJumpOutOfRange() 186 Distance = std::abs((long long)InstOffset - BlockToInstOffset[FBB]) in isJumpOutOfRange()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonBranchRelaxation.cpp | 161 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in isJumpOutOfRange() local 165 if (HII->analyzeBranch(B, TBB, FBB, Cond, false)) { in isJumpOutOfRange() 177 if (FBB) { in isJumpOutOfRange() 186 Distance = std::abs((long long)InstOffset - BlockToInstOffset[FBB]) in isJumpOutOfRange()
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | AArch64SpeculationHardening.cpp | 153 MachineBasicBlock *&FBB, 187 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, in endsWithCondControlFlow() argument 190 if (TII->analyzeBranch(MBB, TBB, FBB, analyzeBranchCondCode, false)) in endsWithCondControlFlow() 201 if (FBB == nullptr) in endsWithCondControlFlow() 202 FBB = MBB.getFallThrough(); in endsWithCondControlFlow() 207 if (TBB == FBB) in endsWithCondControlFlow() 246 MachineBasicBlock *FBB = nullptr; in instrumentControlFlow() local 249 if (!endsWithCondControlFlow(MBB, TBB, FBB, CondCode)) { in instrumentControlFlow() 259 MachineBasicBlock *SplitEdgeFBB = MBB.SplitCriticalEdge(FBB, *this); in instrumentControlFlow()
|