Home
last modified time | relevance | path

Searched refs:LastInst (Results 1 – 25 of 39) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp107 MachineInstr &LastInst = *I; in analyzeBranch() local
111 if (LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch()
112 TBB = LastInst.getOperand(0).getMBB(); in analyzeBranch()
114 } else if (LastInst.getOpcode() == NVPTX::CBranch) { in analyzeBranch()
116 TBB = LastInst.getOperand(1).getMBB(); in analyzeBranch()
117 Cond.push_back(LastInst.getOperand(0)); in analyzeBranch()
133 LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch()
136 FBB = LastInst.getOperand(0).getMBB(); in analyzeBranch()
143 LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch()
145 I = LastInst; in analyzeBranch()
/external/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp160 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/swiftshader/third_party/LLVM/lib/Target/XCore/
DXCoreInstrInfo.cpp205 MachineInstr *LastInst = I; in AnalyzeBranch() local
209 if (IsBRU(LastInst->getOpcode())) { in AnalyzeBranch()
210 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
214 XCore::CondCode BranchCode = GetCondFromBranchOpc(LastInst->getOpcode()); in AnalyzeBranch()
221 TBB = LastInst->getOperand(1).getMBB(); in AnalyzeBranch()
223 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
241 && IsBRU(LastInst->getOpcode())) { in AnalyzeBranch()
247 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
254 IsBRU(LastInst->getOpcode())) { in AnalyzeBranch()
256 I = LastInst; in AnalyzeBranch()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/XCore/
DXCoreInstrInfo.cpp204 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/llvm/lib/Target/XCore/
DXCoreInstrInfo.cpp204 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/lib/Target/CellSPU/
DSPUInstrInfo.cpp231 MachineInstr *LastInst = I; in AnalyzeBranch() local
235 if (isUncondBranch(LastInst)) { in AnalyzeBranch()
237 if (!LastInst->getOperand(0).isMBB()) in AnalyzeBranch()
239 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
241 } else if (isCondBranch(LastInst)) { in AnalyzeBranch()
243 TBB = LastInst->getOperand(1).getMBB(); in AnalyzeBranch()
245 DEBUG(LastInst->dump()); in AnalyzeBranch()
246 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in AnalyzeBranch()
247 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
263 if (isCondBranch(SecondLastInst) && isUncondBranch(LastInst)) { in AnalyzeBranch()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/Alpha/
DAlphaInstrInfo.cpp236 MachineInstr *LastInst = I; in AnalyzeBranch() local
240 if (LastInst->getOpcode() == Alpha::BR) { in AnalyzeBranch()
241 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
243 } else if (LastInst->getOpcode() == Alpha::COND_BRANCH_I || in AnalyzeBranch()
244 LastInst->getOpcode() == Alpha::COND_BRANCH_F) { in AnalyzeBranch()
246 TBB = LastInst->getOperand(2).getMBB(); in AnalyzeBranch()
247 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
248 Cond.push_back(LastInst->getOperand(1)); in AnalyzeBranch()
266 LastInst->getOpcode() == Alpha::BR) { in AnalyzeBranch()
270 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/
DMBlazeInstrInfo.cpp134 MachineInstr *LastInst = I; in AnalyzeBranch() local
137 unsigned LastOpc = LastInst->getOpcode(); in AnalyzeBranch()
140 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
145 TBB = LastInst->getOperand(1).getMBB(); in AnalyzeBranch()
146 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in AnalyzeBranch()
147 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
163 MBlaze::isUncondBranchOpcode(LastInst->getOpcode())) { in AnalyzeBranch()
167 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
174 MBlaze::isUncondBranchOpcode(LastInst->getOpcode())) { in AnalyzeBranch()
176 I = LastInst; in AnalyzeBranch()
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp463 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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DMachineOutliner.h50 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/lib/Target/Mips/
DMipsInstrInfo.cpp197 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/
DSparcInstrInfo.cpp154 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/lib/Target/Sparc/
DSparcInstrInfo.cpp154 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/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCInstrInfo.cpp188 MachineInstr *LastInst = I; in AnalyzeBranch() local
192 if (LastInst->getOpcode() == PPC::B) { in AnalyzeBranch()
193 if (!LastInst->getOperand(0).isMBB()) in AnalyzeBranch()
195 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
197 } else if (LastInst->getOpcode() == PPC::BCC) { in AnalyzeBranch()
198 if (!LastInst->getOperand(2).isMBB()) in AnalyzeBranch()
201 TBB = LastInst->getOperand(2).getMBB(); in AnalyzeBranch()
202 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
203 Cond.push_back(LastInst->getOperand(1)); in AnalyzeBranch()
220 LastInst->getOpcode() == PPC::B) { in AnalyzeBranch()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/
DMipsInstrInfo.cpp208 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp513 MachineInstr &LastInst = *I; in analyzeBranch() local
517 if (LastInst.getOpcode() == PPC::B) { in analyzeBranch()
518 if (!LastInst.getOperand(0).isMBB()) in analyzeBranch()
520 TBB = LastInst.getOperand(0).getMBB(); in analyzeBranch()
522 } else if (LastInst.getOpcode() == PPC::BCC) { in analyzeBranch()
523 if (!LastInst.getOperand(2).isMBB()) in analyzeBranch()
526 TBB = LastInst.getOperand(2).getMBB(); in analyzeBranch()
527 Cond.push_back(LastInst.getOperand(0)); in analyzeBranch()
528 Cond.push_back(LastInst.getOperand(1)); in analyzeBranch()
530 } else if (LastInst.getOpcode() == PPC::BC) { in analyzeBranch()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/RISCV/
DRISCVInstrInfo.cpp183 static void parseCondBranch(MachineInstr &LastInst, MachineBasicBlock *&Target, in parseCondBranch() argument
186 assert(LastInst.getDesc().isConditionalBranch() && in parseCondBranch()
188 Target = LastInst.getOperand(2).getMBB(); in parseCondBranch()
189 Cond.push_back(MachineOperand::CreateImm(LastInst.getOpcode())); in parseCondBranch()
190 Cond.push_back(LastInst.getOperand(0)); in parseCondBranch()
191 Cond.push_back(LastInst.getOperand(1)); in parseCondBranch()
/external/swiftshader/third_party/LLVM/lib/Target/Mips/
DMipsInstrInfo.cpp294 MachineInstr *LastInst = &*I; in AnalyzeBranch() local
295 unsigned LastOpc = LastInst->getOpcode(); in AnalyzeBranch()
318 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
323 AnalyzeCondBr(LastInst, LastOpc, TBB, Cond); in AnalyzeBranch()
340 LastInst->eraseFromParent(); in AnalyzeBranch()
350 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/lib/Target/AArch64/
DAArch64A57FPLoadBalancing.cpp193 MachineInstr *StartInst, *LastInst, *KillInst; member in __anon29e4c6140211::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()
DAArch64InstrInfo.cpp64 static void parseCondBranch(MachineInstr *LastInst, MachineBasicBlock *&Target, in parseCondBranch() argument
67 switch (LastInst->getOpcode()) { in parseCondBranch()
71 Target = LastInst->getOperand(1).getMBB(); in parseCondBranch()
72 Cond.push_back(LastInst->getOperand(0)); in parseCondBranch()
78 Target = LastInst->getOperand(1).getMBB(); in parseCondBranch()
80 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in parseCondBranch()
81 Cond.push_back(LastInst->getOperand(0)); in parseCondBranch()
87 Target = LastInst->getOperand(2).getMBB(); in parseCondBranch()
89 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in parseCondBranch()
90 Cond.push_back(LastInst->getOperand(0)); in parseCondBranch()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64A57FPLoadBalancing.cpp189 MachineInstr *StartInst, *LastInst, *KillInst; member in __anon7a5bb96c0211::Chain
205 : StartInst(MI), LastInst(MI), KillInst(nullptr), in Chain()
214 LastInst = MI; in add()
246 MachineInstr *getLast() const { return LastInst; } in getLast()
252 return ++MachineBasicBlock::iterator(KillInst ? KillInst : LastInst); in end()
293 LastInst->print(OS, /* SkipOpers= */true); in str()
/external/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.cpp431 MachineInstr *LastInst = &*I; in analyzeBranch() local
435 if (&*I != LastInst && !I->isBundle() && isUnpredicatedTerminator(*I)) { in analyzeBranch()
447 int LastOpcode = LastInst->getOpcode(); in analyzeBranch()
451 if (LastOpcode == Hexagon::J2_jump && !LastInst->getOperand(0).isMBB()) in analyzeBranch()
458 bool LastOpcodeHasNVJump = isNewValueJump(LastInst); in analyzeBranch()
460 if (LastOpcodeHasJMP_c && !LastInst->getOperand(1).isMBB()) in analyzeBranch()
464 if (LastInst && !SecondLastInst) { in analyzeBranch()
466 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
470 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
471 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in analyzeBranch()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.cpp444 MachineInstr *LastInst = &*I; in analyzeBranch() local
448 if (&*I != LastInst && !I->isBundle() && isUnpredicatedTerminator(*I)) { in analyzeBranch()
460 int LastOpcode = LastInst->getOpcode(); in analyzeBranch()
464 if (LastOpcode == Hexagon::J2_jump && !LastInst->getOperand(0).isMBB()) in analyzeBranch()
471 bool LastOpcodeHasNVJump = isNewValueJump(*LastInst); in analyzeBranch()
473 if (LastOpcodeHasJMP_c && !LastInst->getOperand(1).isMBB()) in analyzeBranch()
477 if (LastInst && !SecondLastInst) { in analyzeBranch()
479 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
483 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
484 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in analyzeBranch()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/opt/
DDebugify.cpp116 Instruction *LastInst = findTerminatingInstruction(BB); in applyDebugifyMetadata() local
117 assert(LastInst && "Expected basic block with a terminator"); in applyDebugifyMetadata()
126 for (Instruction *I = &*BB.begin(); I != LastInst; I = I->getNextNode()) { in applyDebugifyMetadata()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMBaseInstrInfo.cpp288 MachineInstr *LastInst = I; in AnalyzeBranch() local
291 unsigned LastOpc = LastInst->getOpcode(); in AnalyzeBranch()
294 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
299 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
300 Cond.push_back(LastInst->getOperand(1)); in AnalyzeBranch()
301 Cond.push_back(LastInst->getOperand(2)); in AnalyzeBranch()
315 LastInst->eraseFromParent(); in AnalyzeBranch()
316 LastInst = SecondLastInst; in AnalyzeBranch()
317 LastOpc = LastInst->getOpcode(); in AnalyzeBranch()
320 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
[all …]

12