LLVM API Documentation
#include <MCSubtargetInfo.h>
MCSubtargetInfo - Generic base class for all target subtargets.
Definition at line 29 of file MCSubtargetInfo.h.
|
inline |
getFeatureBits - Return the feature bits.
Definition at line 67 of file MCSubtargetInfo.h.
Referenced by llvm::AArch64InstPrinter::AArch64InstPrinter(), llvm::ARMInstPrinter::ARMInstPrinter(), createAMDGPUMCCodeEmitter(), llvm::MCInstrDesc::getDeprecatedInfo(), getITDeprecationInfo(), getMCRDeprecationInfo(), and llvm::NVPTXInstPrinter::NVPTXInstPrinter().
InstrItineraryData MCSubtargetInfo::getInstrItineraryForCPU | ( | StringRef | CPU | ) | const |
getInstrItineraryForCPU - Get scheduling itinerary of a CPU.
Definition at line 112 of file MCSubtargetInfo.cpp.
References getSchedModelForCPU().
Referenced by getItineraryLatency().
|
inline |
Definition at line 113 of file MCSubtargetInfo.h.
References I, llvm::MCSchedClassDesc::NumReadAdvanceEntries, and llvm::MCSchedClassDesc::ReadAdvanceIdx.
Referenced by llvm::TargetSchedModel::computeOperandLatency().
|
inline |
getSchedModel - Get the machine model for this subtarget's CPU.
Definition at line 92 of file MCSubtargetInfo.h.
Referenced by getLatency(), and llvm::ScheduleDAGInstrs::ScheduleDAGInstrs().
const MCSchedModel * MCSubtargetInfo::getSchedModelForCPU | ( | StringRef | CPU | ) | const |
getSchedModelForCPU - Get the machine model of a CPU.
Definition at line 88 of file MCSubtargetInfo.cpp.
References llvm::MCSchedModel::DefaultSchedModel, llvm::errs(), llvm::SubtargetInfoKV::Key, llvm::LibFunc::strcmp, and llvm::SubtargetInfoKV::Value.
Referenced by getInstrItineraryForCPU(), and InitCPUSchedModel().
|
inline |
getTargetTriple - Return the target triple string.
Definition at line 61 of file MCSubtargetInfo.h.
Referenced by createPPCMCInstPrinter().
|
inline |
Definition at line 105 of file MCSubtargetInfo.h.
References llvm::MCSchedClassDesc::WriteLatencyIdx.
Referenced by llvm::TargetSchedModel::computeInstrLatency(), llvm::TargetSchedModel::computeOperandLatency(), and getLatency().
|
inline |
Return an iterator at the first process resource consumed by the given scheduling class.
Definition at line 96 of file MCSubtargetInfo.h.
References llvm::MCSchedClassDesc::WriteProcResIdx.
Referenced by llvm::TargetSchedModel::computeOutputLatency(), llvm::TargetSchedModel::getWriteProcResBegin(), and getWriteProcResEnd().
|
inline |
Definition at line 100 of file MCSubtargetInfo.h.
References getWriteProcResBegin(), and llvm::MCSchedClassDesc::NumWriteProcResEntries.
Referenced by llvm::TargetSchedModel::computeOutputLatency(), and llvm::TargetSchedModel::getWriteProcResEnd().
void MCSubtargetInfo::InitCPUSchedModel | ( | StringRef | CPU | ) |
InitCPUSchedModel - Recompute scheduling model based on CPU.
Definition at line 34 of file MCSubtargetInfo.cpp.
References llvm::MCSchedModel::DefaultSchedModel, llvm::StringRef::empty(), and getSchedModelForCPU().
Referenced by InitMCProcessorInfo().
void MCSubtargetInfo::initInstrItins | ( | InstrItineraryData & | InstrItins | ) | const |
Initialize an InstrItineraryData instance.
Definition at line 118 of file MCSubtargetInfo.cpp.
Referenced by llvm::TargetSchedModel::init().
InitMCProcessorInfo - Set or change the CPU (optionally supplemented with feature string). Recompute feature bits and scheduling model.
Definition at line 25 of file MCSubtargetInfo.cpp.
References llvm::SubtargetFeatures::getFeatureBits(), and InitCPUSchedModel().
Referenced by InitMCSubtargetInfo().
void MCSubtargetInfo::InitMCSubtargetInfo | ( | StringRef | TT, |
StringRef | CPU, | ||
StringRef | FS, | ||
const SubtargetFeatureKV * | PF, | ||
const SubtargetFeatureKV * | PD, | ||
const SubtargetInfoKV * | ProcSched, | ||
const MCWriteProcResEntry * | WPR, | ||
const MCWriteLatencyEntry * | WL, | ||
const MCReadAdvanceEntry * | RA, | ||
const InstrStage * | IS, | ||
const unsigned * | OC, | ||
const unsigned * | FP, | ||
unsigned | NF, | ||
unsigned | NP | ||
) |
Definition at line 42 of file MCSubtargetInfo.cpp.
References InitMCProcessorInfo(), and llvm::SystemZISD::OC.
uint64_t MCSubtargetInfo::ToggleFeature | ( | uint64_t | FB | ) |
ToggleFeature - Toggle a feature and returns the re-computed feature bits. This version does not change the implied bits.
Definition at line 72 of file MCSubtargetInfo.cpp.
uint64_t MCSubtargetInfo::ToggleFeature | ( | StringRef | FS | ) |
ToggleFeature - Toggle a feature and returns the re-computed feature bits. This version will also change all implied bits.
Definition at line 79 of file MCSubtargetInfo.cpp.
References llvm::SubtargetFeatures::ToggleFeature().