1 #include "AMDGPUMachineFunction.h"
3 #include "Utils/AMDGPUBaseInfo.h"
4 #include "llvm/IR/Attributes.h"
5 #include "llvm/IR/Function.h"
8 // Pin the vtable to this file.
9 void AMDGPUMachineFunction::anchor() {}
11 AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) :
12 MachineFunctionInfo(),
13 ShaderType(ShaderType::COMPUTE),
19 ShaderType = AMDGPU::getShaderType(*MF.getFunction());