You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
561 B
24 lines
561 B
4 months ago
|
#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;
|
||
|
}
|