Home
last modified time | relevance | path

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

/external/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp160 MachineInstr &LastInst = *I; in analyzeBranch() local
164 if (LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch()
165 TBB = LastInst.getOperand(0).getMBB(); in analyzeBranch()
167 } else if (LastInst.getOpcode() == NVPTX::CBranch) { in analyzeBranch()
169 TBB = LastInst.getOperand(1).getMBB(); in analyzeBranch()
170 Cond.push_back(LastInst.getOperand(0)); in analyzeBranch()
186 LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch()
189 FBB = LastInst.getOperand(0).getMBB(); in analyzeBranch()
196 LastInst.getOpcode() == NVPTX::GOTO) { in analyzeBranch()
198 I = LastInst; in analyzeBranch()
/external/swiftshader/third_party/LLVM/lib/Target/XCore/
DXCoreInstrInfo.cpp205 MachineInstr *LastInst = I; in AnalyzeBranch() local
209 if (IsBRU(LastInst->getOpcode())) { in AnalyzeBranch()
210 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
214 XCore::CondCode BranchCode = GetCondFromBranchOpc(LastInst->getOpcode()); in AnalyzeBranch()
221 TBB = LastInst->getOperand(1).getMBB(); in AnalyzeBranch()
223 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
241 && IsBRU(LastInst->getOpcode())) { in AnalyzeBranch()
247 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
254 IsBRU(LastInst->getOpcode())) { in AnalyzeBranch()
256 I = LastInst; in AnalyzeBranch()
[all …]
/external/llvm/lib/Target/XCore/
DXCoreInstrInfo.cpp204 MachineInstr *LastInst = I; in analyzeBranch() local
208 if (IsBRU(LastInst->getOpcode())) { in analyzeBranch()
209 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
213 XCore::CondCode BranchCode = GetCondFromBranchOpc(LastInst->getOpcode()); in analyzeBranch()
220 TBB = LastInst->getOperand(1).getMBB(); in analyzeBranch()
222 Cond.push_back(LastInst->getOperand(0)); in analyzeBranch()
239 && IsBRU(LastInst->getOpcode())) { in analyzeBranch()
245 FBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
252 IsBRU(LastInst->getOpcode())) { in analyzeBranch()
254 I = LastInst; in analyzeBranch()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/CellSPU/
DSPUInstrInfo.cpp231 MachineInstr *LastInst = I; in AnalyzeBranch() local
235 if (isUncondBranch(LastInst)) { in AnalyzeBranch()
237 if (!LastInst->getOperand(0).isMBB()) in AnalyzeBranch()
239 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
241 } else if (isCondBranch(LastInst)) { in AnalyzeBranch()
243 TBB = LastInst->getOperand(1).getMBB(); in AnalyzeBranch()
245 DEBUG(LastInst->dump()); in AnalyzeBranch()
246 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in AnalyzeBranch()
247 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
263 if (isCondBranch(SecondLastInst) && isUncondBranch(LastInst)) { in AnalyzeBranch()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/Alpha/
DAlphaInstrInfo.cpp236 MachineInstr *LastInst = I; in AnalyzeBranch() local
240 if (LastInst->getOpcode() == Alpha::BR) { in AnalyzeBranch()
241 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
243 } else if (LastInst->getOpcode() == Alpha::COND_BRANCH_I || in AnalyzeBranch()
244 LastInst->getOpcode() == Alpha::COND_BRANCH_F) { in AnalyzeBranch()
246 TBB = LastInst->getOperand(2).getMBB(); in AnalyzeBranch()
247 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
248 Cond.push_back(LastInst->getOperand(1)); in AnalyzeBranch()
266 LastInst->getOpcode() == Alpha::BR) { in AnalyzeBranch()
270 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/MBlaze/
DMBlazeInstrInfo.cpp134 MachineInstr *LastInst = I; in AnalyzeBranch() local
137 unsigned LastOpc = LastInst->getOpcode(); in AnalyzeBranch()
140 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
145 TBB = LastInst->getOperand(1).getMBB(); in AnalyzeBranch()
146 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in AnalyzeBranch()
147 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
163 MBlaze::isUncondBranchOpcode(LastInst->getOpcode())) { in AnalyzeBranch()
167 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
174 MBlaze::isUncondBranchOpcode(LastInst->getOpcode())) { in AnalyzeBranch()
176 I = LastInst; in AnalyzeBranch()
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp463 MachineInstr *LastInst = I; in analyzeBranch() local
467 if (LastInst->getOpcode() == PPC::B) { in analyzeBranch()
468 if (!LastInst->getOperand(0).isMBB()) in analyzeBranch()
470 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
472 } else if (LastInst->getOpcode() == PPC::BCC) { in analyzeBranch()
473 if (!LastInst->getOperand(2).isMBB()) in analyzeBranch()
476 TBB = LastInst->getOperand(2).getMBB(); in analyzeBranch()
477 Cond.push_back(LastInst->getOperand(0)); in analyzeBranch()
478 Cond.push_back(LastInst->getOperand(1)); in analyzeBranch()
480 } else if (LastInst->getOpcode() == PPC::BC) { in analyzeBranch()
[all …]
/external/llvm/lib/Target/Mips/
DMipsInstrInfo.cpp197 MachineInstr *LastInst = &*I; in analyzeBranch() local
198 unsigned LastOpc = LastInst->getOpcode(); in analyzeBranch()
199 BranchInstrs.push_back(LastInst); in analyzeBranch()
203 return LastInst->isIndirectBranch() ? BT_Indirect : BT_None; in analyzeBranch()
221 if (LastInst->isUnconditionalBranch()) { in analyzeBranch()
222 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
227 AnalyzeCondBr(LastInst, LastOpc, TBB, Cond); in analyzeBranch()
246 LastInst->eraseFromParent(); in analyzeBranch()
253 if (!LastInst->isUnconditionalBranch()) in analyzeBranch()
257 FBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
/external/llvm/lib/Target/Sparc/
DSparcInstrInfo.cpp154 static void parseCondBranch(MachineInstr *LastInst, MachineBasicBlock *&Target, in parseCondBranch() argument
156 Cond.push_back(MachineOperand::CreateImm(LastInst->getOperand(1).getImm())); in parseCondBranch()
157 Target = LastInst->getOperand(0).getMBB(); in parseCondBranch()
173 MachineInstr *LastInst = &*I; in analyzeBranch() local
174 unsigned LastOpc = LastInst->getOpcode(); in analyzeBranch()
179 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
184 parseCondBranch(LastInst, TBB, Cond); in analyzeBranch()
198 LastInst->eraseFromParent(); in analyzeBranch()
199 LastInst = SecondLastInst; in analyzeBranch()
200 LastOpc = LastInst->getOpcode(); in analyzeBranch()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/
DPPCInstrInfo.cpp188 MachineInstr *LastInst = I; in AnalyzeBranch() local
192 if (LastInst->getOpcode() == PPC::B) { in AnalyzeBranch()
193 if (!LastInst->getOperand(0).isMBB()) in AnalyzeBranch()
195 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
197 } else if (LastInst->getOpcode() == PPC::BCC) { in AnalyzeBranch()
198 if (!LastInst->getOperand(2).isMBB()) in AnalyzeBranch()
201 TBB = LastInst->getOperand(2).getMBB(); in AnalyzeBranch()
202 Cond.push_back(LastInst->getOperand(0)); in AnalyzeBranch()
203 Cond.push_back(LastInst->getOperand(1)); in AnalyzeBranch()
220 LastInst->getOpcode() == PPC::B) { in AnalyzeBranch()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/Mips/
DMipsInstrInfo.cpp294 MachineInstr *LastInst = &*I; in AnalyzeBranch() local
295 unsigned LastOpc = LastInst->getOpcode(); in AnalyzeBranch()
318 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
323 AnalyzeCondBr(LastInst, LastOpc, TBB, Cond); in AnalyzeBranch()
340 LastInst->eraseFromParent(); in AnalyzeBranch()
350 FBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
/external/llvm/lib/Target/AArch64/
DAArch64A57FPLoadBalancing.cpp193 MachineInstr *StartInst, *LastInst, *KillInst; member in __anon1c3805880211::Chain
209 : StartInst(MI), LastInst(MI), KillInst(nullptr), in Chain()
218 LastInst = MI; in add()
250 MachineInstr *getLast() const { return LastInst; } in getLast()
256 return ++MachineBasicBlock::iterator(KillInst ? KillInst : LastInst); in end()
297 LastInst->print(OS, /* SkipOpers= */true); in str()
DAArch64InstrInfo.cpp64 static void parseCondBranch(MachineInstr *LastInst, MachineBasicBlock *&Target, in parseCondBranch() argument
67 switch (LastInst->getOpcode()) { in parseCondBranch()
71 Target = LastInst->getOperand(1).getMBB(); in parseCondBranch()
72 Cond.push_back(LastInst->getOperand(0)); in parseCondBranch()
78 Target = LastInst->getOperand(1).getMBB(); in parseCondBranch()
80 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in parseCondBranch()
81 Cond.push_back(LastInst->getOperand(0)); in parseCondBranch()
87 Target = LastInst->getOperand(2).getMBB(); in parseCondBranch()
89 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in parseCondBranch()
90 Cond.push_back(LastInst->getOperand(0)); in parseCondBranch()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.cpp431 MachineInstr *LastInst = &*I; in analyzeBranch() local
435 if (&*I != LastInst && !I->isBundle() && isUnpredicatedTerminator(*I)) { in analyzeBranch()
447 int LastOpcode = LastInst->getOpcode(); in analyzeBranch()
451 if (LastOpcode == Hexagon::J2_jump && !LastInst->getOperand(0).isMBB()) in analyzeBranch()
458 bool LastOpcodeHasNVJump = isNewValueJump(LastInst); in analyzeBranch()
460 if (LastOpcodeHasJMP_c && !LastInst->getOperand(1).isMBB()) in analyzeBranch()
464 if (LastInst && !SecondLastInst) { in analyzeBranch()
466 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
470 TBB = LastInst->getOperand(0).getMBB(); in analyzeBranch()
471 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); in analyzeBranch()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMBaseInstrInfo.cpp288 MachineInstr *LastInst = I; in AnalyzeBranch() local
291 unsigned LastOpc = LastInst->getOpcode(); in AnalyzeBranch()
294 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
299 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
300 Cond.push_back(LastInst->getOperand(1)); in AnalyzeBranch()
301 Cond.push_back(LastInst->getOperand(2)); in AnalyzeBranch()
315 LastInst->eraseFromParent(); in AnalyzeBranch()
316 LastInst = SecondLastInst; in AnalyzeBranch()
317 LastOpc = LastInst->getOpcode(); in AnalyzeBranch()
320 TBB = LastInst->getOperand(0).getMBB(); in AnalyzeBranch()
[all …]
/external/llvm/lib/Target/AMDGPU/
DR600InstrInfo.cpp713 MachineInstr &LastInst = *I; in analyzeBranch() local
716 unsigned LastOpc = LastInst.getOpcode(); in analyzeBranch()
720 TBB = LastInst.getOperand(0).getMBB(); in analyzeBranch()
727 TBB = LastInst.getOperand(0).getMBB(); in analyzeBranch()
747 FBB = LastInst.getOperand(0).getMBB(); in analyzeBranch()
/external/swiftshader/third_party/subzero/src/
DIceCfg.cpp685 auto &LastInst = Insts.back(); in loopInvariantCodeMotion() local
691 PreHeader->appendInst(&LastInst); in loopInvariantCodeMotion()
/external/llvm/docs/
DWritingAnLLVMBackend.rst1114 TBB = LastInst->getOperand(0).getMBB();
1127 I = LastInst;
1142 TBB = LastInst->getOperand(0).getMBB();
1143 Cond.push_back(LastInst->getOperand(1));
1144 Cond.push_back(LastInst->getOperand(2));
1165 FBB = LastInst->getOperand(0).getMBB();
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp1584 Instruction *LastInst = Insts.pop_back_val(); in MatchBSwap() local
1585 LastInst->removeFromParent(); in MatchBSwap()
1589 return LastInst; in MatchBSwap()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp5310 Instruction *LastInst = Insts.back(); in makeBitReverse() local
5311 I.replaceAllUsesWith(LastInst); in makeBitReverse()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp10418 SDValue LastInst = DAG->getLoad( in loadSlice() local
10426 LastInst = in loadSlice()
10427 DAG->getNode(ISD::ZERO_EXTEND, SDLoc(LastInst), FinalType, LastInst); in loadSlice()
10428 return LastInst; in loadSlice()