LLVM API Documentation

Public Member Functions
llvm::MCSubtargetInfo Class Reference

#include <MCSubtargetInfo.h>

Inheritance diagram for llvm::MCSubtargetInfo:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void InitMCSubtargetInfo (StringRef TT, StringRef CPU, StringRef FS, ArrayRef< SubtargetFeatureKV > PF, ArrayRef< SubtargetFeatureKV > PD, const SubtargetInfoKV *ProcSched, const MCWriteProcResEntry *WPR, const MCWriteLatencyEntry *WL, const MCReadAdvanceEntry *RA, const InstrStage *IS, const unsigned *OC, const unsigned *FP)
StringRef getTargetTriple () const
 getTargetTriple - Return the target triple string.
uint64_t getFeatureBits () const
void setFeatureBits (uint64_t FeatureBits_)
void InitMCProcessorInfo (StringRef CPU, StringRef FS)
void InitCPUSchedModel (StringRef CPU)
 InitCPUSchedModel - Recompute scheduling model based on CPU.
uint64_t ToggleFeature (uint64_t FB)
uint64_t ToggleFeature (StringRef FS)
MCSchedModel getSchedModelForCPU (StringRef CPU) const
const MCSchedModelgetSchedModel () const
const MCWriteProcResEntrygetWriteProcResBegin (const MCSchedClassDesc *SC) const
const MCWriteProcResEntrygetWriteProcResEnd (const MCSchedClassDesc *SC) const
const MCWriteLatencyEntrygetWriteLatencyEntry (const MCSchedClassDesc *SC, unsigned DefIdx) const
int getReadAdvanceCycles (const MCSchedClassDesc *SC, unsigned UseIdx, unsigned WriteResID) const
InstrItineraryData getInstrItineraryForCPU (StringRef CPU) const
void initInstrItins (InstrItineraryData &InstrItins) const
 Initialize an InstrItineraryData instance.

Detailed Description

MCSubtargetInfo - Generic base class for all target subtargets.

Definition at line 29 of file MCSubtargetInfo.h.


Member Function Documentation

uint64_t llvm::MCSubtargetInfo::getFeatureBits ( ) const [inline]

getInstrItineraryForCPU - Get scheduling itinerary of a CPU.

Definition at line 105 of file MCSubtargetInfo.cpp.

References getSchedModelForCPU().

Referenced by getItineraryLatency().

int llvm::MCSubtargetInfo::getReadAdvanceCycles ( const MCSchedClassDesc SC,
unsigned  UseIdx,
unsigned  WriteResID 
) const [inline]

getSchedModel - Get the machine model for this subtarget's CPU.

Definition at line 93 of file MCSubtargetInfo.h.

Referenced by llvm::TargetSubtargetInfo::enablePostMachineScheduler(), getLatency(), and llvm::ScheduleDAGInstrs::ScheduleDAGInstrs().

Return an iterator at the first process resource consumed by the given scheduling class.

Definition at line 97 of file MCSubtargetInfo.h.

References llvm::MCSchedClassDesc::WriteProcResIdx.

Referenced by llvm::TargetSchedModel::computeOutputLatency(), llvm::TargetSchedModel::getWriteProcResBegin(), and getWriteProcResEnd().

InitCPUSchedModel - Recompute scheduling model based on CPU.

Definition at line 30 of file MCSubtargetInfo.cpp.

References llvm::StringRef::empty(), llvm::MCSchedModel::GetDefaultSchedModel(), and getSchedModelForCPU().

Referenced by InitMCProcessorInfo().

Initialize an InstrItineraryData instance.

Definition at line 111 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 23 of file MCSubtargetInfo.cpp.

References Features, llvm::SubtargetFeatures::getFeatureBits(), and InitCPUSchedModel().

Referenced by InitMCSubtargetInfo().

Definition at line 38 of file MCSubtargetInfo.cpp.

References InitMCProcessorInfo(), llvm::SystemZISD::OC, and llvm::X86II::PD.

void llvm::MCSubtargetInfo::setFeatureBits ( uint64_t  FeatureBits_) [inline]

setFeatureBits - Set the feature bits.

Definition at line 70 of file MCSubtargetInfo.h.

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 65 of file MCSubtargetInfo.cpp.

ToggleFeature - Toggle a feature and returns the re-computed feature bits. This version will also change all implied bits.

Definition at line 72 of file MCSubtargetInfo.cpp.

References Features, and llvm::SubtargetFeatures::ToggleFeature().


The documentation for this class was generated from the following files: