#include "AMDGPURegBankSelect.h"
#include "AMDGPU.h"
#include "GCNSubtarget.h"
#include "llvm/CodeGen/MachineUniformityAnalysis.h"
#include "llvm/InitializePasses.h"
#define DEBUG_TYPE …
usingnamespacellvm;
AMDGPURegBankSelect::AMDGPURegBankSelect(Mode RunningMode)
: … { … }
char AMDGPURegBankSelect::ID = …;
StringRef AMDGPURegBankSelect::getPassName() const { … }
void AMDGPURegBankSelect::getAnalysisUsage(AnalysisUsage &AU) const { … }
INITIALIZE_PASS_BEGIN(AMDGPURegBankSelect, "amdgpu-" DEBUG_TYPE,
"AMDGPU Register Bank Select", false, false)
INITIALIZE_PASS_DEPENDENCY(MachineCycleInfoWrapperPass)
INITIALIZE_PASS_DEPENDENCY(MachineDominatorTreeWrapperPass)
INITIALIZE_PASS_END(AMDGPURegBankSelect, "amdgpu-" DEBUG_TYPE,
"AMDGPU Register Bank Select", false, false)
bool AMDGPURegBankSelect::runOnMachineFunction(MachineFunction &MF) { … }