Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp125 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
132 if (SecondLastInst.getOpcode() == NVPTX::CBranch && in analyzeBranch()
134 TBB = SecondLastInst.getOperand(1).getMBB(); in analyzeBranch()
135 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
142 if (SecondLastInst.getOpcode() == NVPTX::GOTO && in analyzeBranch()
144 TBB = SecondLastInst.getOperand(0).getMBB(); in analyzeBranch()
/external/swiftshader/third_party/LLVM/lib/Target/XCore/
DXCoreInstrInfo.cpp228 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
231 if (SecondLastInst && I != MBB.begin() && in AnalyzeBranch()
235 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
243 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch()
245 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
253 if (IsBRU(SecondLastInst->getOpcode()) && in AnalyzeBranch()
255 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
263 if (IsBR_JT(SecondLastInst->getOpcode()) && IsBRU(LastInst->getOpcode())) { in AnalyzeBranch()
/external/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp178 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
185 if (SecondLastInst.getOpcode() == NVPTX::CBranch && in analyzeBranch()
187 TBB = SecondLastInst.getOperand(1).getMBB(); in analyzeBranch()
188 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
195 if (SecondLastInst.getOpcode() == NVPTX::GOTO && in analyzeBranch()
197 TBB = SecondLastInst.getOperand(0).getMBB(); in analyzeBranch()
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/
DMBlazeInstrInfo.cpp155 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
158 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(--I)) in AnalyzeBranch()
162 if (MBlaze::isCondBranchOpcode(SecondLastInst->getOpcode()) && in AnalyzeBranch()
164 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch()
165 Cond.push_back(MachineOperand::CreateImm(SecondLastInst->getOpcode())); in AnalyzeBranch()
166 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
173 if (MBlaze::isUncondBranchOpcode(SecondLastInst->getOpcode()) && in AnalyzeBranch()
175 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/swiftshader/third_party/LLVM/lib/Target/Alpha/
DAlphaInstrInfo.cpp256 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
259 if (SecondLastInst && I != MBB.begin() && in AnalyzeBranch()
264 if ((SecondLastInst->getOpcode() == Alpha::COND_BRANCH_I || in AnalyzeBranch()
265 SecondLastInst->getOpcode() == Alpha::COND_BRANCH_F) && in AnalyzeBranch()
267 TBB = SecondLastInst->getOperand(2).getMBB(); in AnalyzeBranch()
268 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
269 Cond.push_back(SecondLastInst->getOperand(1)); in AnalyzeBranch()
276 if (SecondLastInst->getOpcode() == Alpha::BR && in AnalyzeBranch()
278 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/XCore/
DXCoreInstrInfo.cpp227 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
230 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
233 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
241 TBB = SecondLastInst->getOperand(1).getMBB(); in analyzeBranch()
243 Cond.push_back(SecondLastInst->getOperand(0)); in analyzeBranch()
251 if (IsBRU(SecondLastInst->getOpcode()) && in analyzeBranch()
253 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
261 if (IsBR_JT(SecondLastInst->getOpcode()) && IsBRU(LastInst->getOpcode())) { in analyzeBranch()
/external/llvm/lib/Target/XCore/
DXCoreInstrInfo.cpp227 MachineInstr *SecondLastInst = I; in analyzeBranch() local
230 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
233 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
241 TBB = SecondLastInst->getOperand(1).getMBB(); in analyzeBranch()
243 Cond.push_back(SecondLastInst->getOperand(0)); in analyzeBranch()
251 if (IsBRU(SecondLastInst->getOpcode()) && in analyzeBranch()
253 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
261 if (IsBR_JT(SecondLastInst->getOpcode()) && IsBRU(LastInst->getOpcode())) { in analyzeBranch()
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/
DSPUInstrInfo.cpp255 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
258 if (SecondLastInst && I != MBB.begin() && in AnalyzeBranch()
263 if (isCondBranch(SecondLastInst) && isUncondBranch(LastInst)) { in AnalyzeBranch()
264 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch()
266 DEBUG(SecondLastInst->dump()); in AnalyzeBranch()
267 Cond.push_back(MachineOperand::CreateImm(SecondLastInst->getOpcode())); in AnalyzeBranch()
268 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
275 if (isUncondBranch(SecondLastInst) && isUncondBranch(LastInst)) { in AnalyzeBranch()
276 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/lib/Target/Mips/
DMipsInstrInfo.cpp207 MachineInstr *SecondLastInst = nullptr; in analyzeBranch() local
210 SecondLastInst = &*I; in analyzeBranch()
211 SecondLastOpc = getAnalyzableBrOpc(SecondLastInst->getOpcode()); in analyzeBranch()
214 if (isUnpredicatedTerminator(*SecondLastInst) && !SecondLastOpc) in analyzeBranch()
236 BranchInstrs.insert(BranchInstrs.begin(), SecondLastInst); in analyzeBranch()
240 if (SecondLastInst->isUnconditionalBranch()) { in analyzeBranch()
245 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
256 AnalyzeCondBr(SecondLastInst, SecondLastOpc, TBB, Cond); in analyzeBranch()
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp525 MachineInstr *SecondLastInst = I; in analyzeBranch() local
528 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
532 if (SecondLastInst->getOpcode() == PPC::BCC && in analyzeBranch()
534 if (!SecondLastInst->getOperand(2).isMBB() || in analyzeBranch()
537 TBB = SecondLastInst->getOperand(2).getMBB(); in analyzeBranch()
538 Cond.push_back(SecondLastInst->getOperand(0)); in analyzeBranch()
539 Cond.push_back(SecondLastInst->getOperand(1)); in analyzeBranch()
542 } else if (SecondLastInst->getOpcode() == PPC::BC && in analyzeBranch()
544 if (!SecondLastInst->getOperand(1).isMBB() || in analyzeBranch()
547 TBB = SecondLastInst->getOperand(1).getMBB(); in analyzeBranch()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCInstrInfo.cpp211 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
214 if (SecondLastInst && I != MBB.begin() && in AnalyzeBranch()
219 if (SecondLastInst->getOpcode() == PPC::BCC && in AnalyzeBranch()
221 if (!SecondLastInst->getOperand(2).isMBB() || in AnalyzeBranch()
224 TBB = SecondLastInst->getOperand(2).getMBB(); in AnalyzeBranch()
225 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
226 Cond.push_back(SecondLastInst->getOperand(1)); in AnalyzeBranch()
233 if (SecondLastInst->getOpcode() == PPC::B && in AnalyzeBranch()
235 if (!SecondLastInst->getOperand(0).isMBB()) in AnalyzeBranch()
237 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/
DSparcInstrInfo.cpp191 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
192 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
199 LastInst = SecondLastInst; in analyzeBranch()
206 SecondLastInst = &*I; in analyzeBranch()
207 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
213 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
218 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch()
226 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
/external/llvm/lib/Target/Sparc/
DSparcInstrInfo.cpp191 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
192 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
199 LastInst = SecondLastInst; in analyzeBranch()
206 SecondLastInst = &*I; in analyzeBranch()
207 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
213 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
218 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch()
226 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/
DMipsInstrInfo.cpp218 MachineInstr *SecondLastInst = nullptr; in analyzeBranch() local
227 SecondLastInst = &*I; in analyzeBranch()
228 SecondLastOpc = getAnalyzableBrOpc(SecondLastInst->getOpcode()); in analyzeBranch()
231 if (isUnpredicatedTerminator(*SecondLastInst) && !SecondLastOpc) in analyzeBranch()
253 BranchInstrs.insert(BranchInstrs.begin(), SecondLastInst); in analyzeBranch()
257 if (SecondLastInst->isUnconditionalBranch()) { in analyzeBranch()
262 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
273 AnalyzeCondBr(SecondLastInst, SecondLastOpc, TBB, Cond); in analyzeBranch()
/external/swiftshader/third_party/LLVM/lib/Target/Mips/
DMipsInstrInfo.cpp303 MachineInstr *SecondLastInst = NULL; in AnalyzeBranch() local
306 SecondLastInst = &*I; in AnalyzeBranch()
307 SecondLastOpc = GetAnalyzableBrOpc(SecondLastInst->getOpcode()); in AnalyzeBranch()
310 if (isUnpredicatedTerminator(SecondLastInst) && !SecondLastOpc) in AnalyzeBranch()
339 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
349 AnalyzeCondBr(SecondLastInst, SecondLastOpc, TBB, Cond); in AnalyzeBranch()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp575 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
582 if (SecondLastInst.getOpcode() == PPC::BCC && in analyzeBranch()
584 if (!SecondLastInst.getOperand(2).isMBB() || in analyzeBranch()
587 TBB = SecondLastInst.getOperand(2).getMBB(); in analyzeBranch()
588 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
589 Cond.push_back(SecondLastInst.getOperand(1)); in analyzeBranch()
592 } else if (SecondLastInst.getOpcode() == PPC::BC && in analyzeBranch()
594 if (!SecondLastInst.getOperand(1).isMBB() || in analyzeBranch()
597 TBB = SecondLastInst.getOperand(1).getMBB(); in analyzeBranch()
599 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.cpp432 MachineInstr *SecondLastInst = nullptr; in analyzeBranch() local
436 if (!SecondLastInst) in analyzeBranch()
437 SecondLastInst = &*I; in analyzeBranch()
448 int SecLastOpcode = SecondLastInst ? SecondLastInst->getOpcode() : 0; in analyzeBranch()
454 !SecondLastInst->getOperand(0).isMBB()) in analyzeBranch()
464 if (LastInst && !SecondLastInst) { in analyzeBranch()
496 bool SecLastOpcodeHasNVJump = isNewValueJump(SecondLastInst); in analyzeBranch()
498 if (!SecondLastInst->getOperand(1).isMBB()) in analyzeBranch()
500 TBB = SecondLastInst->getOperand(1).getMBB(); in analyzeBranch()
501 Cond.push_back(MachineOperand::CreateImm(SecondLastInst->getOpcode())); in analyzeBranch()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.cpp445 MachineInstr *SecondLastInst = nullptr; in analyzeBranch() local
449 if (!SecondLastInst) in analyzeBranch()
450 SecondLastInst = &*I; in analyzeBranch()
461 int SecLastOpcode = SecondLastInst ? SecondLastInst->getOpcode() : 0; in analyzeBranch()
467 !SecondLastInst->getOperand(0).isMBB()) in analyzeBranch()
477 if (LastInst && !SecondLastInst) { in analyzeBranch()
509 bool SecLastOpcodeHasNVJump = isNewValueJump(*SecondLastInst); in analyzeBranch()
511 if (!SecondLastInst->getOperand(1).isMBB()) in analyzeBranch()
513 TBB = SecondLastInst->getOperand(1).getMBB(); in analyzeBranch()
514 Cond.push_back(MachineOperand::CreateImm(SecondLastInst->getOpcode())); in analyzeBranch()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMBaseInstrInfo.cpp308 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
309 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
316 LastInst = SecondLastInst; in AnalyzeBranch()
323 SecondLastInst = I; in AnalyzeBranch()
324 SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
330 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(--I)) in AnalyzeBranch()
335 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
336 Cond.push_back(SecondLastInst->getOperand(1)); in AnalyzeBranch()
337 Cond.push_back(SecondLastInst->getOperand(2)); in AnalyzeBranch()
345 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp128 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
129 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
136 LastInst = SecondLastInst; in analyzeBranch()
143 SecondLastInst = &*I; in analyzeBranch()
144 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
150 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
155 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch()
163 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DR600InstrInfo.cpp725 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
726 unsigned SecondLastOpc = SecondLastInst.getOpcode(); in analyzeBranch()
734 TBB = SecondLastInst.getOperand(0).getMBB(); in analyzeBranch()
/external/llvm/lib/Target/AMDGPU/
DR600InstrInfo.cpp737 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
738 unsigned SecondLastOpc = SecondLastInst.getOpcode(); in analyzeBranch()
746 TBB = SecondLastInst.getOperand(0).getMBB(); in analyzeBranch()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp230 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
231 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
238 LastInst = SecondLastInst; in analyzeBranch()
245 SecondLastInst = &*I; in analyzeBranch()
246 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
252 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
257 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch()
265 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
/external/swiftshader/third_party/llvm-7.0/llvm/docs/
DWritingAnLLVMBackend.rst1166 TBB = SecondLastInst->getOperand(0).getMBB();
1198 unsigned SecondLastOpc = SecondLastInst->getOpcode();
1202 TBB = SecondLastInst->getOperand(0).getMBB();
1203 Cond.push_back(SecondLastInst->getOperand(1));
1204 Cond.push_back(SecondLastInst->getOperand(2));
/external/llvm/docs/
DWritingAnLLVMBackend.rst1126 TBB = SecondLastInst->getOperand(0).getMBB();
1158 unsigned SecondLastOpc = SecondLastInst->getOpcode();
1162 TBB = SecondLastInst->getOperand(0).getMBB();
1163 Cond.push_back(SecondLastInst->getOperand(1));
1164 Cond.push_back(SecondLastInst->getOperand(2));