1 #include "AMDGPUMachineFunction.h"
2 #include "AMDGPU.h"
3 #include "Utils/AMDGPUBaseInfo.h"
4 #include "llvm/IR/Attributes.h"
5 #include "llvm/IR/Function.h"
6 using namespace llvm;
7 
8 // Pin the vtable to this file.
anchor()9 void AMDGPUMachineFunction::anchor() {}
10 
AMDGPUMachineFunction(const MachineFunction & MF)11 AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) :
12   MachineFunctionInfo(),
13   ShaderType(ShaderType::COMPUTE),
14   LDSSize(0),
15   ABIArgOffset(0),
16   ScratchSize(0),
17   IsKernel(true) {
18 
19   ShaderType = AMDGPU::getShaderType(*MF.getFunction());
20 }
21