13 #ifndef LLVM_MC_MCSUBTARGETINFO_H 14 #define LLVM_MC_MCSUBTARGETINFO_H 87 const unsigned *OperandCycles;
88 const unsigned *ForwardingPaths;
98 const unsigned *
OC,
const unsigned *FP);
109 FeatureBits = FeatureBits_;
113 return FeatureBits[Feature];
170 unsigned DefIdx)
const {
171 assert(DefIdx < SC->NumWriteLatencyEntries &&
172 "MachineModel does not specify a WriteResource for DefIdx");
178 unsigned WriteResID)
const {
184 if (
I->UseIdx < UseIdx)
186 if (
I->UseIdx > UseIdx)
189 if (!
I->WriteResourceID ||
I->WriteResourceID == WriteResID) {
215 unsigned CPUID)
const {
222 return Found != ProcDesc.
end() &&
StringRef(Found->Key) == CPU;
259 virtual unsigned getPrefetchDistance()
const;
264 virtual unsigned getMaxPrefetchIterationsAhead()
const;
269 virtual unsigned getMinPrefetchStride()
const;
274 #endif // LLVM_MC_MCSUBTARGETINFO_H auto lower_bound(R &&Range, T &&Value) -> decltype(adl_begin(Range))
Provide wrappers to std::lower_bound which take ranges instead of having to pass begin/end explicitly...
FeatureBitArray Implies
K-V bit mask.
bool operator<(const SubtargetSubTypeKV &Other) const
Compare routine for std::is_sorted.
This class represents lattice values for constants.
void setFeatureBits(const FeatureBitset &FeatureBits_)
uint16_t NumReadAdvanceEntries
bool isCPUStringValid(StringRef CPU) const
Check whether the CPU string is valid.
FeatureBitArray Implies
K-V bit mask.
const MCSchedModel * SchedModel
const Triple & getTargetTriple() const
SI optimize exec mask operations pre RA
const FeatureBitset & getFeatureBits() const
uint16_t NumWriteProcResEntries
const MCWriteLatencyEntry * getWriteLatencyEntry(const MCSchedClassDesc *SC, unsigned DefIdx) const
const MCWriteProcResEntry * getWriteProcResEnd(const MCSchedClassDesc *SC) const
Used to provide key value pairs for feature and CPU bit flags.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Itinerary data supplied by a subtarget to be used by a target.
virtual unsigned getHwMode() const
Instances of this class represent a single low-level machine instruction.
ArrayRef< MCReadAdvanceEntry > getReadAdvanceEntries(const MCSchedClassDesc &SC) const
Return the set of ReadAdvance entries declared by the scheduling class descriptor in input...
bool operator<(const SubtargetFeatureKV &Other) const
Compare routine for std::is_sorted.
unsigned Value
K-V integer value.
Container class for subtarget features.
Class used to store the subtarget bits in the tables created by tablegen.
Identify one of the processor resource kinds consumed by a particular scheduling class for the specif...
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
Summarize the scheduling resources required for an instruction of a particular scheduling class...
const char * Key
K-V key string.
bool operator<(StringRef S) const
Compare routine for std::lower_bound.
Triple - Helper class for working with autoconf configuration names.
bool operator<(StringRef S) const
Compare routine for std::lower_bound.
Specify the latency in cpu cycles for a particular scheduling class and def index.
Used to provide key value pairs for feature and CPU bit flags.
const char * Desc
Help descriptor.
static void ApplyFeatureFlag(FeatureBitset &Bits, StringRef Feature, ArrayRef< SubtargetFeatureKV > FeatureTable)
CHAIN = SC CHAIN, Imm128 - System call.
Specify the number of cycles allowed after instruction issue before a particular use operand reads it...
virtual unsigned getCacheLineSize() const
Return the target cache line size in bytes.
These values represent a non-pipelined step in the execution of an instruction.
bool hasFeature(unsigned Feature) const
Generic base class for all target subtargets.
virtual unsigned resolveVariantSchedClass(unsigned SchedClass, const MCInst *MI, unsigned CPUID) const
Resolve a variant scheduling class for the given MCInst and CPU.
const MCWriteProcResEntry * getWriteProcResBegin(const MCSchedClassDesc *SC) const
Return an iterator at the first process resource consumed by the given scheduling class...
int getReadAdvanceCycles(const MCSchedClassDesc *SC, unsigned UseIdx, unsigned WriteResID) const
const char * Key
K-V key string.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.
Machine model for scheduling, bundling, and heuristics.
const MCSchedModel & getSchedModel() const
Get the machine model for this subtarget's CPU.