1 #include "AMDGPUMachineFunction.h"
2 
3 using namespace llvm;
4 
5 // Pin the vtable to this file.
anchor()6 void AMDGPUMachineFunction::anchor() {}
7 
AMDGPUMachineFunction(const MachineFunction & MF)8 AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) :
9   MachineFunctionInfo(),
10   KernArgSize(0),
11   MaxKernArgAlign(0),
12   LDSSize(0),
13   ABIArgOffset(0),
14   ScratchSize(0),
15   IsKernel(MF.getFunction()->getCallingConv() == llvm::CallingConv::AMDGPU_KERNEL ||
16            MF.getFunction()->getCallingConv() == llvm::CallingConv::SPIR_KERNEL)
17 {
18 }
19 
isKernel() const20 bool AMDGPUMachineFunction::isKernel() const
21 {
22   return IsKernel;
23 }
24