30 const InstrStage *IS,
const unsigned *
OC,
const unsigned *FP)
31 :
MCSubtargetInfo(TT, CPU, FS, PF, PD, ProcSched, WPR, WL, RA, IS, OC, FP) {
63 static const char *SchedPrefix =
" sched: [";
66 if (Latency > 0 && RThroughput.
hasValue())
67 CS << SchedPrefix << Latency <<
format(
":%2.2f", RThroughput.
getValue())
70 CS << SchedPrefix << Latency <<
":?]";
72 CS << SchedPrefix <<
"?:" << RThroughput.
getValue() <<
"]";
85 unsigned Latency = TSchedModel.computeInstrLatency(&MI);
virtual bool enableMachineScheduler() const
True if the subtarget should run MachineScheduler after aggressive coalescing.
static std::string createSchedInfoStr(unsigned Latency, Optional< double > RThroughput)
virtual bool enableAtomicExpand() const
True if the subtarget should run the atomic expansion pass.
bool isPseudo(QueryType Type=IgnoreBundle) const
Return true if this is a pseudo instruction that doesn't correspond to a real machine instruction...
void init(const MCSchedModel &sm, const TargetSubtargetInfo *sti, const TargetInstrInfo *tii)
Initialize the machine model for instruction scheduling.
TargetSubtargetInfo()=delete
virtual bool enablePostRAScheduler() const
True if the subtarget should run a scheduler after register allocation.
Used to provide key value pairs for CPU and arbitrary pointers.
bool isTerminator(QueryType Type=AnyInBundle) const
Returns true if this instruction part of the terminator for a basic block.
Provide an instruction scheduling machine model to CodeGen passes.
const MCSchedModel & getSchedModel() const
Get the machine model for this subtarget's CPU.
virtual bool enableJoinGlobalCopies() const
True if the subtarget should enable joining global copies.
const T & getValue() const LLVM_LVALUE_FUNCTION
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Instances of this class represent a single low-level machine instruction.
format_object< Ts...> format(const char *Fmt, const Ts &...Vals)
These are helper functions used to produce formatted output.
Identify one of the processor resource kinds consumed by a particular scheduling class for the specif...
Optional< double > computeInstrRThroughput(const MachineInstr *MI) const
Compute the reciprocal throughput of the given instruction.
Triple - Helper class for working with autoconf configuration names.
bool hasInstrSchedModel() const
Return true if this machine model includes an instruction-level scheduling model. ...
Specify the latency in cpu cycles for a particular scheduling class and def index.
unsigned getOpcode() const
Specify the number of cycles allowed after instruction issue before a particular use operand reads it...
Representation of each machine instruction.
These values represent a non-pipelined step in the execution of an instruction.
MCSubtargetInfo - Generic base class for all target subtargets.
std::string getSchedInfoStr(const MachineInstr &MI) const override
Returns string representation of scheduler comment.
~TargetSubtargetInfo() override
virtual bool enableRALocalReassignment(CodeGenOpt::Level OptLevel) const
True if the subtarget should run the local reassignment heuristic of the register allocator...
A raw_ostream that writes to an std::string.
virtual const TargetInstrInfo * getInstrInfo() const
StringRef - Represent a constant reference to a string, i.e.
virtual bool useAA() const
Enable use of alias analysis during code generation (during MI scheduling, DAGCombine, etc.).