summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
blob: 44516dab04f17607c4cfd7d416412ac93a7bec65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "AMDGPUMachineFunction.h"

using namespace llvm;

// Pin the vtable to this file.
void AMDGPUMachineFunction::anchor() {}

AMDGPUMachineFunction::AMDGPUMachineFunction(const MachineFunction &MF) :
  MachineFunctionInfo(),
  KernArgSize(0),
  MaxKernArgAlign(0),
  LDSSize(0),
  ABIArgOffset(0),
  ScratchSize(0),
  IsKernel(MF.getFunction()->getCallingConv() == llvm::CallingConv::AMDGPU_KERNEL ||
           MF.getFunction()->getCallingConv() == llvm::CallingConv::SPIR_KERNEL)
{
}

bool AMDGPUMachineFunction::isKernel() const
{
  return IsKernel;
}
OpenPOWER on IntegriCloud