Home
last modified time | relevance | path

Searched refs:MII (Results 1 – 25 of 275) sorted by relevance

1234567891011

/external/llvm/include/llvm/CodeGen/
DMachineInstrBundleIterator.h28 instr_iterator MII; variable
31 MachineInstrBundleIterator(instr_iterator MI) : MII(MI) {} in MachineInstrBundleIterator()
33 MachineInstrBundleIterator(Ty &MI) : MII(MI) { in MachineInstrBundleIterator()
38 MachineInstrBundleIterator(Ty *MI) : MII(MI) { in MachineInstrBundleIterator()
47 : MII(I.getInstrIterator()) {} in MachineInstrBundleIterator()
48 MachineInstrBundleIterator() : MII(nullptr) {} in MachineInstrBundleIterator()
50 Ty &operator*() const { return *MII; }
54 operator Ty *() const { return MII.getNodePtrUnchecked(); }
57 return MII == X.MII;
66 --MII;
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonFixupHwLoops.cpp71 MachineBasicBlock::iterator &MII);
138 MachineBasicBlock::iterator MII = MBB.begin(); in fixupLoopInstrs() local
140 while (MII != MIE) { in fixupLoopInstrs()
141 InstOffset += HII->getSize(&*MII); in fixupLoopInstrs()
142 if (MII->isDebugValue()) { in fixupLoopInstrs()
143 ++MII; in fixupLoopInstrs()
146 if (isHardwareLoop(*MII)) { in fixupLoopInstrs()
147 assert(MII->getOperand(0).isMBB() && in fixupLoopInstrs()
149 int diff = InstOffset - BlockToInstOffset[MII->getOperand(0).getMBB()]; in fixupLoopInstrs()
151 useExtLoopInstr(MF, MII); in fixupLoopInstrs()
[all …]
DHexagonSplitConst32AndConst64.cpp86 MachineBasicBlock::iterator MII = MBB->begin(); in runOnMachineFunction() local
88 while (MII != MIE) { in runOnMachineFunction()
89 MachineInstr &MI = *MII; in runOnMachineFunction()
96 BuildMI(*MBB, MII, MI.getDebugLoc(), TII->get(Hexagon::LO), DestReg) in runOnMachineFunction()
98 BuildMI(*MBB, MII, MI.getDebugLoc(), TII->get(Hexagon::HI), DestReg) in runOnMachineFunction()
102 MII = MBB->erase(&MI); in runOnMachineFunction()
120 BuildMI(*MBB, MII, MI.getDebugLoc(), TII->get(Hexagon::A2_tfrsi), in runOnMachineFunction()
123 MII = MBB->erase(&MI); in runOnMachineFunction()
146 BuildMI(*MBB, MII, MI.getDebugLoc(), TII->get(Hexagon::A2_tfrsi), in runOnMachineFunction()
149 BuildMI(*MBB, MII, MI.getDebugLoc(), TII->get(Hexagon::A2_tfrsi), in runOnMachineFunction()
[all …]
DHexagonNewValueJump.cpp176 MachineBasicBlock::iterator MII) { in commonChecksToProhibitNewValueJump() argument
179 if (MII->getDesc().mayStore()) in commonChecksToProhibitNewValueJump()
183 if (MII->getOpcode() == Hexagon::J2_call) in commonChecksToProhibitNewValueJump()
197 if (MII->getOpcode() == TargetOpcode::KILL || in commonChecksToProhibitNewValueJump()
198 MII->getOpcode() == TargetOpcode::PHI || in commonChecksToProhibitNewValueJump()
199 MII->getOpcode() == TargetOpcode::COPY) in commonChecksToProhibitNewValueJump()
206 if (MII->getOpcode() == Hexagon::LDriw_pred || in commonChecksToProhibitNewValueJump()
207 MII->getOpcode() == Hexagon::STriw_pred) in commonChecksToProhibitNewValueJump()
439 for (MachineBasicBlock::iterator MII = MBB->end(), E = MBB->begin(); in runOnMachineFunction() local
440 MII != E;) { in runOnMachineFunction()
[all …]
DHexagonVLIWPacketizer.h79 MachineBasicBlock::iterator &MII,
82 unsigned DepReg, MachineBasicBlock::iterator &MII,
87 MachineBasicBlock::iterator &MII,
90 unsigned DepReg, MachineBasicBlock::iterator &MII,
93 unsigned DepReg, MachineBasicBlock::iterator &MII);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonFixupHwLoops.cpp70 MachineBasicBlock::iterator &MII);
136 MachineBasicBlock::iterator MII = MBB.begin(); in fixupLoopInstrs() local
138 while (MII != MIE) { in fixupLoopInstrs()
139 unsigned InstSize = HII->getSize(*MII); in fixupLoopInstrs()
140 if (MII->isMetaInstruction()) { in fixupLoopInstrs()
141 ++MII; in fixupLoopInstrs()
144 if (isHardwareLoop(*MII)) { in fixupLoopInstrs()
145 assert(MII->getOperand(0).isMBB() && in fixupLoopInstrs()
147 MachineBasicBlock *TargetBB = MII->getOperand(0).getMBB(); in fixupLoopInstrs()
151 useExtLoopInstr(MF, MII); in fixupLoopInstrs()
[all …]
DHexagonVectorPrint.cpp139 MachineBasicBlock::instr_iterator MII = MI.getIterator(); in runOnMachineFunction() local
140 for (++MII; MII != MBB.instr_end() && MII->isInsideBundle(); ++MII) { in runOnMachineFunction()
141 if (MII->getNumOperands() < 1) in runOnMachineFunction()
144 if (getInstrVecReg(*MII, Reg)) { in runOnMachineFunction()
145 VecPrintList.push_back((&*MII)); in runOnMachineFunction()
147 MII->dump()); in runOnMachineFunction()
170 MachineBasicBlock::instr_iterator MII = I->getIterator(); in runOnMachineFunction() local
173 while (MBB->instr_end() != MII && MII->isInsideBundle()) in runOnMachineFunction()
174 MII++; in runOnMachineFunction()
177 MII++; in runOnMachineFunction()
[all …]
DHexagonNewValueJump.cpp201 MachineBasicBlock::iterator MII) { in commonChecksToProhibitNewValueJump() argument
203 if (MII->mayStore()) in commonChecksToProhibitNewValueJump()
207 if (MII->isCall()) in commonChecksToProhibitNewValueJump()
221 if (MII->getOpcode() == TargetOpcode::KILL || in commonChecksToProhibitNewValueJump()
222 MII->getOpcode() == TargetOpcode::PHI || in commonChecksToProhibitNewValueJump()
223 MII->getOpcode() == TargetOpcode::COPY) in commonChecksToProhibitNewValueJump()
230 if (MII->getOpcode() == Hexagon::LDriw_pred || in commonChecksToProhibitNewValueJump()
231 MII->getOpcode() == Hexagon::STriw_pred) in commonChecksToProhibitNewValueJump()
495 for (MachineBasicBlock::iterator MII = MBB->end(), E = MBB->begin(); in runOnMachineFunction() local
496 MII != E;) { in runOnMachineFunction()
[all …]
DHexagonVLIWPacketizer.h112 MachineBasicBlock::iterator &MII,
115 unsigned DepReg, MachineBasicBlock::iterator &MII,
120 MachineBasicBlock::iterator &MII,
123 unsigned DepReg, MachineBasicBlock::iterator &MII,
126 unsigned DepReg, MachineBasicBlock::iterator &MII);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineInstrBundle.cpp53 for (MachineBasicBlock::instr_iterator MII = MBB->instr_begin(), in runOnMachineFunction() local
54 MIE = MBB->instr_end(); MII != MIE; ) { in runOnMachineFunction()
55 MachineInstr *MI = &*MII; in runOnMachineFunction()
60 while (++MII != MIE && MII->isBundledWithPred()) { in runOnMachineFunction()
61 MII->unbundleFromPred(); in runOnMachineFunction()
62 for (unsigned i = 0, e = MII->getNumOperands(); i != e; ++i) { in runOnMachineFunction()
63 MachineOperand &MO = MII->getOperand(i); in runOnMachineFunction()
74 ++MII; in runOnMachineFunction()
113 for (auto MII = FirstMI; MII != LastMI; ++MII) in getDebugLoc() local
114 if (MII->getDebugLoc().get()) in getDebugLoc()
[all …]
DOptimizePHIs.cpp170 MII = MBB.begin(), E = MBB.end(); MII != E; ) { in OptimizeBB() local
171 MachineInstr *MI = &*MII++; in OptimizeBB()
201 if (MII == PhiMI) in OptimizeBB()
202 ++MII; in OptimizeBB()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineInstrBundleIterator.h112 instr_iterator MII;
132 MachineInstrBundleIterator(instr_iterator MI) : MII(MI) {
138 MachineInstrBundleIterator(reference MI) : MII(MI) {
144 MachineInstrBundleIterator(pointer MI) : MII(MI) {
157 : MII(I.getInstrIterator()) {}
159 MachineInstrBundleIterator() : MII(nullptr) {}
178 reference operator*() const { return *MII; }
182 bool isValid() const { return MII.getNodePtr(); }
186 return L.MII == R.MII;
190 return L.MII == R; // Avoid assertion about validity of R.
[all …]
/external/llvm/lib/CodeGen/
DMachineInstrBundle.cpp52 for (MachineBasicBlock::instr_iterator MII = MBB->instr_begin(), in runOnMachineFunction() local
53 MIE = MBB->instr_end(); MII != MIE; ) { in runOnMachineFunction()
54 MachineInstr *MI = &*MII; in runOnMachineFunction()
59 while (++MII != MIE && MII->isBundledWithPred()) { in runOnMachineFunction()
60 MII->unbundleFromPred(); in runOnMachineFunction()
61 for (unsigned i = 0, e = MII->getNumOperands(); i != e; ++i) { in runOnMachineFunction()
62 MachineOperand &MO = MII->getOperand(i); in runOnMachineFunction()
73 ++MII; in runOnMachineFunction()
240 MachineBasicBlock::instr_iterator MII = MBB.instr_begin(); in finalizeBundles() local
242 if (MII == MIE) in finalizeBundles()
[all …]
DOptimizePHIs.cpp160 MII = MBB.begin(), E = MBB.end(); MII != E; ) { in OptimizeBB() local
161 MachineInstr *MI = &*MII++; in OptimizeBB()
187 if (&*MII == PhiMI) in OptimizeBB()
188 ++MII; in OptimizeBB()
/external/llvm/lib/Target/WebAssembly/InstPrinter/
DWebAssemblyInstPrinter.cpp36 const MCInstrInfo &MII, in WebAssemblyInstPrinter() argument
38 : MCInstPrinter(MAI, MII, MRI), ControlFlowCounter(0) {} in WebAssemblyInstPrinter()
54 const MCInstrDesc &Desc = MII.get(MI->getOpcode()); in printInst()
141 assert((OpNo < MII.get(MI->getOpcode()).getNumOperands() || in printOperand()
142 MII.get(MI->getOpcode()).TSFlags == 0) && in printOperand()
147 else if (OpNo >= MII.get(MI->getOpcode()).getNumDefs()) in printOperand()
154 if (OpNo < MII.get(MI->getOpcode()).getNumDefs()) in printOperand()
157 assert((OpNo < MII.get(MI->getOpcode()).getNumOperands() || in printOperand()
158 (MII.get(MI->getOpcode()).TSFlags & in printOperand()
168 const MCInstrDesc &Desc = MII.get(MI->getOpcode()); in printOperand()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonInstPrinter.h27 explicit HexagonInstPrinter(MCAsmInfo const &MAI, MCInstrInfo const &MII, in HexagonInstPrinter() argument
29 : MCInstPrinter(MAI, MII, MRI), MII(MII) {} in HexagonInstPrinter()
42 MCInstrInfo const &getMII() const { return MII; } in getMII()
45 MCInstrInfo const &MII;
DHexagonInstPrinter.cpp42 if (HexagonMCInstrInfo::isDuplex(MII, MCI)) { in printInst()
64 if (HexagonMCInstrInfo::getExtendableOp(MII, *MI) == OpNo && in printOperand()
65 (HasExtender || HexagonMCInstrInfo::isConstExtended(MII, *MI))) in printOperand()
90 if (HasExtender || HexagonMCInstrInfo::isConstExtended(MII, *MI)) in printBrtarget()
91 if (HexagonMCInstrInfo::getExtendableOp(MII, *MI) == OpNo) in printBrtarget()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DInstructionSelect.cpp110 for (auto MII = std::prev(MBB->end()), Begin = MBB->begin(); in runOnMachineFunction() local
114 const auto AfterIt = std::next(MII); in runOnMachineFunction()
117 MachineInstr &MI = *MII; in runOnMachineFunction()
120 if (MII == Begin) in runOnMachineFunction()
123 --MII; in runOnMachineFunction()
144 auto InsertedBegin = ReachedBegin ? MBB->begin() : std::next(MII); in runOnMachineFunction()
159 for (auto MII = std::prev(MBB.end()), Begin = MBB.begin(); !ReachedBegin;) { in runOnMachineFunction() local
161 MachineInstr &MI = *MII; in runOnMachineFunction()
164 if (MII == Begin) in runOnMachineFunction()
167 --MII; in runOnMachineFunction()
DCombiner.cpp135 for (auto MII = MBB->rbegin(), MIE = MBB->rend(); MII != MIE;) { in combineMachineInstrs() local
136 MachineInstr *CurMI = &*MII; in combineMachineInstrs()
137 ++MII; in combineMachineInstrs()
/external/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonInstPrinter.cpp32 MCInstrInfo const &MII, in HexagonInstPrinter() argument
34 : MCInstPrinter(MAI, MII, MRI), MII(MII), HasExtender(false) { in HexagonInstPrinter()
38 return MII.getName(Opcode); in getOpcodeName()
61 if (HexagonMCInstrInfo::isDuplex(MII, MCI)) { in printInst()
90 if (HexagonMCInstrInfo::getExtendableOp(MII, *MI) == OpNo && in printOperand()
91 (HasExtender || HexagonMCInstrInfo::isConstExtended(MII, *MI))) in printOperand()
222 if (HasExtender || HexagonMCInstrInfo::isConstExtended(MII, *MI)) in printBrtarget()
223 if (HexagonMCInstrInfo::getExtendableOp(MII, *MI) == OpNo) in printBrtarget()
/external/llvm/lib/Target/ARM/
DMLxExpansionPass.cpp315 MachineBasicBlock::iterator MII = MI; in ExpandFPMLxInstruction()
316 MII = std::prev(MII); in ExpandFPMLxInstruction()
317 MachineInstr &MI2 = *MII; in ExpandFPMLxInstruction()
318 MII = std::prev(MII); in ExpandFPMLxInstruction()
319 MachineInstr &MI1 = *MII; in ExpandFPMLxInstruction()
335 MachineBasicBlock::reverse_iterator MII = MBB.rbegin(), E = MBB.rend(); in ExpandFPMLxInstructions() local
336 while (MII != E) { in ExpandFPMLxInstructions()
337 MachineInstr *MI = &*MII; in ExpandFPMLxInstructions()
340 ++MII; in ExpandFPMLxInstructions()
348 ++MII; in ExpandFPMLxInstructions()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCDisassembler/
DDisassembler.h68 std::unique_ptr<const llvm::MCInstrInfo> MII; variable
92 std::unique_ptr<const MCInstrInfo> &&MII, in LLVMDisasmContext() argument
99 MII(std::move(MII)), Ctx(std::move(Ctx)), DisAsm(std::move(DisAsm)), in LLVMDisasmContext()
111 const MCInstrInfo *getInstrInfo() const { return MII.get(); } in getInstrInfo()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMLxExpansionPass.cpp312 MachineBasicBlock::iterator MII = MI; in ExpandFPMLxInstruction()
313 MII = std::prev(MII); in ExpandFPMLxInstruction()
314 MachineInstr &MI2 = *MII; in ExpandFPMLxInstruction()
315 MII = std::prev(MII); in ExpandFPMLxInstruction()
316 MachineInstr &MI1 = *MII; in ExpandFPMLxInstruction()
332 MachineBasicBlock::reverse_iterator MII = MBB.rbegin(), E = MBB.rend(); in ExpandFPMLxInstructions() local
333 while (MII != E) { in ExpandFPMLxInstructions()
334 MachineInstr *MI = &*MII++; in ExpandFPMLxInstructions()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
DMCTargetAsmParser.cpp16 const MCInstrInfo &MII) in MCTargetAsmParser() argument
17 : MCOptions(MCOptions), STI(&STI), MII(MII) {} in MCTargetAsmParser()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp208 for (MachineBasicBlock::iterator MII = MBB->getFirstTerminator(), in runOnMachineFunction() local
209 MIIE = MBB->end(); MII != MIIE; ++MII) { in runOnMachineFunction()
210 unsigned Opc = MII->getOpcode(); in runOnMachineFunction()
213 if (!verifyCTRBranch(MBB, MII)) in runOnMachineFunction()

1234567891011