LLVM 20.0.0git
|
#include "llvm/CodeGen/DFAPacketizer.h"
Public Member Functions | |
DFAPacketizer (const InstrItineraryData *InstrItins, Automaton< uint64_t > a, ArrayRef< unsigned > ItinActions) | |
void | clearResources () |
void | setTrackResources (bool Track) |
bool | canReserveResources (const MCInstrDesc *MID) |
void | reserveResources (const MCInstrDesc *MID) |
bool | canReserveResources (MachineInstr &MI) |
void | reserveResources (MachineInstr &MI) |
unsigned | getUsedResources (unsigned InstIdx) |
const InstrItineraryData * | getInstrItins () const |
Definition at line 73 of file DFAPacketizer.h.
|
inline |
Definition at line 82 of file DFAPacketizer.h.
bool DFAPacketizer::canReserveResources | ( | const MCInstrDesc * | MID | ) |
Definition at line 55 of file DFAPacketizer.cpp.
References llvm::Automaton< ActionT >::canAdd(), and llvm::MCInstrDesc::getSchedClass().
Referenced by llvm::HexagonPacketizerList::addToPacket(), llvm::HexagonPacketizerList::canPromoteToDotNew(), canReserveResources(), llvm::HexagonHazardRecognizer::EmitInstruction(), llvm::HexagonHazardRecognizer::getHazardType(), llvm::VLIWResourceModel::isResourceAvailable(), llvm::VLIWPacketizerList::PacketizeMIs(), llvm::HexagonPacketizerList::shouldAddToPacket(), and llvm::HexagonPacketizerList::tryAllocateResourcesForConstExt().
bool DFAPacketizer::canReserveResources | ( | MachineInstr & | MI | ) |
Definition at line 73 of file DFAPacketizer.cpp.
References canReserveResources(), and MI.
|
inline |
Definition at line 90 of file DFAPacketizer.h.
Referenced by llvm::HexagonHazardRecognizer::AdvanceCycle(), llvm::VLIWResourceModel::reset(), llvm::HexagonHazardRecognizer::Reset(), and llvm::VLIWResourceModel::VLIWResourceModel().
|
inline |
Definition at line 126 of file DFAPacketizer.h.
Referenced by llvm::HexagonPacketizerList::ignorePseudoInstruction().
Definition at line 85 of file DFAPacketizer.cpp.
References assert(), llvm::ArrayRef< T >::empty(), llvm::ArrayRef< T >::front(), and llvm::Automaton< ActionT >::getNfaPaths().
void DFAPacketizer::reserveResources | ( | const MCInstrDesc * | MID | ) |
Definition at line 64 of file DFAPacketizer.cpp.
References llvm::Automaton< ActionT >::add(), and llvm::MCInstrDesc::getSchedClass().
Referenced by llvm::VLIWPacketizerList::addToPacket(), llvm::HexagonPacketizerList::addToPacket(), llvm::HexagonHazardRecognizer::EmitInstruction(), reserveResources(), llvm::VLIWResourceModel::reserveResources(), and llvm::HexagonPacketizerList::tryAllocateResourcesForConstExt().
void DFAPacketizer::reserveResources | ( | MachineInstr & | MI | ) |
Definition at line 80 of file DFAPacketizer.cpp.
References MI, and reserveResources().
|
inline |
Definition at line 97 of file DFAPacketizer.h.
Referenced by llvm::VLIWPacketizerList::VLIWPacketizerList().