Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp124 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
131 if (SecondLastInst.getOpcode() == NVPTX::CBranch && in analyzeBranch()
133 TBB = SecondLastInst.getOperand(1).getMBB(); in analyzeBranch()
134 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
141 if (SecondLastInst.getOpcode() == NVPTX::GOTO && in analyzeBranch()
143 TBB = SecondLastInst.getOperand(0).getMBB(); in analyzeBranch()
/external/llvm-project/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp124 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
131 if (SecondLastInst.getOpcode() == NVPTX::CBranch && in analyzeBranch()
133 TBB = SecondLastInst.getOperand(1).getMBB(); in analyzeBranch()
134 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
141 if (SecondLastInst.getOpcode() == NVPTX::GOTO && in analyzeBranch()
143 TBB = SecondLastInst.getOperand(0).getMBB(); in analyzeBranch()
/external/llvm/lib/Target/NVPTX/
DNVPTXInstrInfo.cpp178 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
185 if (SecondLastInst.getOpcode() == NVPTX::CBranch && in analyzeBranch()
187 TBB = SecondLastInst.getOperand(1).getMBB(); in analyzeBranch()
188 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
195 if (SecondLastInst.getOpcode() == NVPTX::GOTO && in analyzeBranch()
197 TBB = SecondLastInst.getOperand(0).getMBB(); in analyzeBranch()
/external/llvm/lib/Target/XCore/
DXCoreInstrInfo.cpp227 MachineInstr *SecondLastInst = I; in analyzeBranch() local
230 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
233 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
241 TBB = SecondLastInst->getOperand(1).getMBB(); in analyzeBranch()
243 Cond.push_back(SecondLastInst->getOperand(0)); in analyzeBranch()
251 if (IsBRU(SecondLastInst->getOpcode()) && in analyzeBranch()
253 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
261 if (IsBR_JT(SecondLastInst->getOpcode()) && IsBRU(LastInst->getOpcode())) { in analyzeBranch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
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()
/external/llvm/lib/Target/Mips/
DMipsInstrInfo.cpp207 MachineInstr *SecondLastInst = nullptr; in analyzeBranch() local
210 SecondLastInst = &*I; in analyzeBranch()
211 SecondLastOpc = getAnalyzableBrOpc(SecondLastInst->getOpcode()); in analyzeBranch()
214 if (isUnpredicatedTerminator(*SecondLastInst) && !SecondLastOpc) in analyzeBranch()
236 BranchInstrs.insert(BranchInstrs.begin(), SecondLastInst); in analyzeBranch()
240 if (SecondLastInst->isUnconditionalBranch()) { in analyzeBranch()
245 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
256 AnalyzeCondBr(SecondLastInst, SecondLastOpc, TBB, Cond); in analyzeBranch()
/external/llvm-project/llvm/lib/Target/XCore/
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()
/external/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp525 MachineInstr *SecondLastInst = I; in analyzeBranch() local
528 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
532 if (SecondLastInst->getOpcode() == PPC::BCC && in analyzeBranch()
534 if (!SecondLastInst->getOperand(2).isMBB() || in analyzeBranch()
537 TBB = SecondLastInst->getOperand(2).getMBB(); in analyzeBranch()
538 Cond.push_back(SecondLastInst->getOperand(0)); in analyzeBranch()
539 Cond.push_back(SecondLastInst->getOperand(1)); in analyzeBranch()
542 } else if (SecondLastInst->getOpcode() == PPC::BC && in analyzeBranch()
544 if (!SecondLastInst->getOperand(1).isMBB() || in analyzeBranch()
547 TBB = SecondLastInst->getOperand(1).getMBB(); in analyzeBranch()
[all …]
/external/llvm-project/llvm/lib/Target/Sparc/
DSparcInstrInfo.cpp190 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
191 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
198 LastInst = SecondLastInst; in analyzeBranch()
205 SecondLastInst = &*I; in analyzeBranch()
206 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
212 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
217 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch()
225 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/
DSparcInstrInfo.cpp190 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
191 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
198 LastInst = SecondLastInst; in analyzeBranch()
205 SecondLastInst = &*I; in analyzeBranch()
206 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
212 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
217 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch()
225 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
/external/llvm/lib/Target/Sparc/
DSparcInstrInfo.cpp191 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
192 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
199 LastInst = SecondLastInst; in analyzeBranch()
206 SecondLastInst = &*I; in analyzeBranch()
207 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
213 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
218 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch()
226 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsInstrInfo.cpp217 MachineInstr *SecondLastInst = nullptr; in analyzeBranch() local
226 SecondLastInst = &*I; in analyzeBranch()
227 SecondLastOpc = getAnalyzableBrOpc(SecondLastInst->getOpcode()); in analyzeBranch()
230 if (isUnpredicatedTerminator(*SecondLastInst) && !SecondLastOpc) in analyzeBranch()
252 BranchInstrs.insert(BranchInstrs.begin(), SecondLastInst); in analyzeBranch()
256 if (SecondLastInst->isUnconditionalBranch()) { in analyzeBranch()
261 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
272 AnalyzeCondBr(SecondLastInst, SecondLastOpc, TBB, Cond); in analyzeBranch()
/external/llvm-project/llvm/lib/Target/Mips/
DMipsInstrInfo.cpp218 MachineInstr *SecondLastInst = nullptr; in analyzeBranch() local
227 SecondLastInst = &*I; in analyzeBranch()
228 SecondLastOpc = getAnalyzableBrOpc(SecondLastInst->getOpcode()); in analyzeBranch()
231 if (isUnpredicatedTerminator(*SecondLastInst) && !SecondLastOpc) in analyzeBranch()
253 BranchInstrs.insert(BranchInstrs.begin(), SecondLastInst); in analyzeBranch()
257 if (SecondLastInst->isUnconditionalBranch()) { in analyzeBranch()
262 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
273 AnalyzeCondBr(SecondLastInst, SecondLastOpc, TBB, Cond); in analyzeBranch()
/external/llvm-project/llvm/lib/Target/VE/
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()
/external/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.cpp432 MachineInstr *SecondLastInst = nullptr; in analyzeBranch() local
436 if (!SecondLastInst) in analyzeBranch()
437 SecondLastInst = &*I; in analyzeBranch()
448 int SecLastOpcode = SecondLastInst ? SecondLastInst->getOpcode() : 0; in analyzeBranch()
454 !SecondLastInst->getOperand(0).isMBB()) in analyzeBranch()
464 if (LastInst && !SecondLastInst) { in analyzeBranch()
496 bool SecLastOpcodeHasNVJump = isNewValueJump(SecondLastInst); in analyzeBranch()
498 if (!SecondLastInst->getOperand(1).isMBB()) in analyzeBranch()
500 TBB = SecondLastInst->getOperand(1).getMBB(); in analyzeBranch()
501 Cond.push_back(MachineOperand::CreateImm(SecondLastInst->getOpcode())); in analyzeBranch()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp587 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
594 if (SecondLastInst.getOpcode() == PPC::BCC && in analyzeBranch()
596 if (!SecondLastInst.getOperand(2).isMBB() || in analyzeBranch()
599 TBB = SecondLastInst.getOperand(2).getMBB(); in analyzeBranch()
600 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
601 Cond.push_back(SecondLastInst.getOperand(1)); in analyzeBranch()
604 } else if (SecondLastInst.getOpcode() == PPC::BC && in analyzeBranch()
606 if (!SecondLastInst.getOperand(1).isMBB() || in analyzeBranch()
609 TBB = SecondLastInst.getOperand(1).getMBB(); in analyzeBranch()
611 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.cpp444 MachineInstr *SecondLastInst = nullptr; in analyzeBranch() local
448 if (!SecondLastInst) in analyzeBranch()
449 SecondLastInst = &*I; in analyzeBranch()
460 int SecLastOpcode = SecondLastInst ? SecondLastInst->getOpcode() : 0; in analyzeBranch()
466 !SecondLastInst->getOperand(0).isMBB()) in analyzeBranch()
476 if (LastInst && !SecondLastInst) { in analyzeBranch()
508 bool SecLastOpcodeHasNVJump = isNewValueJump(*SecondLastInst); in analyzeBranch()
510 if (!SecondLastInst->getOperand(1).isMBB()) in analyzeBranch()
512 TBB = SecondLastInst->getOperand(1).getMBB(); in analyzeBranch()
513 Cond.push_back(MachineOperand::CreateImm(SecondLastInst->getOpcode())); in analyzeBranch()
[all …]
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.cpp450 MachineInstr *SecondLastInst = nullptr; in analyzeBranch() local
454 if (!SecondLastInst) in analyzeBranch()
455 SecondLastInst = &*I; in analyzeBranch()
466 int SecLastOpcode = SecondLastInst ? SecondLastInst->getOpcode() : 0; in analyzeBranch()
472 !SecondLastInst->getOperand(0).isMBB()) in analyzeBranch()
482 if (LastInst && !SecondLastInst) { in analyzeBranch()
514 bool SecLastOpcodeHasNVJump = isNewValueJump(*SecondLastInst); in analyzeBranch()
516 if (!SecondLastInst->getOperand(1).isMBB()) in analyzeBranch()
518 TBB = SecondLastInst->getOperand(1).getMBB(); in analyzeBranch()
519 Cond.push_back(MachineOperand::CreateImm(SecondLastInst->getOpcode())); in analyzeBranch()
[all …]
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCInstrInfo.cpp928 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
935 if (SecondLastInst.getOpcode() == PPC::BCC && in analyzeBranch()
937 if (!SecondLastInst.getOperand(2).isMBB() || in analyzeBranch()
940 TBB = SecondLastInst.getOperand(2).getMBB(); in analyzeBranch()
941 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
942 Cond.push_back(SecondLastInst.getOperand(1)); in analyzeBranch()
945 } else if (SecondLastInst.getOpcode() == PPC::BC && in analyzeBranch()
947 if (!SecondLastInst.getOperand(1).isMBB() || in analyzeBranch()
950 TBB = SecondLastInst.getOperand(1).getMBB(); in analyzeBranch()
952 Cond.push_back(SecondLastInst.getOperand(0)); in analyzeBranch()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp128 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
129 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
136 LastInst = SecondLastInst; in analyzeBranch()
143 SecondLastInst = &*I; in analyzeBranch()
144 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
150 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
155 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch()
163 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DR600InstrInfo.cpp724 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
725 unsigned SecondLastOpc = SecondLastInst.getOpcode(); in analyzeBranch()
733 TBB = SecondLastInst.getOperand(0).getMBB(); in analyzeBranch()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DR600InstrInfo.cpp724 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
725 unsigned SecondLastOpc = SecondLastInst.getOpcode(); in analyzeBranch()
733 TBB = SecondLastInst.getOperand(0).getMBB(); in analyzeBranch()
/external/llvm/lib/Target/AMDGPU/
DR600InstrInfo.cpp737 MachineInstr &SecondLastInst = *I; in analyzeBranch() local
738 unsigned SecondLastOpc = SecondLastInst.getOpcode(); in analyzeBranch()
746 TBB = SecondLastInst.getOperand(0).getMBB(); in analyzeBranch()
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp276 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
277 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
284 LastInst = SecondLastInst; in analyzeBranch()
291 SecondLastInst = &*I; in analyzeBranch()
292 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
304 LastInst = SecondLastInst; in analyzeBranch()
317 SecondLastInst = &*I; in analyzeBranch()
318 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
323 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
328 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64InstrInfo.cpp241 MachineInstr *SecondLastInst = &*I; in analyzeBranch() local
242 unsigned SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
249 LastInst = SecondLastInst; in analyzeBranch()
256 SecondLastInst = &*I; in analyzeBranch()
257 SecondLastOpc = SecondLastInst->getOpcode(); in analyzeBranch()
263 if (SecondLastInst && I != MBB.begin() && isUnpredicatedTerminator(*--I)) in analyzeBranch()
268 parseCondBranch(SecondLastInst, TBB, Cond); in analyzeBranch()
276 TBB = SecondLastInst->getOperand(0).getMBB(); in analyzeBranch()

12