Home
last modified time | relevance | path

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

/external/llvm/lib/Target/Mips/
DMipsInstrInfo.cpp218 MachineInstr *SecondLastInst = NULL; in AnalyzeBranch() local
221 SecondLastInst = &*I; in AnalyzeBranch()
222 SecondLastOpc = GetAnalyzableBrOpc(SecondLastInst->getOpcode()); in AnalyzeBranch()
225 if (isUnpredicatedTerminator(SecondLastInst) && !SecondLastOpc) in AnalyzeBranch()
247 BranchInstrs.insert(BranchInstrs.begin(), SecondLastInst); in AnalyzeBranch()
256 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
267 AnalyzeCondBr(SecondLastInst, SecondLastOpc, TBB, Cond); in AnalyzeBranch()
/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/NVPTX/
DNVPTXInstrInfo.cpp208 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
211 if (SecondLastInst && I != MBB.begin() && in AnalyzeBranch()
216 if (SecondLastInst->getOpcode() == NVPTX::CBranch && in AnalyzeBranch()
218 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch()
219 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
226 if (SecondLastInst->getOpcode() == NVPTX::GOTO && in AnalyzeBranch()
228 TBB = SecondLastInst->getOperand(0).getMBB(); 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/PowerPC/
DPPCInstrInfo.cpp274 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
277 if (SecondLastInst && I != MBB.begin() && in AnalyzeBranch()
282 if (SecondLastInst->getOpcode() == PPC::BCC && in AnalyzeBranch()
284 if (!SecondLastInst->getOperand(2).isMBB() || in AnalyzeBranch()
287 TBB = SecondLastInst->getOperand(2).getMBB(); in AnalyzeBranch()
288 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
289 Cond.push_back(SecondLastInst->getOperand(1)); in AnalyzeBranch()
292 } else if ((SecondLastInst->getOpcode() == PPC::BDNZ8 || in AnalyzeBranch()
293 SecondLastInst->getOpcode() == PPC::BDNZ) && in AnalyzeBranch()
295 if (!SecondLastInst->getOperand(0).isMBB() || in AnalyzeBranch()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp210 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
211 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
218 LastInst = SecondLastInst; in AnalyzeBranch()
225 SecondLastInst = I; in AnalyzeBranch()
226 SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
232 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(--I)) in AnalyzeBranch()
238 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch()
240 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
244 classifyCondBranch(SecondLastInst, TBB, Cond); in AnalyzeBranch()
253 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.cpp237 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
240 if (SecondLastInst && I != MBB.begin() && in AnalyzeBranch()
245 if (((SecondLastInst->getOpcode() == Hexagon::BRCOND) || in AnalyzeBranch()
246 (SecondLastInst->getOpcode() == Hexagon::JMP_c)) && in AnalyzeBranch()
248 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch()
249 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
255 if ((SecondLastInst->getOpcode() == Hexagon::JMP_cNot) && in AnalyzeBranch()
257 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch()
259 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
266 if (SecondLastInst->getOpcode() == Hexagon::JMP && in AnalyzeBranch()
[all …]
/external/llvm/lib/Target/R600/
DR600InstrInfo.cpp277 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
278 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
286 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/lib/Target/ARM/
DARMBaseInstrInfo.cpp310 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
311 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
318 LastInst = SecondLastInst; in AnalyzeBranch()
325 SecondLastInst = I; in AnalyzeBranch()
326 SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
332 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(--I)) in AnalyzeBranch()
337 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
338 Cond.push_back(SecondLastInst->getOperand(1)); in AnalyzeBranch()
339 Cond.push_back(SecondLastInst->getOperand(2)); in AnalyzeBranch()
347 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/docs/
DWritingAnLLVMBackend.rst1025 TBB = SecondLastInst->getOperand(0).getMBB();
1057 unsigned SecondLastOpc = SecondLastInst->getOpcode();
1061 TBB = SecondLastInst->getOperand(0).getMBB();
1062 Cond.push_back(SecondLastInst->getOperand(1));
1063 Cond.push_back(SecondLastInst->getOperand(2));