/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
D | NVPTXInstrInfo.cpp | 106 MachineInstr &LastInst = *I; in analyzeBranch() local 110 if (LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch() 111 TBB = LastInst.getOperand(0).getMBB(); in analyzeBranch() 113 } else if (LastInst.getOpcode() == NVPTX::CBranch) { in analyzeBranch() 115 TBB = LastInst.getOperand(1).getMBB(); in analyzeBranch() 116 Cond.push_back(LastInst.getOperand(0)); in analyzeBranch() 132 LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch() 135 FBB = LastInst.getOperand(0).getMBB(); in analyzeBranch() 142 LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch() 144 I = LastInst; in analyzeBranch()
|
/external/llvm-project/llvm/lib/Target/NVPTX/ |
D | NVPTXInstrInfo.cpp | 106 MachineInstr &LastInst = *I; in analyzeBranch() local 110 if (LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch() 111 TBB = LastInst.getOperand(0).getMBB(); in analyzeBranch() 113 } else if (LastInst.getOpcode() == NVPTX::CBranch) { in analyzeBranch() 115 TBB = LastInst.getOperand(1).getMBB(); in analyzeBranch() 116 Cond.push_back(LastInst.getOperand(0)); in analyzeBranch() 132 LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch() 135 FBB = LastInst.getOperand(0).getMBB(); in analyzeBranch() 142 LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch() 144 I = LastInst; in analyzeBranch()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXInstrInfo.cpp | 160 MachineInstr &LastInst = *I; in analyzeBranch() local 164 if (LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch() 165 TBB = LastInst.getOperand(0).getMBB(); in analyzeBranch() 167 } else if (LastInst.getOpcode() == NVPTX::CBranch) { in analyzeBranch() 169 TBB = LastInst.getOperand(1).getMBB(); in analyzeBranch() 170 Cond.push_back(LastInst.getOperand(0)); in analyzeBranch() 186 LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch() 189 FBB = LastInst.getOperand(0).getMBB(); in analyzeBranch() 196 LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch() 198 I = LastInst; in analyzeBranch()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreInstrInfo.cpp | 204 MachineInstr *LastInst = I; in analyzeBranch() local 208 if (IsBRU(LastInst->getOpcode())) { in analyzeBranch() 209 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 213 XCore::CondCode BranchCode = GetCondFromBranchOpc(LastInst->getOpcode()); in analyzeBranch() 220 TBB = LastInst->getOperand(1).getMBB(); in analyzeBranch() 222 Cond.push_back(LastInst->getOperand(0)); in analyzeBranch() 239 && IsBRU(LastInst->getOpcode())) { in analyzeBranch() 245 FBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 252 IsBRU(LastInst->getOpcode())) { in analyzeBranch() 254 I = LastInst; in analyzeBranch() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/ |
D | XCoreInstrInfo.cpp | 203 MachineInstr *LastInst = &*I; in analyzeBranch() local 207 if (IsBRU(LastInst->getOpcode())) { in analyzeBranch() 208 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 212 XCore::CondCode BranchCode = GetCondFromBranchOpc(LastInst->getOpcode()); in analyzeBranch() 219 TBB = LastInst->getOperand(1).getMBB(); in analyzeBranch() 221 Cond.push_back(LastInst->getOperand(0)); in analyzeBranch() 238 && IsBRU(LastInst->getOpcode())) { in analyzeBranch() 244 FBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 251 IsBRU(LastInst->getOpcode())) { in analyzeBranch() 253 I = LastInst; in analyzeBranch() [all …]
|
/external/llvm-project/llvm/lib/Target/XCore/ |
D | XCoreInstrInfo.cpp | 203 MachineInstr *LastInst = &*I; in analyzeBranch() local 207 if (IsBRU(LastInst->getOpcode())) { in analyzeBranch() 208 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 212 XCore::CondCode BranchCode = GetCondFromBranchOpc(LastInst->getOpcode()); in analyzeBranch() 219 TBB = LastInst->getOperand(1).getMBB(); in analyzeBranch() 221 Cond.push_back(LastInst->getOperand(0)); in analyzeBranch() 238 && IsBRU(LastInst->getOpcode())) { in analyzeBranch() 244 FBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 251 IsBRU(LastInst->getOpcode())) { in analyzeBranch() 253 I = LastInst; in analyzeBranch() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | MachineOutliner.h | 49 MachineBasicBlock::iterator LastInst; member 107 MachineBasicBlock::iterator &back() { return LastInst; } in back() 122 MachineBasicBlock::iterator &LastInst, MachineBasicBlock *MBB, in Candidate() 124 : StartIdx(StartIdx), Len(Len), FirstInst(FirstInst), LastInst(LastInst), in Candidate()
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | MachineOutliner.h | 50 MachineBasicBlock::iterator LastInst; member 108 MachineBasicBlock::iterator &back() { return LastInst; } in back() 123 MachineBasicBlock::iterator &LastInst, MachineBasicBlock *MBB, in Candidate() 125 : StartIdx(StartIdx), Len(Len), FirstInst(FirstInst), LastInst(LastInst), in Candidate()
|
/external/llvm/lib/Target/Mips/ |
D | MipsInstrInfo.cpp | 197 MachineInstr *LastInst = &*I; in analyzeBranch() local 198 unsigned LastOpc = LastInst->getOpcode(); in analyzeBranch() 199 BranchInstrs.push_back(LastInst); in analyzeBranch() 203 return LastInst->isIndirectBranch() ? BT_Indirect : BT_None; in analyzeBranch() 221 if (LastInst->isUnconditionalBranch()) { in analyzeBranch() 222 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 227 AnalyzeCondBr(LastInst, LastOpc, TBB, Cond); in analyzeBranch() 246 LastInst->eraseFromParent(); in analyzeBranch() 253 if (!LastInst->isUnconditionalBranch()) in analyzeBranch() 257 FBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCInstrInfo.cpp | 463 MachineInstr *LastInst = I; in analyzeBranch() local 467 if (LastInst->getOpcode() == PPC::B) { in analyzeBranch() 468 if (!LastInst->getOperand(0).isMBB()) in analyzeBranch() 470 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 472 } else if (LastInst->getOpcode() == PPC::BCC) { in analyzeBranch() 473 if (!LastInst->getOperand(2).isMBB()) in analyzeBranch() 476 TBB = LastInst->getOperand(2).getMBB(); in analyzeBranch() 477 Cond.push_back(LastInst->getOperand(0)); in analyzeBranch() 478 Cond.push_back(LastInst->getOperand(1)); in analyzeBranch() 480 } else if (LastInst->getOpcode() == PPC::BC) { in analyzeBranch() [all …]
|
/external/llvm-project/llvm/lib/Target/Sparc/ |
D | SparcInstrInfo.cpp | 153 static void parseCondBranch(MachineInstr *LastInst, MachineBasicBlock *&Target, in parseCondBranch() argument 155 Cond.push_back(MachineOperand::CreateImm(LastInst->getOperand(1).getImm())); in parseCondBranch() 156 Target = LastInst->getOperand(0).getMBB(); in parseCondBranch() 172 MachineInstr *LastInst = &*I; in analyzeBranch() local 173 unsigned LastOpc = LastInst->getOpcode(); in analyzeBranch() 178 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 183 parseCondBranch(LastInst, TBB, Cond); in analyzeBranch() 197 LastInst->eraseFromParent(); in analyzeBranch() 198 LastInst = SecondLastInst; in analyzeBranch() 199 LastOpc = LastInst->getOpcode(); in analyzeBranch() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/ |
D | SparcInstrInfo.cpp | 153 static void parseCondBranch(MachineInstr *LastInst, MachineBasicBlock *&Target, in parseCondBranch() argument 155 Cond.push_back(MachineOperand::CreateImm(LastInst->getOperand(1).getImm())); in parseCondBranch() 156 Target = LastInst->getOperand(0).getMBB(); in parseCondBranch() 172 MachineInstr *LastInst = &*I; in analyzeBranch() local 173 unsigned LastOpc = LastInst->getOpcode(); in analyzeBranch() 178 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 183 parseCondBranch(LastInst, TBB, Cond); in analyzeBranch() 197 LastInst->eraseFromParent(); in analyzeBranch() 198 LastInst = SecondLastInst; in analyzeBranch() 199 LastOpc = LastInst->getOpcode(); in analyzeBranch() [all …]
|
/external/llvm/lib/Target/Sparc/ |
D | SparcInstrInfo.cpp | 154 static void parseCondBranch(MachineInstr *LastInst, MachineBasicBlock *&Target, in parseCondBranch() argument 156 Cond.push_back(MachineOperand::CreateImm(LastInst->getOperand(1).getImm())); in parseCondBranch() 157 Target = LastInst->getOperand(0).getMBB(); in parseCondBranch() 173 MachineInstr *LastInst = &*I; in analyzeBranch() local 174 unsigned LastOpc = LastInst->getOpcode(); in analyzeBranch() 179 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 184 parseCondBranch(LastInst, TBB, Cond); in analyzeBranch() 198 LastInst->eraseFromParent(); in analyzeBranch() 199 LastInst = SecondLastInst; in analyzeBranch() 200 LastOpc = LastInst->getOpcode(); in analyzeBranch() [all …]
|
/external/llvm-project/llvm/lib/Target/VE/ |
D | VEInstrInfo.cpp | 137 static void parseCondBranch(MachineInstr *LastInst, MachineBasicBlock *&Target, in parseCondBranch() argument 139 Cond.push_back(MachineOperand::CreateImm(LastInst->getOperand(0).getImm())); in parseCondBranch() 140 Cond.push_back(LastInst->getOperand(1)); in parseCondBranch() 141 Cond.push_back(LastInst->getOperand(2)); in parseCondBranch() 142 Target = LastInst->getOperand(3).getMBB(); in parseCondBranch() 157 MachineInstr *LastInst = &*I; in analyzeBranch() local 158 unsigned LastOpc = LastInst->getOpcode(); in analyzeBranch() 163 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 168 parseCondBranch(LastInst, TBB, Cond); in analyzeBranch() 182 LastInst->eraseFromParent(); in analyzeBranch() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/ |
D | MipsInstrInfo.cpp | 207 MachineInstr *LastInst = &*I; in analyzeBranch() local 208 unsigned LastOpc = LastInst->getOpcode(); in analyzeBranch() 209 BranchInstrs.push_back(LastInst); in analyzeBranch() 213 return LastInst->isIndirectBranch() ? BT_Indirect : BT_None; in analyzeBranch() 237 if (LastInst->isUnconditionalBranch()) { in analyzeBranch() 238 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 243 AnalyzeCondBr(LastInst, LastOpc, TBB, Cond); in analyzeBranch() 262 LastInst->eraseFromParent(); in analyzeBranch() 269 if (!LastInst->isUnconditionalBranch()) in analyzeBranch() 273 FBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
|
/external/llvm-project/llvm/lib/Target/Mips/ |
D | MipsInstrInfo.cpp | 208 MachineInstr *LastInst = &*I; in analyzeBranch() local 209 unsigned LastOpc = LastInst->getOpcode(); in analyzeBranch() 210 BranchInstrs.push_back(LastInst); in analyzeBranch() 214 return LastInst->isIndirectBranch() ? BT_Indirect : BT_None; in analyzeBranch() 238 if (LastInst->isUnconditionalBranch()) { in analyzeBranch() 239 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch() 244 AnalyzeCondBr(LastInst, LastOpc, TBB, Cond); in analyzeBranch() 263 LastInst->eraseFromParent(); in analyzeBranch() 270 if (!LastInst->isUnconditionalBranch()) in analyzeBranch() 274 FBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | IRSimilarityIdentifier.h | 452 IRInstructionData *LastInst = nullptr; variable 532 IRInstructionData *back() const { return LastInst; } in back() 537 Instruction *backInstruction() { return LastInst->Inst; } in backInstruction() 542 BasicBlock *getEndBB() { return LastInst->Inst->getParent(); } in getEndBB()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCInstrInfo.cpp | 525 MachineInstr &LastInst = *I; in analyzeBranch() local 529 if (LastInst.getOpcode() == PPC::B) { in analyzeBranch() 530 if (!LastInst.getOperand(0).isMBB()) in analyzeBranch() 532 TBB = LastInst.getOperand(0).getMBB(); in analyzeBranch() 534 } else if (LastInst.getOpcode() == PPC::BCC) { in analyzeBranch() 535 if (!LastInst.getOperand(2).isMBB()) in analyzeBranch() 538 TBB = LastInst.getOperand(2).getMBB(); in analyzeBranch() 539 Cond.push_back(LastInst.getOperand(0)); in analyzeBranch() 540 Cond.push_back(LastInst.getOperand(1)); in analyzeBranch() 542 } else if (LastInst.getOpcode() == PPC::BC) { in analyzeBranch() [all …]
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | AArch64A57FPLoadBalancing.cpp | 188 MachineInstr *StartInst, *LastInst, *KillInst; member in __anonc196c1a00211::Chain 204 : StartInst(MI), LastInst(MI), KillInst(nullptr), in Chain() 213 LastInst = MI; in add() 245 MachineInstr *getLast() const { return LastInst; } in getLast() 251 return ++MachineBasicBlock::iterator(KillInst ? KillInst : LastInst); in end() 292 LastInst->print(OS, /* SkipOpers= */true); in str()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64A57FPLoadBalancing.cpp | 188 MachineInstr *StartInst, *LastInst, *KillInst; member in __anon6803f9140211::Chain 204 : StartInst(MI), LastInst(MI), KillInst(nullptr), in Chain() 213 LastInst = MI; in add() 245 MachineInstr *getLast() const { return LastInst; } in getLast() 251 return ++MachineBasicBlock::iterator(KillInst ? KillInst : LastInst); in end() 292 LastInst->print(OS, /* SkipOpers= */true); in str()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64A57FPLoadBalancing.cpp | 193 MachineInstr *StartInst, *LastInst, *KillInst; member in __anon911bd4320211::Chain 209 : StartInst(MI), LastInst(MI), KillInst(nullptr), in Chain() 218 LastInst = MI; in add() 250 MachineInstr *getLast() const { return LastInst; } in getLast() 256 return ++MachineBasicBlock::iterator(KillInst ? KillInst : LastInst); in end() 297 LastInst->print(OS, /* SkipOpers= */true); in str()
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCInstrInfo.cpp | 866 MachineInstr &LastInst = *I; in analyzeBranch() local 870 if (LastInst.getOpcode() == PPC::B) { in analyzeBranch() 871 if (!LastInst.getOperand(0).isMBB()) in analyzeBranch() 873 TBB = LastInst.getOperand(0).getMBB(); in analyzeBranch() 875 } else if (LastInst.getOpcode() == PPC::BCC) { in analyzeBranch() 876 if (!LastInst.getOperand(2).isMBB()) in analyzeBranch() 879 TBB = LastInst.getOperand(2).getMBB(); in analyzeBranch() 880 Cond.push_back(LastInst.getOperand(0)); in analyzeBranch() 881 Cond.push_back(LastInst.getOperand(1)); in analyzeBranch() 883 } else if (LastInst.getOpcode() == PPC::BC) { in analyzeBranch() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/ |
D | RISCVInstrInfo.cpp | 206 static void parseCondBranch(MachineInstr &LastInst, MachineBasicBlock *&Target, in parseCondBranch() argument 209 assert(LastInst.getDesc().isConditionalBranch() && in parseCondBranch() 211 Target = LastInst.getOperand(2).getMBB(); in parseCondBranch() 212 Cond.push_back(MachineOperand::CreateImm(LastInst.getOpcode())); in parseCondBranch() 213 Cond.push_back(LastInst.getOperand(0)); in parseCondBranch() 214 Cond.push_back(LastInst.getOperand(1)); in parseCondBranch()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | Debugify.cpp | 109 Instruction *LastInst = findTerminatingInstruction(BB); in applyDebugifyMetadata() local 110 assert(LastInst && "Expected basic block with a terminator"); in applyDebugifyMetadata() 119 for (Instruction *I = &*BB.begin(); I != LastInst; I = I->getNextNode()) { in applyDebugifyMetadata()
|
/external/llvm-project/llvm/lib/Target/RISCV/ |
D | RISCVInstrInfo.cpp | 228 static void parseCondBranch(MachineInstr &LastInst, MachineBasicBlock *&Target, in parseCondBranch() argument 231 assert(LastInst.getDesc().isConditionalBranch() && in parseCondBranch() 233 Target = LastInst.getOperand(2).getMBB(); in parseCondBranch() 234 Cond.push_back(MachineOperand::CreateImm(LastInst.getOpcode())); in parseCondBranch() 235 Cond.push_back(LastInst.getOperand(0)); in parseCondBranch() 236 Cond.push_back(LastInst.getOperand(1)); in parseCondBranch()
|