Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXInstrInfo.cpp121 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
128 if (SecondLastInst.getOpcode() == NVPTX::CBranch && in analyzeBranch()
130 TBB = SecondLastInst.getOperand(1).getMBB(); in analyzeBranch()
131 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
138 if (SecondLastInst.getOpcode() == NVPTX::GOTO && in analyzeBranch()
140 TBB = SecondLastInst.getOperand(0).getMBB(); in analyzeBranch()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreInstrInfo.cpp226 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
229 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
232 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
240 TBB = SecondLastInst->getOperand(1).getMBB(); in analyzeBranch()
242 Cond.push_back(SecondLastInst->getOperand(0)); in analyzeBranch()
250 if (IsBRU(SecondLastInst->getOpcode()) && in analyzeBranch()
252 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
260 if (IsBR_JT(SecondLastInst->getOpcode()) && IsBRU(LastInst->getOpcode())) { in analyzeBranch()
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcInstrInfo.cpp275 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
276 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
283 LastInst = SecondLastInst; in analyzeBranch()
290 SecondLastInst = &*I; in analyzeBranch()
291 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
297 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
302 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch()
310 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsInstrInfo.cpp231 MachineInstr *SecondLastInst = nullptr; in analyzeBranch() local
240 SecondLastInst = &*I; in analyzeBranch()
241 SecondLastOpc = getAnalyzableBrOpc(SecondLastInst->getOpcode()); in analyzeBranch()
244 if (isUnpredicatedTerminator(*SecondLastInst) && !SecondLastOpc) in analyzeBranch()
266 BranchInstrs.insert(BranchInstrs.begin(), SecondLastInst); in analyzeBranch()
270 if (SecondLastInst->isUnconditionalBranch()) { in analyzeBranch()
275 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
286 AnalyzeCondBr(SecondLastInst, SecondLastOpc, TBB, Cond); in analyzeBranch()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVEInstrInfo.cpp175 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
176 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
183 LastInst = SecondLastInst; in analyzeBranch()
190 SecondLastInst = &*I; in analyzeBranch()
191 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
196 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
201 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch()
209 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonInstrInfo.cpp495 MachineInstr *SecondLastInst = nullptr; in analyzeBranch() local
499 if (!SecondLastInst) in analyzeBranch()
500 SecondLastInst = &*I; in analyzeBranch()
511 int SecLastOpcode = SecondLastInst ? SecondLastInst->getOpcode() : 0; in analyzeBranch()
517 !SecondLastInst->getOperand(0).isMBB()) in analyzeBranch()
527 if (LastInst && !SecondLastInst) { in analyzeBranch()
559 bool SecLastOpcodeHasNVJump = isNewValueJump(*SecondLastInst); in analyzeBranch()
561 if (!SecondLastInst->getOperand(1).isMBB()) in analyzeBranch()
563 TBB = SecondLastInst->getOperand(1).getMBB(); in analyzeBranch()
564 Cond.push_back(MachineOperand::CreateImm(SecondLastInst->getOpcode())); in analyzeBranch()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCInstrInfo.cpp1352 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
1359 if (SecondLastInst.getOpcode() == PPC::BCC && in analyzeBranch()
1361 if (!SecondLastInst.getOperand(2).isMBB() || in analyzeBranch()
1364 TBB = SecondLastInst.getOperand(2).getMBB(); in analyzeBranch()
1365 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
1366 Cond.push_back(SecondLastInst.getOperand(1)); in analyzeBranch()
1369 } else if (SecondLastInst.getOpcode() == PPC::BC && in analyzeBranch()
1371 if (!SecondLastInst.getOperand(1).isMBB() || in analyzeBranch()
1374 TBB = SecondLastInst.getOperand(1).getMBB(); in analyzeBranch()
1376 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600InstrInfo.cpp698 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
699 unsigned SecondLastOpc = SecondLastInst.getOpcode(); in analyzeBranch()
707 TBB = SecondLastInst.getOperand(0).getMBB(); in analyzeBranch()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64InstrInfo.cpp371 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
372 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
379 LastInst = SecondLastInst; in analyzeBranch()
386 SecondLastInst = &*I; in analyzeBranch()
387 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
398 LastInst = SecondLastInst; in analyzeBranch()
411 SecondLastInst = &*I; in analyzeBranch()
412 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
416 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
421 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch()
[all …]