2013-04-08 14:41:23 -04:00
|
|
|
#include "AMDGPUMachineFunction.h"
|
2013-06-10 16:36:52 -04:00
|
|
|
#include "AMDGPU.h"
|
2015-12-30 06:46:15 -05:00
|
|
|
#include "Utils/AMDGPUBaseInfo.h"
|
2013-04-08 14:41:23 -04:00
|
|
|
#include "llvm/IR/Attributes.h"
|
|
|
|
|
#include "llvm/IR/Function.h"
|
2013-12-21 19:04:03 -05:00
|
|
|
using namespace llvm;
|
2013-04-08 14:41:23 -04:00
|
|
|
|
2013-12-21 19:04:03 -05:00
|
|
|
// Pin the vtable to this file.
|
|
|
|
|
void AMDGPUMachineFunction::anchor() {}
|
2013-04-08 14:41:23 -04:00
|
|
|
|
|
|
|
|
AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) :
|
2014-11-24 04:08:18 -05:00
|
|
|
MachineFunctionInfo(),
|
|
|
|
|
ShaderType(ShaderType::COMPUTE),
|
2015-01-18 11:17:27 -05:00
|
|
|
LDSSize(0),
|
2015-12-30 06:46:15 -05:00
|
|
|
ABIArgOffset(0),
|
2015-01-18 11:17:27 -05:00
|
|
|
ScratchSize(0),
|
|
|
|
|
IsKernel(true) {
|
2013-04-08 14:41:23 -04:00
|
|
|
|
2015-12-30 06:46:15 -05:00
|
|
|
ShaderType = AMDGPU::getShaderType(*MF.getFunction());
|
2013-04-08 14:41:23 -04:00
|
|
|
}
|