#include "AMDGPU.h"
#include "GCNSubtarget.h"
#include "llvm/CodeGen/LiveIntervals.h"
#include "llvm/CodeGen/LiveStacks.h"
#include "llvm/CodeGen/MachineOperand.h"
usingnamespacellvm;
#define DEBUG_TYPE …
namespace {
class AMDGPUMarkLastScratchLoad : public MachineFunctionPass { … };
}
bool AMDGPUMarkLastScratchLoad::runOnMachineFunction(MachineFunction &MF) { … }
char AMDGPUMarkLastScratchLoad::ID = …;
char &llvm::AMDGPUMarkLastScratchLoadID = …;
INITIALIZE_PASS_BEGIN(AMDGPUMarkLastScratchLoad, DEBUG_TYPE,
"AMDGPU Mark last scratch load", false, false)
INITIALIZE_PASS_DEPENDENCY(SlotIndexesWrapperPass)
INITIALIZE_PASS_DEPENDENCY(LiveStacks)
INITIALIZE_PASS_END(AMDGPUMarkLastScratchLoad, DEBUG_TYPE,
"AMDGPU Mark last scratch load", false, false)