Searched refs:SecondLastInst (Results 1 - 15 of 15) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/
H A DMBlazeInstrInfo.cpp155 MachineInstr *SecondLastInst = I; local
158 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(--I))
162 if (MBlaze::isCondBranchOpcode(SecondLastInst->getOpcode()) &&
164 TBB = SecondLastInst->getOperand(1).getMBB();
165 Cond.push_back(MachineOperand::CreateImm(SecondLastInst->getOpcode()));
166 Cond.push_back(SecondLastInst->getOperand(0));
173 if (MBlaze::isUncondBranchOpcode(SecondLastInst->getOpcode()) &&
175 TBB = SecondLastInst->getOperand(0).getMBB();
/external/swiftshader/third_party/LLVM/lib/Target/XCore/
H A DXCoreInstrInfo.cpp228 MachineInstr *SecondLastInst = I; local
231 if (SecondLastInst && I != MBB.begin() &&
235 unsigned SecondLastOpc = SecondLastInst->getOpcode();
243 TBB = SecondLastInst->getOperand(1).getMBB();
245 Cond.push_back(SecondLastInst->getOperand(0));
253 if (IsBRU(SecondLastInst->getOpcode()) &&
255 TBB = SecondLastInst->getOperand(0).getMBB();
263 if (IsBR_JT(SecondLastInst->getOpcode()) && IsBRU(LastInst->getOpcode())) {
/external/llvm/lib/Target/NVPTX/
H A DNVPTXInstrInfo.cpp178 MachineInstr &SecondLastInst = *I; local
185 if (SecondLastInst.getOpcode() == NVPTX::CBranch &&
187 TBB = SecondLastInst.getOperand(1).getMBB();
188 Cond.push_back(SecondLastInst.getOperand(0));
195 if (SecondLastInst.getOpcode() == NVPTX::GOTO &&
197 TBB = SecondLastInst.getOperand(0).getMBB();
/external/swiftshader/third_party/LLVM/lib/Target/Alpha/
H A DAlphaInstrInfo.cpp256 MachineInstr *SecondLastInst = I; local
259 if (SecondLastInst && I != MBB.begin() &&
264 if ((SecondLastInst->getOpcode() == Alpha::COND_BRANCH_I ||
265 SecondLastInst->getOpcode() == Alpha::COND_BRANCH_F) &&
267 TBB = SecondLastInst->getOperand(2).getMBB();
268 Cond.push_back(SecondLastInst->getOperand(0));
269 Cond.push_back(SecondLastInst->getOperand(1));
276 if (SecondLastInst->getOpcode() == Alpha::BR &&
278 TBB = SecondLastInst->getOperand(0).getMBB();
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/
H A DSPUInstrInfo.cpp255 MachineInstr *SecondLastInst = I; local
258 if (SecondLastInst && I != MBB.begin() &&
263 if (isCondBranch(SecondLastInst) && isUncondBranch(LastInst)) {
264 TBB = SecondLastInst->getOperand(1).getMBB();
265 DEBUG(errs() << "Pushing SecondLastInst: ");
266 DEBUG(SecondLastInst->dump());
267 Cond.push_back(MachineOperand::CreateImm(SecondLastInst->getOpcode()));
268 Cond.push_back(SecondLastInst->getOperand(0));
275 if (isUncondBranch(SecondLastInst) && isUncondBranch(LastInst)) {
276 TBB = SecondLastInst
[all...]
/external/llvm/lib/Target/Mips/
H A DMipsInstrInfo.cpp207 MachineInstr *SecondLastInst = nullptr; local
210 SecondLastInst = &*I;
211 SecondLastOpc = getAnalyzableBrOpc(SecondLastInst->getOpcode());
214 if (isUnpredicatedTerminator(*SecondLastInst) && !SecondLastOpc)
236 BranchInstrs.insert(BranchInstrs.begin(), SecondLastInst);
240 if (SecondLastInst->isUnconditionalBranch()) {
245 TBB = SecondLastInst->getOperand(0).getMBB();
256 AnalyzeCondBr(SecondLastInst, SecondLastOpc, TBB, Cond);
/external/llvm/lib/Target/XCore/
H A DXCoreInstrInfo.cpp227 MachineInstr *SecondLastInst = I; local
230 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I))
233 unsigned SecondLastOpc = SecondLastInst->getOpcode();
241 TBB = SecondLastInst->getOperand(1).getMBB();
243 Cond.push_back(SecondLastInst->getOperand(0));
251 if (IsBRU(SecondLastInst->getOpcode()) &&
253 TBB = SecondLastInst->getOperand(0).getMBB();
261 if (IsBR_JT(SecondLastInst->getOpcode()) && IsBRU(LastInst->getOpcode())) {
/external/llvm/lib/Target/Sparc/
H A DSparcInstrInfo.cpp191 MachineInstr *SecondLastInst = &*I; local
192 unsigned SecondLastOpc = SecondLastInst->getOpcode();
199 LastInst = SecondLastInst;
206 SecondLastInst = &*I;
207 SecondLastOpc = SecondLastInst->getOpcode();
213 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I))
218 parseCondBranch(SecondLastInst, TBB, Cond);
226 TBB = SecondLastInst->getOperand(0).getMBB();
/external/llvm/lib/Target/PowerPC/
H A DPPCInstrInfo.cpp525 MachineInstr *SecondLastInst = I; local
528 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I))
532 if (SecondLastInst->getOpcode() == PPC::BCC &&
534 if (!SecondLastInst->getOperand(2).isMBB() ||
537 TBB = SecondLastInst->getOperand(2).getMBB();
538 Cond.push_back(SecondLastInst->getOperand(0));
539 Cond.push_back(SecondLastInst->getOperand(1));
542 } else if (SecondLastInst->getOpcode() == PPC::BC &&
544 if (!SecondLastInst->getOperand(1).isMBB() ||
547 TBB = SecondLastInst
[all...]
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
H A DPPCInstrInfo.cpp211 MachineInstr *SecondLastInst = I; local
214 if (SecondLastInst && I != MBB.begin() &&
219 if (SecondLastInst->getOpcode() == PPC::BCC &&
221 if (!SecondLastInst->getOperand(2).isMBB() ||
224 TBB = SecondLastInst->getOperand(2).getMBB();
225 Cond.push_back(SecondLastInst->getOperand(0));
226 Cond.push_back(SecondLastInst->getOperand(1));
233 if (SecondLastInst->getOpcode() == PPC::B &&
235 if (!SecondLastInst->getOperand(0).isMBB())
237 TBB = SecondLastInst
[all...]
/external/swiftshader/third_party/LLVM/lib/Target/Mips/
H A DMipsInstrInfo.cpp303 MachineInstr *SecondLastInst = NULL; local
306 SecondLastInst = &*I;
307 SecondLastOpc = GetAnalyzableBrOpc(SecondLastInst->getOpcode());
310 if (isUnpredicatedTerminator(SecondLastInst) && !SecondLastOpc)
339 TBB = SecondLastInst->getOperand(0).getMBB();
349 AnalyzeCondBr(SecondLastInst, SecondLastOpc, TBB, Cond);
/external/llvm/lib/Target/Hexagon/
H A DHexagonInstrInfo.cpp432 MachineInstr *SecondLastInst = nullptr; local
436 if (!SecondLastInst)
437 SecondLastInst = &*I;
448 int SecLastOpcode = SecondLastInst ? SecondLastInst->getOpcode() : 0;
454 !SecondLastInst->getOperand(0).isMBB())
464 if (LastInst && !SecondLastInst) {
496 bool SecLastOpcodeHasNVJump = isNewValueJump(SecondLastInst);
498 if (!SecondLastInst->getOperand(1).isMBB())
500 TBB = SecondLastInst
3259 MachineInstr *SecondLastInst = nullptr; local
[all...]
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
H A DARMBaseInstrInfo.cpp308 MachineInstr *SecondLastInst = I; local
309 unsigned SecondLastOpc = SecondLastInst->getOpcode();
316 LastInst = SecondLastInst;
323 SecondLastInst = I;
324 SecondLastOpc = SecondLastInst->getOpcode();
330 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(--I))
335 TBB = SecondLastInst->getOperand(0).getMBB();
336 Cond.push_back(SecondLastInst->getOperand(1));
337 Cond.push_back(SecondLastInst->getOperand(2));
345 TBB = SecondLastInst
[all...]
/external/llvm/lib/Target/AArch64/
H A DAArch64InstrInfo.cpp128 MachineInstr *SecondLastInst = &*I; local
129 unsigned SecondLastOpc = SecondLastInst->getOpcode();
136 LastInst = SecondLastInst;
143 SecondLastInst = &*I;
144 SecondLastOpc = SecondLastInst->getOpcode();
150 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I))
155 parseCondBranch(SecondLastInst, TBB, Cond);
163 TBB = SecondLastInst->getOperand(0).getMBB();
/external/llvm/lib/Target/AMDGPU/
H A DR600InstrInfo.cpp737 MachineInstr &SecondLastInst = *I;
738 unsigned SecondLastOpc = SecondLastInst.getOpcode();
746 TBB = SecondLastInst.getOperand(0).getMBB();

Completed in 373 milliseconds