34 #define DEBUG_TYPE "packets"
38 cl::desc(
"Disable Hexagon packetizer pass"));
42 cl::desc(
"Allow non-solo packetization of volatile memory references"));
49 cl::desc(
"Disable vector double new-value-stores"));
75 StringRef getPassName()
const override {
return "Hexagon Packetizer"; }
91 "Hexagon Packetizer",
false,
false)
106 addMutation(make_unique<HexagonSubtarget::HexagonDAGMutation>());
113 for (
auto &MO : FirstI.
operands()) {
114 if (!MO.isReg() || !MO.isDef())
116 unsigned R = MO.getReg();
130 InsertPt = std::next(BundleIt).getInstrIterator();
151 for (++I; I != E && I->isBundledWithPred(); ++
I)
164 BundleIt->eraseFromParent();
175 auto &MLI = getAnalysis<MachineLoopInfo>();
176 auto *AA = &getAnalysis<AAResultsWrapperPass>().getAAResults();
177 auto *MBPI = &getAnalysis<MachineBranchProbabilityInfo>();
180 HII->genAllInsnTimingClasses(MF);
198 for (
auto &MB : MF) {
200 auto MI = MB.begin();
202 auto NextI = std::next(
MI);
212 for (
auto &MB : MF) {
213 auto Begin = MB.begin(),
End = MB.end();
214 while (Begin !=
End) {
218 while (RB !=
End && HII->isSchedulingBoundary(*RB, &MB, MF))
223 while (RE !=
End && !HII->isSchedulingBoundary(*RE, &MB, MF))
255 auto *ExtMI = MF.CreateMachineInstr(HII->get(Hexagon::A4_ext),
DebugLoc());
257 if (Reserve && Avail)
259 MF.DeleteMachineInstr(ExtMI);
281 if (MO.isReg() && MO.getReg() == DepReg && !MO.isImplicit())
294 return MI.
getOpcode() == Hexagon::J2_jump;
299 case Hexagon::Y2_barrier:
326 if (NewRC == &Hexagon::PredRegsRegClass) {
343 MI.
setDesc(HII->get(CurOpcode));
350 DEBUG(
dbgs() <<
"Cleanup packet has "; BI->dump(););
356 for (
auto &MO : BI->operands())
389 DEBUG(
dbgs() <<
"Can we DOT Cur Vector MI\n";
391 dbgs() <<
"in packet\n";);
394 dbgs() <<
"Checking CUR against ";
398 bool FoundMatch =
false;
399 for (
auto &MO : MJ.operands())
400 if (MO.isReg() && MO.getReg() == DestReg)
408 DEBUG(
dbgs() <<
"packet has "; BI->dump(););
409 if (BI->readsRegister(DepReg, MF.getSubtarget().getRegisterInfo()))
426 if (RC == &Hexagon::PredRegsRegClass)
430 MI.
setDesc(HII->get(NewOpcode));
436 MI.
setDesc(HII->get(NewOpcode));
443 case Hexagon::S2_storerd_io:
444 case Hexagon::S2_storeri_io:
445 case Hexagon::S2_storerh_io:
446 case Hexagon::S2_storerb_io:
451 unsigned FrameSize = MF.getFrameInfo().getStackSize();
464 case Hexagon::S2_storerd_io:
465 case Hexagon::S2_storeri_io:
466 case Hexagon::S2_storerh_io:
467 case Hexagon::S2_storerb_io:
472 unsigned FrameSize = MF.getFrameInfo().getStackSize();
503 if (MO.isReg() && MO.isDef())
504 DefRegsSet.
insert(MO.getReg());
507 if (MO.isReg() && MO.isUse() && DefRegsSet.count(MO.getReg()))
513 assert(Op1.
isReg() &&
"Post increment operand has be to a register.");
519 assert(Op0.
isReg() &&
"Post increment operand has be to a register.");
524 llvm_unreachable(
"mayLoad or mayStore not set for Post Increment operation");
536 case Hexagon::L4_loadrd_ap:
537 case Hexagon::L4_loadrb_ap:
538 case Hexagon::L4_loadrh_ap:
539 case Hexagon::L4_loadrub_ap:
540 case Hexagon::L4_loadruh_ap:
541 case Hexagon::L4_loadri_ap:
586 if (PacketRC == &Hexagon::DoubleRegsRegClass)
625 unsigned predRegNumSrc = 0;
626 unsigned predRegNumDst = 0;
630 for (
auto &MO : PacketMI.
operands()) {
633 predRegNumSrc = MO.getReg();
634 predRegClass = HRI->getMinimalPhysRegClass(predRegNumSrc);
635 if (predRegClass == &Hexagon::PredRegsRegClass)
638 assert((predRegClass == &Hexagon::PredRegsRegClass) &&
639 "predicate register not found in a predicated PacketMI instruction");
645 predRegNumDst = MO.getReg();
646 predRegClass = HRI->getMinimalPhysRegClass(predRegNumDst);
647 if (predRegClass == &Hexagon::PredRegsRegClass)
650 assert((predRegClass == &Hexagon::PredRegsRegClass) &&
651 "predicate register not found in a predicated MI instruction");
661 if (predRegNumDst != predRegNumSrc ||
675 unsigned StartCheck = 0;
677 for (
auto I : CurrentPacketMIs) {
684 if (&TempMI != &PacketMI && !StartCheck)
688 if (&TempMI == &PacketMI)
703 for (
unsigned opNum = 0; opNum < MI.
getNumOperands()-1; opNum++) {
714 for (
auto &MO : PacketMI.
operands()) {
715 if (MO.isRegMask() && MO.clobbersPhysReg(DepReg))
717 if (!MO.isReg() || !MO.isDef() || !MO.isImplicit())
720 if (R == DepReg || HRI->isSuperRegister(DepReg, R))
730 if (MO.isReg() && MO.isUse() && MO.isImplicit() && MO.getReg() == DepReg)
740 const SUnit *PacketSU,
unsigned DepReg,
758 if (CheckDef && MO.isRegMask() && MO.clobbersPhysReg(DepReg))
760 if (!MO.isReg() || MO.getReg() != DepReg || !MO.isImplicit())
762 if (CheckDef == MO.isDef())
806 if (RC == &Hexagon::PredRegsRegClass)
809 if (RC != &Hexagon::PredRegsRegClass && !HII->
mayBeNewStore(MI))
818 MF.DeleteMachineInstr(NewMI);
819 if (!ResourcesAvailable)
857 if (PacketSU->
isSucc(PacketSUDep)) {
858 for (
unsigned i = 0; i < PacketSU->
Succs.size(); ++i) {
859 auto &Dep = PacketSU->
Succs[i];
860 if (Dep.getSUnit() == PacketSUDep && Dep.getKind() ==
SDep::Anti &&
861 Dep.getReg() == DepReg)
879 if (
Op.isReg() &&
Op.getReg() &&
Op.isUse() &&
880 Hexagon::PredRegsRegClass.contains(
Op.getReg()))
922 if (PacketSU->
isSucc(SU)) {
923 for (
unsigned i = 0; i < PacketSU->
Succs.size(); ++i) {
924 auto Dep = PacketSU->
Succs[i];
929 if (Dep.getSUnit() == SU && Dep.getKind() ==
SDep::Data &&
930 Hexagon::PredRegsRegClass.contains(Dep.getReg())) {
949 return PReg1 == PReg2 &&
950 Hexagon::PredRegsRegClass.contains(PReg1) &&
951 Hexagon::PredRegsRegClass.contains(PReg2) &&
959 PromotedToDotNew =
false;
960 GlueToNewValueJump =
false;
961 GlueAllocframeStore =
false;
962 FoundSequentialDependence =
false;
985 unsigned FuncUnits = IS->
getUnits();
1040 case (Hexagon::S2_storew_locked):
1041 case (Hexagon::S4_stored_locked):
1042 case (Hexagon::L2_loadw_locked):
1043 case (Hexagon::L4_loadd_locked):
1044 case (Hexagon::Y4_l2fetch): {
1048 unsigned TJ = HII.
getType(MJ);
1072 for (
auto &
B : MF) {
1075 for (
auto I =
B.instr_begin(),
E =
B.instr_end();
I !=
E;
I = NextI) {
1076 NextI = std::next(
I);
1089 bool InsertBeforeBundle;
1093 InsertBeforeBundle =
true;
1097 BundleIt =
moveInstrOut(MI, BundleIt, InsertBeforeBundle);
1106 case Hexagon::Y2_barrier:
1107 case Hexagon::Y2_dcfetchbo:
1123 BitVector DeadDefs(Hexagon::NUM_TARGET_REGS);
1125 if (!MO.isReg() || !MO.isDef() || !MO.isDead())
1127 DeadDefs[MO.getReg()] =
true;
1131 if (!MO.isReg() || !MO.isDef() || !MO.isDead())
1133 unsigned R = MO.getReg();
1134 if (R != Hexagon::USR_OVF && DeadDefs[R])
1165 if (HII->
isLoopN(I) && isBadForLoopN(J))
1167 if (HII->
isLoopN(J) && isBadForLoopN(I))
1190 if (!OpJ.isRegMask())
1195 if (OpJ.clobbersPhysReg(OpI.getReg()))
1197 }
else if (OpI.isRegMask()) {
1210 if ((SysI && StoreJ) || (SysJ && StoreI))
1213 if (StoreI && StoreJ) {
1219 bool MopStI = HII->
isMemOp(I) || StoreI;
1220 bool MopStJ = HII->
isMemOp(J) || StoreJ;
1221 if (MopStI && MopStJ)
1238 IgnoreDepMIs.clear();
1270 if (NextMII != I.getParent()->end() && HII->
isNewValueJump(*NextMII)) {
1273 bool secondRegMatch =
false;
1277 if (NOp1.
isReg() && I.getOperand(0).getReg() == NOp1.
getReg())
1278 secondRegMatch =
true;
1311 GlueToNewValueJump =
true;
1318 for (
unsigned i = 0; i < SUJ->
Succs.size(); ++i) {
1319 if (FoundSequentialDependence)
1322 if (SUJ->
Succs[i].getSUnit() != SUI)
1341 unsigned DepReg = 0;
1344 DepReg = SUJ->
Succs[i].getReg();
1345 RC = HRI->getMinimalPhysRegClass(DepReg);
1371 PromotedToDotNew =
true;
1373 FoundSequentialDependence =
true;
1397 auto Itr =
find(IgnoreDepMIs, &J);
1398 if (Itr != IgnoreDepMIs.end()) {
1402 IgnoreDepMIs.push_back(&I);
1414 if (I.isConditionalBranch() && DepType !=
SDep::Data &&
1419 FoundSequentialDependence =
true;
1433 FoundSequentialDependence =
true;
1439 bool LoadI = I.mayLoad(), StoreI = I.mayStore();
1444 FoundSequentialDependence =
true;
1447 }
else if (!LoadJ || (!LoadI && !StoreI)) {
1450 FoundSequentialDependence =
true;
1465 unsigned Opc = I.getOpcode();
1467 case Hexagon::S2_storerd_io:
1468 case Hexagon::S2_storeri_io:
1469 case Hexagon::S2_storerh_io:
1470 case Hexagon::S2_storerb_io:
1477 if (GlueAllocframeStore)
1496 if (
Op.isReg() &&
Op.isDef()) {
1497 unsigned R =
Op.getReg();
1500 }
else if (!
Op.isRegMask()) {
1504 FoundSequentialDependence =
true;
1516 FoundSequentialDependence =
true;
1521 if (FoundSequentialDependence) {
1541 if (PromotedToDotNew)
1548 if (GlueAllocframeStore) {
1550 GlueAllocframeStore =
false;
1561 PacketStalls =
false;
1571 if (GlueToNewValueJump) {
1588 if (Good && ExtNvjMI)
1614 if (PromotedToDotNew)
1616 if (GlueAllocframeStore) {
1618 GlueAllocframeStore =
false;
1653 if (!OldPacketMIs.empty()) {
1654 auto *OldBB = OldPacketMIs.front()->getParent();
1684 for (
auto &Pred : SUI->
Preds)
1685 if (Pred.getSUnit() == SUJ &&
1693 for (
auto J : OldPacketMIs) {
1695 for (
auto &Pred : SUI->
Preds)
1696 if (Pred.getSUnit() == SUJ && Pred.getLatency() > 1)
1702 for (
auto J : OldPacketMIs) {
1704 for (
auto &Pred : SUI->
Preds)
1705 if (Pred.getSUnit() == SUJ && Pred.getLatency() > 1)
1717 return new HexagonPacketizer();
bool isInsideBundle() const
Return true if MI is in a bundle (but not the first MI in a bundle).
std::vector< MachineInstr * > CurrentPacketMIs
const MachineFunction * getParent() const
Return the MachineFunction containing this basic block.
bool canPromoteToNewValueStore(const MachineInstr &MI, const MachineInstr &PacketMI, unsigned DepReg)
AnalysisUsage & addPreserved()
Add the specified Pass class to the set of analyses preserved by this pass.
static bool hasWriteToReadDep(const MachineInstr &FirstI, const MachineInstr &SecondI, const TargetRegisterInfo *TRI)
instr_iterator instr_end()
unsigned getFrameRegister(const MachineFunction &MF) const override
bool isBranch(QueryType Type=AnyInBundle) const
Returns true if this is a conditional, unconditional, or indirect branch.
bool canPromoteToDotNew(const MachineInstr &MI, const SUnit *PacketSU, unsigned DepReg, MachineBasicBlock::iterator &MII, const TargetRegisterClass *RC)
static bool cannotCoexistAsymm(const MachineInstr &MI, const MachineInstr &MJ, const HexagonInstrInfo &HII)
bool isNewValueInst(const MachineInstr &MI) const
int getDotOldOp(const MachineInstr &MI) const
bool mayStore() const
Return true if this instruction could possibly modify memory.
Describe properties that are true of each instruction in the target description file.
bool isPredicatedTrue(const MachineInstr &MI) const
bool mayStore(QueryType Type=AnyInBundle) const
Return true if this instruction could possibly modify memory.
MachineInstr * getInstr() const
Returns the representative MachineInstr for this SUnit.
static bool isImplicitDependency(const MachineInstr &I, bool CheckDef, unsigned DepReg)
const MachineLoopInfo * MLI
unsigned getRARegister() const
bool demoteToDotOld(MachineInstr &MI)
bool hasOrderedMemoryRef() const
Return true if this instruction may have an ordered or volatile memory reference, or if the informati...
static cl::opt< bool > PacketizeVolatiles("hexagon-packetize-volatiles", cl::ZeroOrMore, cl::Hidden, cl::init(true), cl::desc("Allow non-solo packetization of volatile memory references"))
const MCInstrDesc & getDesc() const
Returns the target instruction descriptor of this MachineInstr.
bool isMemOp(const MachineInstr &MI) const
static cl::opt< bool > DisablePacketizer("disable-packetizer", cl::Hidden, cl::ZeroOrMore, cl::init(false), cl::desc("Disable Hexagon packetizer pass"))
bool isTailCall(const MachineInstr &MI) const override
bool isCFIInstruction() const
const Function * getFunction() const
getFunction - Return the LLVM function that this machine code represents
Kind
These are the different kinds of scheduling dependencies.
iterator_range< mop_iterator > operands()
bool isTerminator(QueryType Type=AnyInBundle) const
Returns true if this instruction part of the terminator for a basic block.
SmallVector< SDep, 4 > Preds
All sunit predecessors.
A register anti-dependence (aka WAR).
bool restrictingDepExistInPacket(MachineInstr &, unsigned)
bool canPromoteToDotCur(const MachineInstr &MI, const SUnit *PacketSU, unsigned DepReg, MachineBasicBlock::iterator &MII, const TargetRegisterClass *RC)
AnalysisUsage & addRequired()
#define INITIALIZE_PASS_DEPENDENCY(depName)
static cl::opt< bool > EnableGenAllInsnClass("enable-gen-insn", cl::init(false), cl::Hidden, cl::ZeroOrMore, cl::desc("Generate all instruction with TC"))
std::map< MachineInstr *, SUnit * > MIToSUnit
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
INITIALIZE_PASS_BEGIN(HexagonPacketizer,"hexagon-packetizer","Hexagon Packetizer", false, false) INITIALIZE_PASS_END(HexagonPacketizer
bool shouldAddToPacket(const MachineInstr &MI) override
const InstrStage * beginStage(unsigned ItinClassIndx) const
Return the first stage of the itinerary.
bool isCall() const
Return true if the instruction is a call.
bool isReg() const
isReg - Tests if this is a MO_Register operand.
Regular data dependence (aka true-dependence).
virtual void endPacket(MachineBasicBlock *MBB, MachineBasicBlock::iterator MI)
bool mayLoad(QueryType Type=AnyInBundle) const
Return true if this instruction could possibly read memory.
unsigned getUnits() const
Returns the choice of FUs.
bool isTerminator() const
Returns true if this instruction part of the terminator for a basic block.
const InstrItineraryData * getInstrItins() const
bool isHVXMemWithAIndirect(const MachineInstr &I, const MachineInstr &J) const
bool isLoopN(const MachineInstr &MI) const
unsigned getNumOperands() const
Access to explicit operands of the instruction.
void endPacket(MachineBasicBlock *MBB, MachineBasicBlock::iterator MI) override
bool arePredicatesComplements(MachineInstr &MI1, MachineInstr &MI2)
bool isBundledWithSucc() const
Return true if this instruction is part of a bundle, and it is not the last instruction in the bundle...
static bool doesModifyCalleeSavedReg(const MachineInstr &MI, const TargetRegisterInfo *TRI)
Returns true if the instruction modifies a callee-saved register.
void unbundleFromPred()
Break bundle above this instruction.
const MachineBranchProbabilityInfo * MBPI
A handle to the branch probability pass.
A register output-dependence (aka WAW).
static bool isControlFlow(const MachineInstr &MI)
DFAPacketizer * ResourceTracker
void initializeHexagonPacketizerPass(PassRegistry &)
bool isSaveCalleeSavedRegsCall(const MachineInstr &MI) const
virtual const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const =0
Return a null-terminated list of all of the callee-saved registers on this target.
hexagon Hexagon Packetizer
bool isJumpR(const MachineInstr &MI) const
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
int getNonDotCurOp(const MachineInstr &MI) const
const MachineBasicBlock * getParent() const
static MachineBasicBlock::iterator moveInstrOut(MachineInstr &MI, MachineBasicBlock::iterator BundleIt, bool Before)
bool hasV60TOpsOnly() const
static unsigned getPredicatedRegister(MachineInstr &MI, const HexagonInstrInfo *QII)
Gets the predicate register of a predicated instruction.
bool isDebugValue() const
bool isImplicitDef() const
static const MachineOperand & getAbsSetOperand(const MachineInstr &MI)
bool isSoloInstruction(const MachineInstr &MI) override
MachineLoop * getLoopFor(const MachineBasicBlock *BB) const
Return the innermost loop that BB lives in.
initializer< Ty > init(const Ty &Val)
int getDotNewPredOp(const MachineInstr &MI, const MachineBranchProbabilityInfo *MBPI) const
static bool isSystemInstr(const MachineInstr &MI)
FunctionPass * createHexagonPacketizer()
const MachineOperand & getOperand(unsigned i) const
std::pair< iterator, bool > insert(const ValueT &V)
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
Represent the analysis usage information of a pass.
void clearFlag(MIFlag Flag)
clearFlag - Clear a MI flag.
INITIALIZE_PASS_END(RegBankSelect, DEBUG_TYPE,"Assign register bank of generic virtual registers", false, false) RegBankSelect
static const unsigned End
void setImm(int64_t immVal)
FunctionPass class - This class is used to implement most global optimizations.
self_iterator getIterator()
bool isBundledWithPred() const
Return true if this instruction is part of a bundle, and it is not the first instruction in the bundl...
static bool isRegDependence(const SDep::Kind DepType)
bool tryAllocateResourcesForConstExt(bool Reserve)
bool isToBeScheduledASAP(const MachineInstr &MI1, const MachineInstr &MI2) const
bool isDotCurInst(const MachineInstr &MI) const
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
bool isExtended(const MachineInstr &MI) const
Any other ordering dependency.
bool isPostIncrement(const MachineInstr &MI) const override
Return true for post-incremented instructions.
bool isLegalToPacketizeTogether(SUnit *SUI, SUnit *SUJ) override
bool isPredicated(const MachineInstr &MI) const override
Returns true if the instruction is already predicated.
bool readsRegister(unsigned Reg, const TargetRegisterInfo *TRI=nullptr) const
Return true if the MachineInstr reads the specified register.
static const MachineOperand & getPostIncrementOperand(const MachineInstr &MI, const HexagonInstrInfo *HII)
#define HEXAGON_LRFP_SIZE
void setDesc(const MCInstrDesc &tid)
Replace the instruction descriptor (thus opcode) of the current instruction with a new one...
auto find(R &&Range, const T &Val) -> decltype(std::begin(Range))
Provide wrappers to std::find which take ranges instead of having to pass begin/end explicitly...
bool predCanBeUsedAsDotNew(const MachineInstr &MI, unsigned PredReg) const
MachineOperand class - Representation of each machine instruction operand.
bool canReserveResources(const MCInstrDesc *MID)
static cl::opt< bool > DisableVecDblNVStores("disable-vecdbl-nv-stores", cl::init(false), cl::Hidden, cl::ZeroOrMore, cl::desc("Disable vector double new-value-stores"))
instr_iterator getInstrIterator() const
void setPreservesCFG()
This function should be called by the pass, iff they do not:
void initPacketizerState() override
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
bool canReserveResourcesForConstExt()
MachineBasicBlock::iterator addToPacket(MachineInstr &MI) override
bool isPredicatedNew(const MachineInstr &MI) const
static const MachineOperand & getStoreValueOperand(const MachineInstr &MI)
bool isDeallocRet(const MachineInstr &MI) const
static bool isLoadAbsSet(const MachineInstr &MI)
static PredicateKind getPredicateSense(const MachineInstr &MI, const HexagonInstrInfo *HII)
Returns true if an instruction is predicated on p0 and false if it's predicated on !p0...
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
llvm_unreachable("Unknown RegBank!")
MachineFunctionProperties & set(Property P)
Representation of each machine instruction.
bool isHVXVec(const MachineInstr &MI) const
unsigned getSchedClass() const
Return the scheduling class for this instruction.
bool isDotNewInst(const MachineInstr &MI) const
static bool isSchedBarrier(const MachineInstr &MI)
void reserveResourcesForConstExt()
bool promoteToDotCur(MachineInstr &MI, SDep::Kind DepType, MachineBasicBlock::iterator &MII, const TargetRegisterClass *RC)
void splice(iterator Where, MachineBasicBlock *Other, iterator From)
Take an instruction from MBB 'Other' at the position From, and insert it into this MBB right before '...
bool isCallDependent(const MachineInstr &MI, SDep::Kind DepType, unsigned DepReg)
bool ignorePseudoInstruction(const MachineInstr &MI, const MachineBasicBlock *MBB) override
bool isNewifiable(const MachineInstr &MI, const TargetRegisterClass *NewRC)
int getDotNewOp(const MachineInstr &MI) const
cl::opt< bool > ScheduleInlineAsm
bool isCall(QueryType Type=AnyInBundle) const
int getDotCurOp(const MachineInstr &MI) const
bool hasControlDependence(const MachineInstr &I, const MachineInstr &J)
bool useCallersSP(MachineInstr &MI)
bool isSucc(const SUnit *N) const
Tests if node N is a successor of this node.
bool mayBeNewStore(const MachineInstr &MI) const
Instructions::iterator instr_iterator
bool isSolo(const MachineInstr &MI) const
unsigned getStackRegister() const
unsigned getReg() const
getReg - Returns the register number.
bool promoteToDotNew(MachineInstr &MI, SDep::Kind DepType, MachineBasicBlock::iterator &MII, const TargetRegisterClass *RC)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
bool hasDeadDependence(const MachineInstr &I, const MachineInstr &J)
bool cannotCoexist(const MachineInstr &MI, const MachineInstr &MJ)
bool isLegalToPruneDependencies(SUnit *SUI, SUnit *SUJ) override
bool mayBeCurLoad(const MachineInstr &MI) const
SmallVector< SDep, 4 > Succs
All sunit successors.
void useCalleesSP(MachineInstr &MI)
bool hasRegMaskDependence(const MachineInstr &I, const MachineInstr &J)
StringRef - Represent a constant reference to a string, i.e.
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
void unpacketizeSoloInstrs(MachineFunction &MF)
A wrapper pass to provide the legacy pass manager access to a suitably prepared AAResults object...
Dependence - This class represents a dependence between two memory memory references in a function...
bool isValidOffset(unsigned Opcode, int Offset, bool Extend=true) const
bool isConstExtended(const MachineInstr &MI) const
bool canPromoteToNewValue(const MachineInstr &MI, const SUnit *PacketSU, unsigned DepReg, MachineBasicBlock::iterator &MII)
Instructions::const_iterator const_instr_iterator
DominatorTree Class - Concrete subclass of DominatorTreeBase that is used to compute a normal dominat...
static bool isDirectJump(const MachineInstr &MI)
bool isBarrier(QueryType Type=AnyInBundle) const
Returns true if the specified instruction stops control flow from executing the instruction immediate...
bool modifiesRegister(unsigned Reg, const TargetRegisterInfo *TRI) const
Return true if the MachineInstr modifies (fully define or partially define) the specified register...
uint64_t getType(const MachineInstr &MI) const
bool producesStall(const MachineInstr &MI)
Properties which a MachineFunction may have at a given point in time.
Scheduling unit. This is a node in the scheduling DAG.
bool isNewValueJump(const MachineInstr &MI) const
void reserveResources(const MCInstrDesc *MID)
bool hasV4SpecificDependence(const MachineInstr &I, const MachineInstr &J)