LLVM API Documentation
#include <TargetInstrItineraries.h>
Public Member Functions | |
| unsigned | getCycles () const |
| getCycles - returns the number of cycles the stage is occupied | |
| unsigned | getUnits () const |
| getUnits - returns the choice of FUs | |
| unsigned | getNextCycles () const |
Public Attributes | |
| unsigned | Cycles_ |
| Length of stage in machine cycles. | |
| unsigned | Units_ |
| Choice of functional units. | |
| int | NextCycles_ |
| Number of machine cycles to next stage. | |
{ 1, x, -1 } indicates that the stage occupies FU x for 1 cycle and that the next stage starts immediately after this one.
{ 2, x|y, 1 } indicates that the stage occupies either FU x or FU y for 2 consecuative cycles and that the next stage starts one cycle after this stage starts. That is, the stage requirements overlap in time.
{ 1, x, 0 } indicates that the stage occupies FU x for 1 cycle and that the next stage starts in this same cycle. This can be used to indicate that the instruction requires multiple stages at the same time.
Definition at line 50 of file TargetInstrItineraries.h.
| unsigned llvm::InstrStage::getCycles | ( | ) | const [inline] |
getCycles - returns the number of cycles the stage is occupied
Definition at line 56 of file TargetInstrItineraries.h.
References Cycles_.
Referenced by llvm::ExactHazardRecognizer::ExactHazardRecognizer().
| unsigned llvm::InstrStage::getUnits | ( | ) | const [inline] |
getUnits - returns the choice of FUs
Definition at line 61 of file TargetInstrItineraries.h.
References Units_.
Referenced by llvm::ExactHazardRecognizer::ExactHazardRecognizer().
| unsigned llvm::InstrStage::getNextCycles | ( | ) | const [inline] |
getNextCycles - returns the number of cycles from the start of this stage to the start of the next stage in the itinerary
Definition at line 67 of file TargetInstrItineraries.h.
References Cycles_, and NextCycles_.
Length of stage in machine cycles.
Definition at line 51 of file TargetInstrItineraries.h.
Referenced by getCycles(), and getNextCycles().
Choice of functional units.
Definition at line 52 of file TargetInstrItineraries.h.
Referenced by getUnits().
Number of machine cycles to next stage.
Definition at line 53 of file TargetInstrItineraries.h.
Referenced by getNextCycles().