Home
last modified time | relevance | path

Searched refs:LastInst (Results 1 – 11 of 11) sorted by relevance

/external/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp157 MachineInstr *LastInst = I; in AnalyzeBranch() local
161 if (LastInst->getOpcode() == NVPTX::GOTO) { in AnalyzeBranch()
162 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
164 } else if (LastInst->getOpcode() == NVPTX::CBranch) { in AnalyzeBranch()
166 TBB = LastInst->getOperand(1).getMBB(); in AnalyzeBranch()
167 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
183 LastInst->getOpcode() == NVPTX::GOTO) { in AnalyzeBranch()
186 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
193 LastInst->getOpcode() == NVPTX::GOTO) { in AnalyzeBranch()
195 I = LastInst; in AnalyzeBranch()
/external/llvm/lib/Target/XCore/
DXCoreInstrInfo.cpp207 MachineInstr *LastInst = I; in AnalyzeBranch() local
211 if (IsBRU(LastInst->getOpcode())) { in AnalyzeBranch()
212 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
216 XCore::CondCode BranchCode = GetCondFromBranchOpc(LastInst->getOpcode()); in AnalyzeBranch()
223 TBB = LastInst->getOperand(1).getMBB(); in AnalyzeBranch()
225 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
243 && IsBRU(LastInst->getOpcode())) { in AnalyzeBranch()
249 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
256 IsBRU(LastInst->getOpcode())) { in AnalyzeBranch()
258 I = LastInst; in AnalyzeBranch()
[all …]
/external/llvm/lib/Target/Mips/
DMipsInstrInfo.cpp195 MachineInstr *LastInst = &*I; in AnalyzeBranch() local
196 unsigned LastOpc = LastInst->getOpcode(); in AnalyzeBranch()
197 BranchInstrs.push_back(LastInst); in AnalyzeBranch()
201 return LastInst->isIndirectBranch() ? BT_Indirect : BT_None; in AnalyzeBranch()
220 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
225 AnalyzeCondBr(LastInst, LastOpc, TBB, Cond); in AnalyzeBranch()
244 LastInst->eraseFromParent(); in AnalyzeBranch()
255 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp460 MachineInstr *LastInst = I; in AnalyzeBranch() local
464 if (LastInst->getOpcode() == PPC::B) { in AnalyzeBranch()
465 if (!LastInst->getOperand(0).isMBB()) in AnalyzeBranch()
467 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
469 } else if (LastInst->getOpcode() == PPC::BCC) { in AnalyzeBranch()
470 if (!LastInst->getOperand(2).isMBB()) in AnalyzeBranch()
473 TBB = LastInst->getOperand(2).getMBB(); in AnalyzeBranch()
474 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
475 Cond.push_back(LastInst->getOperand(1)); in AnalyzeBranch()
477 } else if (LastInst->getOpcode() == PPC::BC) { in AnalyzeBranch()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
DR600InstrInfo.cpp200 MachineInstr *LastInst = I; in AnalyzeBranch() local
203 unsigned LastOpc = LastInst->getOpcode(); in AnalyzeBranch()
207 if(!isPredicated(LastInst)) { in AnalyzeBranch()
208 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
215 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
233 !isPredicated(LastInst)) { in AnalyzeBranch()
239 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/lib/Target/AArch64/
DAArch64A57FPLoadBalancing.cpp189 MachineInstr *StartInst, *LastInst, *KillInst; member in __anon32224d0b0211::Chain
205 : StartInst(MI), LastInst(MI), KillInst(nullptr), in Chain()
214 LastInst = MI; in add()
246 MachineInstr *getLast() const { return LastInst; } in getLast()
252 return ++MachineBasicBlock::iterator(KillInst ? KillInst : LastInst); in getEnd()
292 LastInst->print(OS, /* SkipOpers= */true); in str()
DAArch64InstrInfo.cpp60 static void parseCondBranch(MachineInstr *LastInst, MachineBasicBlock *&Target, in parseCondBranch() argument
63 switch (LastInst->getOpcode()) { in parseCondBranch()
67 Target = LastInst->getOperand(1).getMBB(); in parseCondBranch()
68 Cond.push_back(LastInst->getOperand(0)); in parseCondBranch()
74 Target = LastInst->getOperand(1).getMBB(); in parseCondBranch()
76 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in parseCondBranch()
77 Cond.push_back(LastInst->getOperand(0)); in parseCondBranch()
83 Target = LastInst->getOperand(2).getMBB(); in parseCondBranch()
85 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in parseCondBranch()
86 Cond.push_back(LastInst->getOperand(0)); in parseCondBranch()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.cpp351 MachineInstr *LastInst = &*I; in AnalyzeBranch() local
355 if (&*I != LastInst && !I->isBundle() && isUnpredicatedTerminator(&*I)) { in AnalyzeBranch()
367 int LastOpcode = LastInst->getOpcode(); in AnalyzeBranch()
371 if (LastOpcode == Hexagon::J2_jump && !LastInst->getOperand(0).isMBB()) in AnalyzeBranch()
378 bool LastOpcodeHasNVJump = isNewValueJump(LastInst); in AnalyzeBranch()
381 if (LastInst && !SecondLastInst) { in AnalyzeBranch()
383 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
387 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
388 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in AnalyzeBranch()
389 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
[all …]
/external/llvm/lib/Target/AMDGPU/
DR600InstrInfo.cpp719 MachineInstr *LastInst = I; in AnalyzeBranch() local
722 unsigned LastOpc = LastInst->getOpcode(); in AnalyzeBranch()
726 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
733 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
753 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/docs/
DWritingAnLLVMBackend.rst1116 TBB = LastInst->getOperand(0).getMBB();
1129 I = LastInst;
1144 TBB = LastInst->getOperand(0).getMBB();
1145 Cond.push_back(LastInst->getOperand(1));
1146 Cond.push_back(LastInst->getOperand(2));
1167 FBB = LastInst->getOperand(0).getMBB();
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp10300 SDValue LastInst = DAG->getLoad( in loadSlice() local
10308 LastInst = in loadSlice()
10309 DAG->getNode(ISD::ZERO_EXTEND, SDLoc(LastInst), FinalType, LastInst); in loadSlice()
10310 return LastInst; in loadSlice()