Home
last modified time | relevance | path

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

12345678910>>...13

/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-7.0/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 unsigned InstSize = HII->getSize(*MII); in fixupLoopInstrs()
142 if (MII->isMetaInstruction()) { in fixupLoopInstrs()
143 ++MII; in fixupLoopInstrs()
146 if (isHardwareLoop(*MII)) { in fixupLoopInstrs()
147 assert(MII->getOperand(0).isMBB() && in fixupLoopInstrs()
149 MachineBasicBlock *TargetBB = MII->getOperand(0).getMBB(); in fixupLoopInstrs()
153 useExtLoopInstr(MF, MII); in fixupLoopInstrs()
[all …]
DHexagonVectorPrint.cpp140 MachineBasicBlock::instr_iterator MII = MI.getIterator(); in runOnMachineFunction() local
141 for (++MII; MII != MBB.instr_end() && MII->isInsideBundle(); ++MII) { in runOnMachineFunction()
142 if (MII->getNumOperands() < 1) in runOnMachineFunction()
145 if (getInstrVecReg(*MII, Reg)) { in runOnMachineFunction()
146 VecPrintList.push_back((&*MII)); in runOnMachineFunction()
148 MII->dump()); in runOnMachineFunction()
171 MachineBasicBlock::instr_iterator MII = I->getIterator(); in runOnMachineFunction() local
174 while (MBB->instr_end() != MII && MII->isInsideBundle()) in runOnMachineFunction()
175 MII++; in runOnMachineFunction()
178 MII++; in runOnMachineFunction()
[all …]
DHexagonGatherPacketize.cpp72 MachineBasicBlock::iterator MII, MIE, DefMII; in runOnMachineFunction() local
73 for (MII = MBB.begin(), MIE = MBB.end(); MII != MIE; ++MII) { in runOnMachineFunction()
74 MachineInstr &MI = *MII; in runOnMachineFunction()
78 MBB.splice(std::next(DefMII), &MBB, MII); in runOnMachineFunction()
80 std::next(MII).getInstrIterator()); in runOnMachineFunction()
87 DefMII = MII; in runOnMachineFunction()
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-7.0/llvm/include/llvm/CodeGen/
DMachineInstrBundleIterator.h113 instr_iterator MII;
133 MachineInstrBundleIterator(instr_iterator MI) : MII(MI) {
139 MachineInstrBundleIterator(reference MI) : MII(MI) {
145 MachineInstrBundleIterator(pointer MI) : MII(MI) {
158 : MII(I.getInstrIterator()) {}
160 MachineInstrBundleIterator() : MII(nullptr) {}
179 reference operator*() const { return *MII; }
183 bool isValid() const { return MII.getNodePtr(); }
187 return L.MII == R.MII;
191 return L.MII == R; // Avoid assertion about validity of R.
[all …]
/external/swiftshader/third_party/llvm-7.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()
242 MachineBasicBlock::instr_iterator MII = MBB.instr_begin(); in finalizeBundles() local
244 if (MII == MIE) in finalizeBundles()
[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 …]
/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-7.0/llvm/lib/CodeGen/GlobalISel/
DInstructionSelect.cpp105 for (auto MII = std::prev(MBB->end()), Begin = MBB->begin(); in runOnMachineFunction() local
109 const auto AfterIt = std::next(MII); in runOnMachineFunction()
112 MachineInstr &MI = *MII; in runOnMachineFunction()
115 if (MII == Begin) in runOnMachineFunction()
118 --MII; in runOnMachineFunction()
139 auto InsertedBegin = ReachedBegin ? MBB->begin() : std::next(MII); in runOnMachineFunction()
156 for (auto MII = std::prev(MBB.end()), Begin = MBB.begin(); !ReachedBegin;) { in runOnMachineFunction() local
158 MachineInstr &MI = *MII; in runOnMachineFunction()
161 if (MII == Begin) in runOnMachineFunction()
164 --MII; in runOnMachineFunction()
DCombiner.cpp59 for (auto MII = MBB->rbegin(), MIE = MBB->rend(); MII != MIE;) { in combineMachineInstrs() local
60 MachineInstr *CurMI = &*MII; in combineMachineInstrs()
61 ++MII; in combineMachineInstrs()
/external/swiftshader/third_party/llvm-7.0/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()
83 if (HexagonMCInstrInfo::getExtendableOp(MII, *MI) == OpNo && in printOperand()
84 (HasExtender || HexagonMCInstrInfo::isConstExtended(MII, *MI))) in printOperand()
175 if (HasExtender || HexagonMCInstrInfo::isConstExtended(MII, *MI)) in printBrtarget()
176 if (HexagonMCInstrInfo::getExtendableOp(MII, *MI) == OpNo) in printBrtarget()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DMLxExpansionPass.cpp247 MachineBasicBlock::iterator MII = MI; in ExpandFPMLxInstruction()
248 MII = llvm::prior(MII); in ExpandFPMLxInstruction()
249 MachineInstr &MI2 = *MII; in ExpandFPMLxInstruction()
250 MII = llvm::prior(MII); in ExpandFPMLxInstruction()
251 MachineInstr &MI1 = *MII; in ExpandFPMLxInstruction()
267 MachineBasicBlock::reverse_iterator MII = MBB.rbegin(), E = MBB.rend(); in ExpandFPMLxInstructions() local
268 while (MII != E) { in ExpandFPMLxInstructions()
269 MachineInstr *MI = &*MII; in ExpandFPMLxInstructions()
272 ++MII; in ExpandFPMLxInstructions()
280 ++MII; in ExpandFPMLxInstructions()
[all …]
/external/swiftshader/third_party/llvm-7.0/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()
144 assert((OpNo < MII.get(MI->getOpcode()).getNumOperands() || in printOperand()
145 MII.get(MI->getOpcode()).TSFlags == 0) && in printOperand()
150 else if (OpNo >= MII.get(MI->getOpcode()).getNumDefs()) in printOperand()
157 if (OpNo < MII.get(MI->getOpcode()).getNumDefs()) in printOperand()
160 const MCInstrDesc &Desc = MII.get(MI->getOpcode()); in printOperand()
172 const MCInstrDesc &Desc = MII.get(MI->getOpcode()); in printOperand()
187 assert((OpNo < MII.get(MI->getOpcode()).getNumOperands() || in printOperand()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DVirtRegRewriter.cpp675 MachineBasicBlock::iterator &MII, in ReMaterialize() argument
686 TII->reMaterialize(MBB, MII, DestReg, 0, ReMatDefMI, *TRI); in ReMaterialize()
687 MachineInstr *NewMI = prior(MII); in ReMaterialize()
1020 static unsigned FindFreeRegister(MachineBasicBlock::iterator MII, in FindFreeRegister() argument
1033 if (MII == MBB.begin()) in FindFreeRegister()
1035 MachineInstr *PrevMI = prior(MII); in FindFreeRegister()
1036 MII = PrevMI; in FindFreeRegister()
1123 MachineBasicBlock::iterator &MII,
1129 bool OptimizeByUnfold(MachineBasicBlock::iterator &MII,
1135 bool CommuteToFoldReload(MachineBasicBlock::iterator &MII,
[all …]
DStackSlotColoring.cpp135 bool PropagateBackward(MachineBasicBlock::iterator MII,
138 bool PropagateForward(MachineBasicBlock::iterator MII,
185 for (MachineBasicBlock::iterator MII = MBB->begin(), EE = MBB->end(); in ScanForSpillSlotRefs() local
186 MII != EE; ++MII) { in ScanForSpillSlotRefs()
187 MachineInstr *MI = &*MII; in ScanForSpillSlotRefs()
495 bool StackSlotColoring::PropagateBackward(MachineBasicBlock::iterator MII, in PropagateBackward() argument
498 if (MII == MBB->begin()) in PropagateBackward()
503 while (--MII != MBB->begin()) { in PropagateBackward()
507 const MCInstrDesc &MCID = MII->getDesc(); in PropagateBackward()
508 for (unsigned i = 0, e = MII->getNumOperands(); i != e; ++i) { in PropagateBackward()
[all …]
/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-7.0/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()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cfi-verify/lib/
DFileAnalysis.cpp167 const auto &InstrDesc = MII->get(InstrMeta.Instruction.getOpcode()); in isCFITrap()
178 const auto &InstrDesc = MII->get(InstrMeta.Instruction.getOpcode()); in canFallThrough()
193 const auto &InstrDesc = MII->get(InstrMeta.Instruction.getOpcode()); in getDefiniteNextInstruction()
252 const MCInstrInfo *FileAnalysis::getMCInstrInfo() const { return MII.get(); } in getMCInstrInfo()
269 const auto &InstrDesc = MII->get(InstrMetaPtr->Instruction.getOpcode()); in validateCFIProtection()
312 bool canLoad = !MII->get(IndirectCF.Instruction.getOpcode()).mayLoad(); in indirectCFOperandClobber()
321 const auto &InstrDesc = MII->get(NodeInstr.Instruction.getOpcode()); in indirectCFOperandClobber()
384 MII.reset(ObjectTarget->createMCInstrInfo()); in initialiseDisassemblyMembers()
385 if (!MII) in initialiseDisassemblyMembers()
397 MIA.reset(ObjectTarget->createMCInstrAnalysis(MII.get())); in initialiseDisassemblyMembers()
[all …]

12345678910>>...13