LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
llvm::InstrItineraryData Class Reference

#include <MCInstrItineraries.h>

Collaboration diagram for llvm::InstrItineraryData:
Collaboration graph
[legend]

Public Member Functions

 InstrItineraryData ()
 
 InstrItineraryData (const MCSchedModel *SM, const InstrStage *S, const unsigned *OS, const unsigned *F)
 
bool isEmpty () const
 
bool isEndMarker (unsigned ItinClassIndx) const
 
const InstrStagebeginStage (unsigned ItinClassIndx) const
 
const InstrStageendStage (unsigned ItinClassIndx) const
 
unsigned getStageLatency (unsigned ItinClassIndx) const
 
int getOperandCycle (unsigned ItinClassIndx, unsigned OperandIdx) const
 
bool hasPipelineForwarding (unsigned DefClass, unsigned DefIdx, unsigned UseClass, unsigned UseIdx) const
 
int getOperandLatency (unsigned DefClass, unsigned DefIdx, unsigned UseClass, unsigned UseIdx) const
 
int getNumMicroOps (unsigned ItinClassIndx) const
 

Public Attributes

const MCSchedModelSchedModel
 Basic machine properties. More...
 
const InstrStageStages
 Array of stages selected. More...
 
const unsignedOperandCycles
 Array of operand cycles selected. More...
 
const unsignedForwardings
 Array of pipeline forwarding pathes. More...
 
const InstrItineraryItineraries
 Array of itineraries selected. More...
 

Detailed Description

Instruction itinerary Data - Itinerary data supplied by a subtarget to be used by a target.

Definition at line 111 of file MCInstrItineraries.h.

Constructor & Destructor Documentation

llvm::InstrItineraryData::InstrItineraryData ( )
inline

Ctors.

Definition at line 121 of file MCInstrItineraries.h.

llvm::InstrItineraryData::InstrItineraryData ( const MCSchedModel SM,
const InstrStage S,
const unsigned OS,
const unsigned F 
)
inline

Definition at line 125 of file MCInstrItineraries.h.

Member Function Documentation

const InstrStage* llvm::InstrItineraryData::beginStage ( unsigned  ItinClassIndx) const
inline
const InstrStage* llvm::InstrItineraryData::endStage ( unsigned  ItinClassIndx) const
inline
int llvm::InstrItineraryData::getNumMicroOps ( unsigned  ItinClassIndx) const
inline

getNumMicroOps - Return the number of micro-ops that the given class decodes to. Return -1 for classes that require dynamic lookup via TargetInstrInfo.

Definition at line 242 of file MCInstrItineraries.h.

References isEmpty(), Itineraries, and llvm::InstrItinerary::NumMicroOps.

Referenced by llvm::TargetSchedModel::getNumMicroOps(), llvm::ARMBaseInstrInfo::getNumMicroOps(), and getNumMicroOpsSwiftLdSt().

int llvm::InstrItineraryData::getOperandCycle ( unsigned  ItinClassIndx,
unsigned  OperandIdx 
) const
inline
int llvm::InstrItineraryData::getOperandLatency ( unsigned  DefClass,
unsigned  DefIdx,
unsigned  UseClass,
unsigned  UseIdx 
) const
inline

getOperandLatency - Compute and return the use operand latency of a given itinerary class and operand index if the value is produced by an instruction of the specified itinerary class and def operand index.

Definition at line 218 of file MCInstrItineraries.h.

References getOperandCycle(), hasPipelineForwarding(), and isEmpty().

Referenced by llvm::TargetInstrInfo::getOperandLatency().

unsigned llvm::InstrItineraryData::getStageLatency ( unsigned  ItinClassIndx) const
inline

getStageLatency - Return the total stage latency of the given class. The latency is the maximum completion time for any stage in the itinerary.

If no stages exist, it defaults to one cycle.

Definition at line 161 of file MCInstrItineraries.h.

References beginStage(), endStage(), and isEmpty().

Referenced by llvm::TargetInstrInfo::getInstrLatency().

bool llvm::InstrItineraryData::hasPipelineForwarding ( unsigned  DefClass,
unsigned  DefIdx,
unsigned  UseClass,
unsigned  UseIdx 
) const
inline

hasPipelineForwarding - Return true if there is a pipeline forwarding between instructions of itinerary classes DefClass and UseClasses so that value produced by an instruction of itinerary class DefClass, operand index DefIdx can be bypassed when it's read by an instruction of itinerary class UseClass, operand index UseIdx.

Definition at line 197 of file MCInstrItineraries.h.

References llvm::InstrItinerary::FirstOperandCycle, Forwardings, Itineraries, and llvm::InstrItinerary::LastOperandCycle.

Referenced by getOperandLatency().

bool llvm::InstrItineraryData::isEmpty ( ) const
inline
bool llvm::InstrItineraryData::isEndMarker ( unsigned  ItinClassIndx) const
inline

isEndMarker - Returns true if the index is for the end marker itinerary.

Definition at line 137 of file MCInstrItineraries.h.

References Itineraries.

Referenced by llvm::ScoreboardHazardRecognizer::ScoreboardHazardRecognizer().

Member Data Documentation

const unsigned* llvm::InstrItineraryData::Forwardings

Array of pipeline forwarding pathes.

Definition at line 116 of file MCInstrItineraries.h.

Referenced by hasPipelineForwarding().

const InstrItinerary* llvm::InstrItineraryData::Itineraries
const unsigned* llvm::InstrItineraryData::OperandCycles

Array of operand cycles selected.

Definition at line 115 of file MCInstrItineraries.h.

Referenced by getOperandCycle().

const MCSchedModel* llvm::InstrItineraryData::SchedModel
const InstrStage* llvm::InstrItineraryData::Stages

Array of stages selected.

Definition at line 114 of file MCInstrItineraries.h.

Referenced by beginStage(), and endStage().


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