Home | History | Annotate | Download | only in AMDGPU
      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.
      9 void AMDGPUMachineFunction::anchor() {}
     10 
     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