/external/llvm/lib/Target/NVPTX/ |
D | NVPTXInstrInfo.cpp | 160 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/ |
D | XCoreInstrInfo.cpp | 205 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/ |
D | XCoreInstrInfo.cpp | 204 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/ |
D | SPUInstrInfo.cpp | 231 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/ |
D | AlphaInstrInfo.cpp | 236 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/ |
D | MBlazeInstrInfo.cpp | 134 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/ |
D | PPCInstrInfo.cpp | 463 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/ |
D | MipsInstrInfo.cpp | 197 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/ |
D | SparcInstrInfo.cpp | 154 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/ |
D | PPCInstrInfo.cpp | 188 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/ |
D | MipsInstrInfo.cpp | 294 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/ |
D | AArch64A57FPLoadBalancing.cpp | 193 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()
|
D | AArch64InstrInfo.cpp | 64 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/ |
D | HexagonInstrInfo.cpp | 431 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/ |
D | ARMBaseInstrInfo.cpp | 288 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/ |
D | R600InstrInfo.cpp | 713 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/ |
D | IceCfg.cpp | 685 auto &LastInst = Insts.back(); in loopInvariantCodeMotion() local 691 PreHeader->appendInst(&LastInst); in loopInvariantCodeMotion()
|
/external/llvm/docs/ |
D | WritingAnLLVMBackend.rst | 1114 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/ |
D | InstCombineAndOrXor.cpp | 1584 Instruction *LastInst = Insts.pop_back_val(); in MatchBSwap() local 1585 LastInst->removeFromParent(); in MatchBSwap() 1589 return LastInst; in MatchBSwap()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 5310 Instruction *LastInst = Insts.back(); in makeBitReverse() local 5311 I.replaceAllUsesWith(LastInst); in makeBitReverse()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 10418 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()
|