Home
last modified time | relevance | path

Searched refs:MOI (Results 1 – 25 of 41) sorted by relevance

12

/external/llvm-project/llvm/lib/CodeGen/
DStackMaps.cpp177 StackMaps::parseOperand(MachineInstr::const_mop_iterator MOI, in parseOperand() argument
181 if (MOI->isImm()) { in parseOperand()
182 switch (MOI->getImm()) { in parseOperand()
191 Register Reg = (++MOI)->getReg(); in parseOperand()
192 int64_t Imm = (++MOI)->getImm(); in parseOperand()
198 int64_t Size = (++MOI)->getImm(); in parseOperand()
200 Register Reg = (++MOI)->getReg(); in parseOperand()
201 int64_t Imm = (++MOI)->getImm(); in parseOperand()
207 ++MOI; in parseOperand()
208 assert(MOI->isImm() && "Expected constant operand."); in parseOperand()
[all …]
DLiveRangeEdit.cpp308 for (MachineInstr::mop_iterator MOI = MI->operands_begin(), in eliminateDeadDef() local
309 MOE = MI->operands_end(); MOI != MOE; ++MOI) { in eliminateDeadDef()
310 if (!MOI->isReg()) in eliminateDeadDef()
312 Register Reg = MOI->getReg(); in eliminateDeadDef()
315 if (Reg && MOI->readsReg() && !MRI.isReserved(Reg)) in eliminateDeadDef()
317 else if (MOI->isDef()) in eliminateDeadDef()
327 if ((MI->readsVirtualRegister(Reg) && (MI->isCopy() || MOI->isDef())) || in eliminateDeadDef()
328 (MOI->readsReg() && (MRI.hasOneNonDBGUse(Reg) || useIsKill(LI, *MOI)))) in eliminateDeadDef()
332 if (MOI->isDef()) { in eliminateDeadDef()
DMachineVerifier.cpp2654 for (ConstMIBundleOperands MOI(*MI); MOI.isValid(); ++MOI) { in verifyLiveRangeValue() local
2655 if (!MOI->isReg() || !MOI->isDef()) in verifyLiveRangeValue()
2658 if (MOI->getReg() != Reg) in verifyLiveRangeValue()
2661 if (!Register::isPhysicalRegister(MOI->getReg()) || in verifyLiveRangeValue()
2662 !TRI->hasRegUnit(MOI->getReg(), Reg)) in verifyLiveRangeValue()
2666 (TRI->getSubRegIndexLaneMask(MOI->getSubReg()) & LaneMask).none()) in verifyLiveRangeValue()
2669 if (MOI->isEarlyClobber()) in verifyLiveRangeValue()
2794 for (ConstMIBundleOperands MOI(*MI); MOI.isValid(); ++MOI) { in verifyLiveRangeSegment() local
2795 if (!MOI->isReg() || MOI->getReg() != Reg) in verifyLiveRangeSegment()
2797 unsigned Sub = MOI->getSubReg(); in verifyLiveRangeSegment()
[all …]
DVirtRegMap.cpp507 for (MachineInstr::mop_iterator MOI = MI->operands_begin(), in rewrite() local
508 MOE = MI->operands_end(); MOI != MOE; ++MOI) { in rewrite()
509 MachineOperand &MO = *MOI; in rewrite()
DLiveInterval.cpp904 for (ConstMIBundleOperands MOI(*MI); MOI.isValid(); ++MOI) { in stripValuesNotDefiningMask() local
905 if (!MOI->isReg() || !MOI->isDef()) in stripValuesNotDefiningMask()
907 if (MOI->getReg() != Reg) in stripValuesNotDefiningMask()
909 LaneBitmask OrigMask = TRI.getSubRegIndexLaneMask(MOI->getSubReg()); in stripValuesNotDefiningMask()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIMemoryLegalizer.cpp410 bool expandLoad(const SIMemOpInfo &MOI,
414 bool expandStore(const SIMemOpInfo &MOI,
418 bool expandAtomicFence(const SIMemOpInfo &MOI,
422 bool expandAtomicCmpxchgOrRmw(const SIMemOpInfo &MOI,
1135 bool SIMemoryLegalizer::expandLoad(const SIMemOpInfo &MOI, in expandLoad() argument
1141 if (MOI.isAtomic()) { in expandLoad()
1142 if (MOI.getOrdering() == AtomicOrdering::Monotonic || in expandLoad()
1143 MOI.getOrdering() == AtomicOrdering::Acquire || in expandLoad()
1144 MOI.getOrdering() == AtomicOrdering::SequentiallyConsistent) { in expandLoad()
1145 Changed |= CC->enableLoadCacheBypass(MI, MOI.getScope(), in expandLoad()
[all …]
DR600EmitClauseMarkers.cpp201 MOI = Def->operands_begin(), in canClauseLocalKillFitInClause() local
202 MOE = Def->operands_end(); MOI != MOE; ++MOI) { in canClauseLocalKillFitInClause()
203 if (!MOI->isReg() || !MOI->isDef() || in canClauseLocalKillFitInClause()
204 TRI.isPhysRegLiveAcrossClauses(MOI->getReg())) in canClauseLocalKillFitInClause()
228 if (UseI->readsRegister(MOI->getReg(), &TRI)) in canClauseLocalKillFitInClause()
232 if (UseI != Def && UseI->killsRegister(MOI->getReg(), &TRI)) in canClauseLocalKillFitInClause()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DSIMemoryLegalizer.cpp436 bool expandLoad(const SIMemOpInfo &MOI,
440 bool expandStore(const SIMemOpInfo &MOI,
444 bool expandAtomicFence(const SIMemOpInfo &MOI,
448 bool expandAtomicCmpxchgOrRmw(const SIMemOpInfo &MOI,
1177 bool SIMemoryLegalizer::expandLoad(const SIMemOpInfo &MOI, in expandLoad() argument
1183 if (MOI.isAtomic()) { in expandLoad()
1184 if (MOI.getOrdering() == AtomicOrdering::Monotonic || in expandLoad()
1185 MOI.getOrdering() == AtomicOrdering::Acquire || in expandLoad()
1186 MOI.getOrdering() == AtomicOrdering::SequentiallyConsistent) { in expandLoad()
1187 Changed |= CC->enableLoadCacheBypass(MI, MOI.getScope(), in expandLoad()
[all …]
DR600EmitClauseMarkers.cpp201 MOI = Def->operands_begin(), in canClauseLocalKillFitInClause() local
202 MOE = Def->operands_end(); MOI != MOE; ++MOI) { in canClauseLocalKillFitInClause()
203 if (!MOI->isReg() || !MOI->isDef() || in canClauseLocalKillFitInClause()
204 TRI.isPhysRegLiveAcrossClauses(MOI->getReg())) in canClauseLocalKillFitInClause()
228 if (UseI->readsRegister(MOI->getReg(), &TRI)) in canClauseLocalKillFitInClause()
232 if (UseI != Def && UseI->killsRegister(MOI->getReg(), &TRI)) in canClauseLocalKillFitInClause()
/external/llvm/lib/CodeGen/
DStackMaps.cpp88 StackMaps::parseOperand(MachineInstr::const_mop_iterator MOI, in parseOperand() argument
92 if (MOI->isImm()) { in parseOperand()
93 switch (MOI->getImm()) { in parseOperand()
102 unsigned Reg = (++MOI)->getReg(); in parseOperand()
103 int64_t Imm = (++MOI)->getImm(); in parseOperand()
109 int64_t Size = (++MOI)->getImm(); in parseOperand()
111 unsigned Reg = (++MOI)->getReg(); in parseOperand()
112 int64_t Imm = (++MOI)->getImm(); in parseOperand()
118 ++MOI; in parseOperand()
119 assert(MOI->isImm() && "Expected constant operand."); in parseOperand()
[all …]
DLiveRangeEdit.cpp280 for (MachineInstr::mop_iterator MOI = MI->operands_begin(), in eliminateDeadDef() local
281 MOE = MI->operands_end(); MOI != MOE; ++MOI) { in eliminateDeadDef()
282 if (!MOI->isReg()) in eliminateDeadDef()
284 unsigned Reg = MOI->getReg(); in eliminateDeadDef()
287 if (Reg && MOI->readsReg() && !MRI.isReserved(Reg)) in eliminateDeadDef()
289 else if (MOI->isDef()) in eliminateDeadDef()
299 if ((MI->readsVirtualRegister(Reg) && (MI->isCopy() || MOI->isDef())) || in eliminateDeadDef()
300 (MOI->readsReg() && (MRI.hasOneNonDBGUse(Reg) || useIsKill(LI, *MOI)))) in eliminateDeadDef()
304 if (MOI->isDef()) { in eliminateDeadDef()
DMachineVerifier.cpp1632 for (ConstMIBundleOperands MOI(*MI); MOI.isValid(); ++MOI) { in verifyLiveRangeValue() local
1633 if (!MOI->isReg() || !MOI->isDef()) in verifyLiveRangeValue()
1636 if (MOI->getReg() != Reg) in verifyLiveRangeValue()
1639 if (!TargetRegisterInfo::isPhysicalRegister(MOI->getReg()) || in verifyLiveRangeValue()
1640 !TRI->hasRegUnit(MOI->getReg(), Reg)) in verifyLiveRangeValue()
1644 (TRI->getSubRegIndexLaneMask(MOI->getSubReg()) & LaneMask) == 0) in verifyLiveRangeValue()
1647 if (MOI->isEarlyClobber()) in verifyLiveRangeValue()
1772 for (ConstMIBundleOperands MOI(*MI); MOI.isValid(); ++MOI) { in verifyLiveRangeSegment() local
1773 if (!MOI->isReg() || MOI->getReg() != Reg) in verifyLiveRangeSegment()
1776 (LaneMask & TRI->getSubRegIndexLaneMask(MOI->getSubReg())) == 0) in verifyLiveRangeSegment()
[all …]
DVirtRegMap.cpp388 for (MachineInstr::mop_iterator MOI = MI->operands_begin(), in rewrite() local
389 MOE = MI->operands_end(); MOI != MOE; ++MOI) { in rewrite()
390 MachineOperand &MO = *MOI; in rewrite()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DStackMaps.cpp102 StackMaps::parseOperand(MachineInstr::const_mop_iterator MOI, in parseOperand() argument
106 if (MOI->isImm()) { in parseOperand()
107 switch (MOI->getImm()) { in parseOperand()
116 Register Reg = (++MOI)->getReg(); in parseOperand()
117 int64_t Imm = (++MOI)->getImm(); in parseOperand()
123 int64_t Size = (++MOI)->getImm(); in parseOperand()
125 Register Reg = (++MOI)->getReg(); in parseOperand()
126 int64_t Imm = (++MOI)->getImm(); in parseOperand()
132 ++MOI; in parseOperand()
133 assert(MOI->isImm() && "Expected constant operand."); in parseOperand()
[all …]
DLiveRangeEdit.cpp307 for (MachineInstr::mop_iterator MOI = MI->operands_begin(), in eliminateDeadDef() local
308 MOE = MI->operands_end(); MOI != MOE; ++MOI) { in eliminateDeadDef()
309 if (!MOI->isReg()) in eliminateDeadDef()
311 Register Reg = MOI->getReg(); in eliminateDeadDef()
314 if (Reg && MOI->readsReg() && !MRI.isReserved(Reg)) in eliminateDeadDef()
316 else if (MOI->isDef()) in eliminateDeadDef()
326 if ((MI->readsVirtualRegister(Reg) && (MI->isCopy() || MOI->isDef())) || in eliminateDeadDef()
327 (MOI->readsReg() && (MRI.hasOneNonDBGUse(Reg) || useIsKill(LI, *MOI)))) in eliminateDeadDef()
331 if (MOI->isDef()) { in eliminateDeadDef()
DMachineVerifier.cpp2436 for (ConstMIBundleOperands MOI(*MI); MOI.isValid(); ++MOI) { in verifyLiveRangeValue() local
2437 if (!MOI->isReg() || !MOI->isDef()) in verifyLiveRangeValue()
2440 if (MOI->getReg() != Reg) in verifyLiveRangeValue()
2443 if (!Register::isPhysicalRegister(MOI->getReg()) || in verifyLiveRangeValue()
2444 !TRI->hasRegUnit(MOI->getReg(), Reg)) in verifyLiveRangeValue()
2448 (TRI->getSubRegIndexLaneMask(MOI->getSubReg()) & LaneMask).none()) in verifyLiveRangeValue()
2451 if (MOI->isEarlyClobber()) in verifyLiveRangeValue()
2576 for (ConstMIBundleOperands MOI(*MI); MOI.isValid(); ++MOI) { in verifyLiveRangeSegment() local
2577 if (!MOI->isReg() || MOI->getReg() != Reg) in verifyLiveRangeSegment()
2579 unsigned Sub = MOI->getSubReg(); in verifyLiveRangeSegment()
[all …]
DVirtRegMap.cpp507 for (MachineInstr::mop_iterator MOI = MI->operands_begin(), in rewrite() local
508 MOE = MI->operands_end(); MOI != MOE; ++MOI) { in rewrite()
509 MachineOperand &MO = *MOI; in rewrite()
DLiveInterval.cpp904 for (ConstMIBundleOperands MOI(*MI); MOI.isValid(); ++MOI) { in stripValuesNotDefiningMask() local
905 if (!MOI->isReg() || !MOI->isDef()) in stripValuesNotDefiningMask()
907 if (MOI->getReg() != Reg) in stripValuesNotDefiningMask()
909 LaneBitmask OrigMask = TRI.getSubRegIndexLaneMask(MOI->getSubReg()); in stripValuesNotDefiningMask()
DMachineTraceMetrics.cpp900 for (MachineInstr::const_mop_iterator MOI = MI.operands_begin(), in updatePhysDepsUpwards() local
902 MOI != MOE; ++MOI) { in updatePhysDepsUpwards()
903 const MachineOperand &MO = *MOI; in updatePhysDepsUpwards()
910 ReadOps.push_back(MI.getOperandNo(MOI)); in updatePhysDepsUpwards()
923 DepHeight += SchedModel.computeOperandLatency(&MI, MI.getOperandNo(MOI), in updatePhysDepsUpwards()
/external/llvm/lib/Target/AMDGPU/
DR600EmitClauseMarkers.cpp189 MOI = Def->operands_begin(), in canClauseLocalKillFitInClause() local
190 MOE = Def->operands_end(); MOI != MOE; ++MOI) { in canClauseLocalKillFitInClause()
191 if (!MOI->isReg() || !MOI->isDef() || in canClauseLocalKillFitInClause()
192 TRI.isPhysRegLiveAcrossClauses(MOI->getReg())) in canClauseLocalKillFitInClause()
215 if (UseI->findRegisterUseOperandIdx(MOI->getReg())) in canClauseLocalKillFitInClause()
218 if (UseI != Def && UseI->findRegisterDefOperandIdx(MOI->getReg()) != -1) in canClauseLocalKillFitInClause()
/external/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
DAVRInstPrinter.cpp103 const MCOperandInfo &MOI = this->MII.get(MI->getOpcode()).OpInfo[OpNo]; in printOperand() local
104 if (MOI.RegClass == AVR::ZREGRegClassID) { in printOperand()
124 bool isPtrReg = (MOI.RegClass == AVR::PTRREGSRegClassID) || in printOperand()
125 (MOI.RegClass == AVR::PTRDISPREGSRegClassID) || in printOperand()
126 (MOI.RegClass == AVR::ZREGRegClassID); in printOperand()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/MCTargetDesc/
DAVRInstPrinter.cpp104 const MCOperandInfo &MOI = this->MII.get(MI->getOpcode()).OpInfo[OpNo]; in printOperand() local
107 bool isPtrReg = (MOI.RegClass == AVR::PTRREGSRegClassID) || in printOperand()
108 (MOI.RegClass == AVR::PTRDISPREGSRegClassID) || in printOperand()
109 (MOI.RegClass == AVR::ZREGRegClassID); in printOperand()
/external/llvm-project/llvm/include/llvm/CodeGen/
DStackMaps.h353 parseOperand(MachineInstr::const_mop_iterator MOI,
360 MachineInstr::const_mop_iterator MOI,
381 MachineInstr::const_mop_iterator MOI,
/external/llvm/include/llvm/CodeGen/
DStackMaps.h216 parseOperand(MachineInstr::const_mop_iterator MOI,
234 MachineInstr::const_mop_iterator MOI,
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DStackMaps.h300 parseOperand(MachineInstr::const_mop_iterator MOI,
321 MachineInstr::const_mop_iterator MOI,

12