15 #ifndef LLVM_MCA_HWEVENTLISTENER_H 16 #define LLVM_MCA_HWEVENTLISTENER_H 66 ArrayRef<std::pair<ResourceRef, ResourceCycles>> UR)
77 UsedPhysRegs(Regs), MicroOpcodes(UOps) {}
97 FreedPhysRegs(Regs) {}
151 virtual void anchor();
156 #endif // LLVM_MCA_HWEVENTLISTENER_H HWInstructionIssuedEvent(const InstRef &IR, ArrayRef< std::pair< ResourceRef, ResourceCycles >> UR)
This class represents lattice values for constants.
An InstRef contains both a SourceMgr index and Instruction pair.
virtual void onReservedBuffers(const InstRef &Inst, ArrayRef< unsigned > Buffers)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
ArrayRef< unsigned > UsedPhysRegs
virtual void onCycleEnd()
HWInstructionEvent(unsigned type, const InstRef &Inst)
HWInstructionRetiredEvent(const InstRef &IR, ArrayRef< unsigned > Regs)
virtual ~HWEventListener()
The instances of the Type class are immutable: once they are created, they are never changed...
ArrayRef< unsigned > FreedPhysRegs
Helper functions used by various pipeline components.
std::pair< uint64_t, uint64_t > ResourceRef
virtual void onEvent(const HWStallEvent &Event)
virtual void onReleasedBuffers(const InstRef &Inst, ArrayRef< unsigned > Buffers)
ArrayRef< std::pair< ResourceRef, ResourceCycles > > UsedResources
HWStallEvent(unsigned type, const InstRef &Inst)
virtual void onResourceAvailable(const ResourceRef &RRef)
std::pair< uint64_t, uint64_t > ResourceRef
virtual void onCycleBegin()
virtual void onEvent(const HWInstructionEvent &Event)
This file defines abstractions used by the Pipeline to model register reads, register writes and inst...
HWInstructionDispatchedEvent(const InstRef &IR, ArrayRef< unsigned > Regs, unsigned UOps)