/external/llvm/test/CodeGen/X86/ |
D | cmovcmov.ll | 24 ; NOCMOV-NEXT: jne [[TBB:.LBB[0-9_]+]] 25 ; NOCMOV-NEXT: jp [[TBB]] 27 ; NOCMOV-NEXT:[[TBB]]: 51 ; NOCMOV-NEXT: jne [[TBB:.LBB[0-9_]+]] 52 ; NOCMOV-NEXT: jp [[TBB]] 54 ; NOCMOV-NEXT: [[TBB]]: 80 ; NOCMOV-NEXT: jne [[TBB:.LBB[0-9_]+]] 81 ; NOCMOV-NEXT: jp [[TBB]] 83 ; NOCMOV-NEXT: [[TBB]]: 98 ; CMOV-NEXT: jne [[TBB:.LBB[0-9_]+]] [all …]
|
/external/llvm/lib/CodeGen/ |
D | EarlyIfConversion.cpp | 94 MachineBasicBlock *TBB; member in __anon9ba1b0650111::SSAIfConv 101 bool isTriangle() const { return TBB == Tail || FBB == Tail; } in isTriangle() 104 MachineBasicBlock *getTPred() const { return TBB == Tail ? Head : TBB; } in getTPred() 342 TBB = FBB = Tail = nullptr; in canConvertIf() 389 if (TII->analyzeBranch(*Head, TBB, FBB, Cond)) { in canConvertIf() 395 if (!TBB) { in canConvertIf() 402 FBB = TBB == Succ0 ? Succ1 : Succ0; in canConvertIf() 433 if (TBB != Tail && !canSpeculateInstrs(TBB)) in canConvertIf() 518 assert(Head && Tail && TBB && FBB && "Call canConvertIf first."); in convertIf() 527 if (TBB != Tail) in convertIf() [all …]
|
D | MachineBasicBlock.cpp | 410 MachineBasicBlock *TBB = nullptr, *FBB = nullptr; in updateTerminator() local 413 bool B = TII->analyzeBranch(*this, TBB, FBB, Cond); in updateTerminator() 417 if (TBB) { in updateTerminator() 420 if (isLayoutSuccessor(TBB)) in updateTerminator() 429 assert(!TBB && "Found more than one non-landing-pad successor!"); in updateTerminator() 430 TBB = *SI; in updateTerminator() 435 if (!TBB) in updateTerminator() 440 if (!isLayoutSuccessor(TBB)) in updateTerminator() 441 TII->InsertBranch(*this, TBB, nullptr, Cond, DL); in updateTerminator() 450 if (isLayoutSuccessor(TBB)) { in updateTerminator() [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() 1035 if (!Cond.empty() && TBB == IBB) { in TailMergeBlocks() 1054 if (!TBB) { in TailMergeBlocks() [all …]
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyInstrInfo.cpp | 96 MachineBasicBlock *&TBB, in analyzeBranch() argument 114 TBB = MI.getOperand(0).getMBB(); in analyzeBranch() 125 TBB = MI.getOperand(0).getMBB(); in analyzeBranch() 133 TBB = MI.getOperand(0).getMBB(); in analyzeBranch() 165 MachineBasicBlock *TBB, in InsertBranch() argument 170 if (!TBB) in InsertBranch() 173 BuildMI(&MBB, DL, get(WebAssembly::BR)).addMBB(TBB); in InsertBranch() 180 BuildMI(&MBB, DL, get(WebAssembly::BR_IF)).addMBB(TBB).addOperand(Cond[1]); in InsertBranch() 183 .addMBB(TBB) in InsertBranch()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXInstrInfo.cpp | 150 MachineBasicBlock *&TBB, in analyzeBranch() argument 165 TBB = LastInst.getOperand(0).getMBB(); in analyzeBranch() 169 TBB = LastInst.getOperand(1).getMBB(); in analyzeBranch() 187 TBB = SecondLastInst.getOperand(1).getMBB(); in analyzeBranch() 197 TBB = SecondLastInst.getOperand(0).getMBB(); in analyzeBranch() 233 MachineBasicBlock *TBB, in InsertBranch() argument 238 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() 245 BuildMI(&MBB, DL, get(NVPTX::GOTO)).addMBB(TBB); in InsertBranch() 248 .addMBB(TBB); in InsertBranch() 253 BuildMI(&MBB, DL, get(NVPTX::CBranch)).addReg(Cond[0].getReg()).addMBB(TBB); in InsertBranch()
|
/external/llvm/lib/Target/Mips/ |
D | MipsInstrInfo.cpp | 87 MachineBasicBlock *&TBB, in analyzeBranch() argument 92 BranchType BT = analyzeBranch(MBB, TBB, FBB, Cond, AllowModify, BranchInstrs); in analyzeBranch() 97 void MipsInstrInfo::BuildCondBr(MachineBasicBlock &MBB, MachineBasicBlock *TBB, in BuildCondBr() argument 112 MIB.addMBB(TBB); in BuildCondBr() 116 MachineBasicBlock *TBB, in InsertBranch() argument 121 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() 133 BuildCondBr(MBB, TBB, DL, Cond); in InsertBranch() 141 BuildMI(&MBB, DL, get(UncondBrOpc)).addMBB(TBB); in InsertBranch() 143 BuildCondBr(MBB, TBB, DL, Cond); in InsertBranch() 180 MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, in analyzeBranch() argument [all …]
|
D | MipsInstrInfo.h | 53 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 60 unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, 67 BranchType analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, 149 void BuildCondBr(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
|
/external/swiftshader/third_party/LLVM/lib/Target/MSP430/ |
D | MSP430InstrInfo.cpp | 176 MachineBasicBlock *&TBB, in AnalyzeBranch() argument 206 TBB = I->getOperand(0).getMBB(); in AnalyzeBranch() 218 TBB = 0; in AnalyzeBranch() 225 TBB = I->getOperand(0).getMBB(); in AnalyzeBranch() 238 FBB = TBB; in AnalyzeBranch() 239 TBB = I->getOperand(0).getMBB(); in AnalyzeBranch() 247 assert(TBB); in AnalyzeBranch() 251 if (TBB != I->getOperand(0).getMBB()) in AnalyzeBranch() 266 MSP430InstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, in InsertBranch() argument 271 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() [all …]
|
/external/llvm/lib/Target/MSP430/ |
D | MSP430InstrInfo.cpp | 174 MachineBasicBlock *&TBB, in analyzeBranch() argument 204 TBB = I->getOperand(0).getMBB(); in analyzeBranch() 216 TBB = nullptr; in analyzeBranch() 223 TBB = I->getOperand(0).getMBB(); in analyzeBranch() 236 FBB = TBB; in analyzeBranch() 237 TBB = I->getOperand(0).getMBB(); in analyzeBranch() 245 assert(TBB); in analyzeBranch() 249 if (TBB != I->getOperand(0).getMBB()) in analyzeBranch() 264 MachineBasicBlock *TBB, in InsertBranch() argument 269 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() [all …]
|
/external/llvm/lib/Target/BPF/ |
D | BPFInstrInfo.cpp | 79 MachineBasicBlock *&TBB, in analyzeBranch() argument 104 TBB = I->getOperand(0).getMBB(); in analyzeBranch() 116 TBB = 0; in analyzeBranch() 123 TBB = I->getOperand(0).getMBB(); in analyzeBranch() 134 MachineBasicBlock *TBB, in InsertBranch() argument 139 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() 144 BuildMI(&MBB, DL, get(BPF::JMP)).addMBB(TBB); in InsertBranch()
|
/external/swiftshader/third_party/LLVM/lib/Target/PTX/ |
D | PTXInstrInfo.cpp | 178 MachineBasicBlock *&TBB, in AnalyzeBranch() argument 200 DEBUG(dbgs() << "AnalyzeBranch: TBB: " << TBB << "\n"); in AnalyzeBranch() 214 TBB = GetBranchTarget(instLast1); in AnalyzeBranch() 223 TBB = GetBranchTarget(instLast1); in AnalyzeBranch() 239 TBB = GetBranchTarget(instLast2); in AnalyzeBranch() 267 MachineBasicBlock *TBB, in InsertBranch() argument 272 DEBUG(if (TBB) dbgs() << "InsertBranch: TBB: " << TBB->getName().str() in InsertBranch() 280 assert(TBB && "TBB is NULL"); in InsertBranch() 284 .addMBB(TBB).addReg(Cond[0].getReg()).addImm(Cond[1].getImm()); in InsertBranch() 290 .addMBB(TBB).addReg(Cond[0].getReg()).addImm(Cond[1].getImm()); in InsertBranch() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | MachineBasicBlock.cpp | 286 MachineBasicBlock *TBB = 0, *FBB = 0; in updateTerminator() local 289 bool B = TII->AnalyzeBranch(*this, TBB, FBB, Cond); in updateTerminator() 293 if (TBB) { in updateTerminator() 296 if (isLayoutSuccessor(TBB)) in updateTerminator() 301 TBB = *succ_begin(); in updateTerminator() 302 if (!isLayoutSuccessor(TBB)) in updateTerminator() 303 TII->InsertBranch(*this, TBB, 0, Cond, dl); in updateTerminator() 310 if (isLayoutSuccessor(TBB)) { in updateTerminator() 317 TII->InsertBranch(*this, TBB, 0, Cond, dl); in updateTerminator() 323 if (MBBA == TBB) std::swap(MBBB, MBBA); in updateTerminator() [all …]
|
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() 879 if (!Cond.empty() && TBB == IBB) { in TailMergeBlocks() 894 if (TBB == NULL) { in TailMergeBlocks() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/XCore/ |
D | XCoreInstrInfo.cpp | 187 XCoreInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, in AnalyzeBranch() argument 210 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch() 221 TBB = LastInst->getOperand(1).getMBB(); in AnalyzeBranch() 243 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch() 255 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch() 275 XCoreInstrInfo::InsertBranch(MachineBasicBlock &MBB,MachineBasicBlock *TBB, in InsertBranch() argument 280 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() 287 BuildMI(&MBB, DL, get(XCore::BRFU_lu6)).addMBB(TBB); in InsertBranch() 292 .addMBB(TBB); in InsertBranch() 301 .addMBB(TBB); in InsertBranch()
|
/external/swiftshader/third_party/LLVM/lib/Target/Alpha/ |
D | AlphaInstrInfo.cpp | 88 MachineBasicBlock *TBB, in InsertBranch() argument 92 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() 99 BuildMI(&MBB, DL, get(Alpha::BR)).addMBB(TBB); in InsertBranch() 103 .addImm(Cond[0].getImm()).addReg(Cond[1].getReg()).addMBB(TBB); in InsertBranch() 106 .addImm(Cond[0].getImm()).addReg(Cond[1].getReg()).addMBB(TBB); in InsertBranch() 113 .addImm(Cond[0].getImm()).addReg(Cond[1].getReg()).addMBB(TBB); in InsertBranch() 116 .addImm(Cond[0].getImm()).addReg(Cond[1].getReg()).addMBB(TBB); in InsertBranch() 218 bool AlphaInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB,MachineBasicBlock *&TBB, in AnalyzeBranch() argument 241 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch() 246 TBB = LastInst->getOperand(2).getMBB(); in AnalyzeBranch() [all …]
|
/external/llvm/lib/Target/AVR/ |
D | AVRInstrInfo.cpp | 242 MachineBasicBlock *&TBB, in analyzeBranch() argument 275 TBB = I->getOperand(0).getMBB(); in analyzeBranch() 289 TBB = 0; in analyzeBranch() 297 TBB = I->getOperand(0).getMBB(); in analyzeBranch() 347 FBB = TBB; in analyzeBranch() 348 TBB = I->getOperand(0).getMBB(); in analyzeBranch() 356 assert(TBB); in analyzeBranch() 360 if (TBB != I->getOperand(0).getMBB()) { in analyzeBranch() 377 MachineBasicBlock *TBB, in InsertBranch() argument 382 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/Sparc/ |
D | SparcInstrInfo.cpp | 117 MachineBasicBlock *&TBB, in AnalyzeBranch() argument 144 TBB = I->getOperand(0).getMBB(); in AnalyzeBranch() 155 TBB = 0; in AnalyzeBranch() 162 TBB = I->getOperand(0).getMBB(); in AnalyzeBranch() 206 FBB = TBB; in AnalyzeBranch() 207 TBB = I->getOperand(0).getMBB(); in AnalyzeBranch() 219 SparcInstrInfo::InsertBranch(MachineBasicBlock &MBB,MachineBasicBlock *TBB, in InsertBranch() argument 223 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() 229 BuildMI(&MBB, DL, get(SP::BA)).addMBB(TBB); in InsertBranch() 237 BuildMI(&MBB, DL, get(SP::BCOND)).addMBB(TBB).addImm(CC); in InsertBranch() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/ |
D | MBlazeInstrInfo.cpp | 116 MachineBasicBlock *&TBB, in AnalyzeBranch() argument 140 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch() 145 TBB = LastInst->getOperand(1).getMBB(); in AnalyzeBranch() 164 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch() 175 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch() 187 InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, in InsertBranch() argument 192 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() 202 BuildMI(&MBB, DL, get(Opc)).addMBB(TBB); in InsertBranch() 204 BuildMI(&MBB, DL, get(Opc)).addReg(Cond[1].getReg()).addMBB(TBB); in InsertBranch() 208 BuildMI(&MBB, DL, get(Opc)).addReg(Cond[1].getReg()).addMBB(TBB); in InsertBranch()
|
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/ |
D | SPUInstrInfo.cpp | 213 SPUInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, in AnalyzeBranch() argument 239 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch() 243 TBB = LastInst->getOperand(1).getMBB(); in AnalyzeBranch() 264 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch() 276 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch() 351 SPUInstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, in InsertBranch() argument 356 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() 375 MIB.addMBB(TBB); in InsertBranch() 384 MIB.addMBB(TBB); in InsertBranch() 389 MIB.addReg(Cond[1].getReg()).addMBB(TBB); in InsertBranch() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/Mips/ |
D | MipsInstrInfo.cpp | 276 MachineBasicBlock *&TBB, in AnalyzeBranch() argument 290 TBB = FBB = NULL; in AnalyzeBranch() 318 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch() 323 AnalyzeCondBr(LastInst, LastOpc, TBB, Cond); in AnalyzeBranch() 339 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch() 349 AnalyzeCondBr(SecondLastInst, SecondLastOpc, TBB, Cond); in AnalyzeBranch() 356 MachineBasicBlock *TBB, DebugLoc DL, in BuildCondBr() argument 366 MIB.addMBB(TBB); in BuildCondBr() 370 InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, in InsertBranch() argument 375 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() [all …]
|
/external/llvm/lib/Target/XCore/ |
D | XCoreInstrInfo.cpp | 191 MachineBasicBlock *&TBB, in analyzeBranch() argument 209 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 220 TBB = LastInst->getOperand(1).getMBB(); in analyzeBranch() 241 TBB = SecondLastInst->getOperand(1).getMBB(); in analyzeBranch() 253 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch() 273 MachineBasicBlock *TBB, in InsertBranch() argument 278 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() 285 BuildMI(&MBB, DL, get(XCore::BRFU_lu6)).addMBB(TBB); in InsertBranch() 290 .addMBB(TBB); in InsertBranch() 299 .addMBB(TBB); in InsertBranch()
|
/external/swiftshader/third_party/LLVM/lib/Target/SystemZ/ |
D | SystemZInstrInfo.cpp | 218 MachineBasicBlock *&TBB, in AnalyzeBranch() argument 242 TBB = I->getOperand(0).getMBB(); in AnalyzeBranch() 254 TBB = 0; in AnalyzeBranch() 261 TBB = I->getOperand(0).getMBB(); in AnalyzeBranch() 272 FBB = TBB; in AnalyzeBranch() 273 TBB = I->getOperand(0).getMBB(); in AnalyzeBranch() 281 assert(TBB); in AnalyzeBranch() 285 if (TBB != I->getOperand(0).getMBB()) in AnalyzeBranch() 320 SystemZInstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, in InsertBranch() argument 325 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() [all …]
|
/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() 156 TBB = FirstTerm->getOperand(HII->getCExtOpNum(&*FirstTerm)).getMBB(); in isJumpOutOfRange() 158 if (TBB && &MI == &*FirstTerm) { in isJumpOutOfRange() 159 Distance = std::abs((long long)InstOffset - BlockToInstOffset[TBB]) in isJumpOutOfRange()
|
/external/llvm/lib/Target/Sparc/ |
D | SparcInstrInfo.cpp | 161 MachineBasicBlock *&TBB, in analyzeBranch() argument 179 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 184 parseCondBranch(LastInst, TBB, Cond); in analyzeBranch() 203 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 218 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch() 226 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch() 244 MachineBasicBlock *TBB, in InsertBranch() argument 248 assert(TBB && "InsertBranch must not be told to insert a fallthrough"); in InsertBranch() 254 BuildMI(&MBB, DL, get(SP::BA)).addMBB(TBB); in InsertBranch() 262 BuildMI(&MBB, DL, get(SP::BCOND)).addMBB(TBB).addImm(CC); in InsertBranch() [all …]
|