Home
last modified time | relevance | path

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

/external/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp175 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
178 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(--I)) in AnalyzeBranch()
182 if (SecondLastInst->getOpcode() == NVPTX::CBranch && in AnalyzeBranch()
184 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch()
185 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
192 if (SecondLastInst->getOpcode() == NVPTX::GOTO && in AnalyzeBranch()
194 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/lib/Target/Mips/
DMipsInstrInfo.cpp205 MachineInstr *SecondLastInst = nullptr; in AnalyzeBranch() local
208 SecondLastInst = &*I; in AnalyzeBranch()
209 SecondLastOpc = getAnalyzableBrOpc(SecondLastInst->getOpcode()); in AnalyzeBranch()
212 if (isUnpredicatedTerminator(SecondLastInst) && !SecondLastOpc) in AnalyzeBranch()
234 BranchInstrs.insert(BranchInstrs.begin(), SecondLastInst); in AnalyzeBranch()
243 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
254 AnalyzeCondBr(SecondLastInst, SecondLastOpc, TBB, Cond); in AnalyzeBranch()
/external/llvm/lib/Target/XCore/
DXCoreInstrInfo.cpp230 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
233 if (SecondLastInst && I != MBB.begin() && in AnalyzeBranch()
237 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
245 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch()
247 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
255 if (IsBRU(SecondLastInst->getOpcode()) && in AnalyzeBranch()
257 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
265 if (IsBR_JT(SecondLastInst->getOpcode()) && IsBRU(LastInst->getOpcode())) { in AnalyzeBranch()
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp522 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
525 if (SecondLastInst && I != MBB.begin() && in AnalyzeBranch()
530 if (SecondLastInst->getOpcode() == PPC::BCC && in AnalyzeBranch()
532 if (!SecondLastInst->getOperand(2).isMBB() || in AnalyzeBranch()
535 TBB = SecondLastInst->getOperand(2).getMBB(); in AnalyzeBranch()
536 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
537 Cond.push_back(SecondLastInst->getOperand(1)); in AnalyzeBranch()
540 } else if (SecondLastInst->getOpcode() == PPC::BC && in AnalyzeBranch()
542 if (!SecondLastInst->getOperand(1).isMBB() || in AnalyzeBranch()
545 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
DR600InstrInfo.cpp226 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
227 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
231 isPredicated(SecondLastInst) && in AnalyzeBranch()
238 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.cpp352 MachineInstr *SecondLastInst = nullptr; in AnalyzeBranch() local
356 if (!SecondLastInst) in AnalyzeBranch()
357 SecondLastInst = &*I; in AnalyzeBranch()
368 int SecLastOpcode = SecondLastInst ? SecondLastInst->getOpcode() : 0; in AnalyzeBranch()
374 !SecondLastInst->getOperand(0).isMBB()) in AnalyzeBranch()
381 if (LastInst && !SecondLastInst) { in AnalyzeBranch()
413 bool SecLastOpcodeHasNVJump = isNewValueJump(SecondLastInst); in AnalyzeBranch()
415 TBB = SecondLastInst->getOperand(1).getMBB(); in AnalyzeBranch()
416 Cond.push_back(MachineOperand::CreateImm(SecondLastInst->getOpcode())); in AnalyzeBranch()
417 Cond.push_back(SecondLastInst->getOperand(0)); in AnalyzeBranch()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp124 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
125 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
132 LastInst = SecondLastInst; in AnalyzeBranch()
139 SecondLastInst = I; in AnalyzeBranch()
140 SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
146 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(--I)) in AnalyzeBranch()
151 parseCondBranch(SecondLastInst, TBB, Cond); in AnalyzeBranch()
159 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/lib/Target/AMDGPU/
DR600InstrInfo.cpp743 MachineInstr *SecondLastInst = I; in AnalyzeBranch() local
744 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in AnalyzeBranch()
752 TBB = SecondLastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/docs/
DWritingAnLLVMBackend.rst1128 TBB = SecondLastInst->getOperand(0).getMBB();
1160 unsigned SecondLastOpc = SecondLastInst->getOpcode();
1164 TBB = SecondLastInst->getOperand(0).getMBB();
1165 Cond.push_back(SecondLastInst->getOperand(1));
1166 Cond.push_back(SecondLastInst->getOperand(2));