32#ifndef __REGISTER_MANAGER_HH__
33#define __REGISTER_MANAGER_HH__
52struct RegisterManagerParams;
Register Manager Policy abstract class.
int mapVgpr(Wavefront *w, int vgprIndex)
RegisterManager(const RegisterManagerParams ¶ms)
void allocateRegisters(Wavefront *w, int vectorDemand, int scalarDemand)
void freeRegisters(Wavefront *w)
std::vector< PoolManager * > vrfPoolMgrs
RegisterManagerPolicy * policy
int mapSgpr(Wavefront *w, int sgprIndex)
ComputeUnit * computeUnit
bool canAllocateSgprs(int simdId, int nWfs, int demandPerWf)
std::vector< PoolManager * > srfPoolMgrs
bool canAllocateVgprs(int simdId, int nWfs, int demandPerWf)
void setParent(ComputeUnit *cu)
Abstract superclass for simulation objects.
const Params & params() const
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.