AMDGPUMachineFunction.h [plain text]
#ifndef LLVM_LIB_TARGET_R600_AMDGPUMACHINEFUNCTION_H
#define LLVM_LIB_TARGET_R600_AMDGPUMACHINEFUNCTION_H
#include "llvm/CodeGen/MachineFunction.h"
#include <map>
namespace llvm {
class AMDGPUMachineFunction : public MachineFunctionInfo {
virtual void anchor();
unsigned ShaderType;
public:
AMDGPUMachineFunction(const MachineFunction &MF);
std::map<const GlobalValue *, unsigned> LocalMemoryObjects;
unsigned LDSSize;
unsigned ABIArgOffset;
unsigned getShaderType() const {
return ShaderType;
}
unsigned ScratchSize;
bool IsKernel;
};
}
#endif