Home
last modified time | relevance | path

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

/external/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/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/llvm/lib/Target/Alpha/
DAlphaInstrInfo.cpp257 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
260 if (SecondLastInst && I != MBB.begin() && in AnalyzeBranch()
265 if ((SecondLastInst->getOpcode() == Alpha::COND_BRANCH_I || in AnalyzeBranch()
266 SecondLastInst->getOpcode() == Alpha::COND_BRANCH_F) && in AnalyzeBranch()
268 TBB = SecondLastInst->getOperand(2).getMBB(); in AnalyzeBranch()
269 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
270 Cond.push_back(SecondLastInst->getOperand(1)); in AnalyzeBranch()
277 if (SecondLastInst->getOpcode() == Alpha::BR && in AnalyzeBranch()
279 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/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/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/llvm/lib/Target/Mips/
DMipsInstrInfo.cpp305 MachineInstr *SecondLastInst = NULL; in AnalyzeBranch() local
308 SecondLastInst = &*I; in AnalyzeBranch()
309 SecondLastOpc = GetAnalyzableBrOpc(SecondLastInst->getOpcode()); in AnalyzeBranch()
312 if (isUnpredicatedTerminator(SecondLastInst) && !SecondLastOpc) in AnalyzeBranch()
341 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
351 AnalyzeCondBr(SecondLastInst, SecondLastOpc, TBB, Cond); in AnalyzeBranch()
/external/llvm/lib/Target/ARM/
DARMBaseInstrInfo.cpp303 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
304 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
311 LastInst = SecondLastInst; in AnalyzeBranch()
318 SecondLastInst = I; in AnalyzeBranch()
319 SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
325 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(--I)) in AnalyzeBranch()
330 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
331 Cond.push_back(SecondLastInst->getOperand(1)); in AnalyzeBranch()
332 Cond.push_back(SecondLastInst->getOperand(2)); in AnalyzeBranch()
340 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()