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