145bb48eaSTom Stellard #include "AMDGPUMachineFunction.h"
2e935f05aSMatt Arsenault 
345bb48eaSTom Stellard using namespace llvm;
445bb48eaSTom Stellard 
545bb48eaSTom Stellard // Pin the vtable to this file.
645bb48eaSTom Stellard void AMDGPUMachineFunction::anchor() {}
745bb48eaSTom Stellard 
845bb48eaSTom Stellard AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) :
945bb48eaSTom Stellard   MachineFunctionInfo(),
10e935f05aSMatt Arsenault   KernArgSize(0),
11e935f05aSMatt Arsenault   MaxKernArgAlign(0),
1245bb48eaSTom Stellard   LDSSize(0),
13e928533dSTom Stellard   ABIArgOffset(0),
1445bb48eaSTom Stellard   ScratchSize(0),
15*beb24f5bSNikolay Haustov   IsKernel(MF.getFunction()->getCallingConv() == llvm::CallingConv::AMDGPU_KERNEL ||
16*beb24f5bSNikolay Haustov            MF.getFunction()->getCallingConv() == llvm::CallingConv::SPIR_KERNEL)
17*beb24f5bSNikolay Haustov {
18*beb24f5bSNikolay Haustov }
19*beb24f5bSNikolay Haustov 
20*beb24f5bSNikolay Haustov bool AMDGPUMachineFunction::isKernel() const
21*beb24f5bSNikolay Haustov {
22*beb24f5bSNikolay Haustov   return IsKernel;
23*beb24f5bSNikolay Haustov }
24