22#define DEBUG_TYPE "amdgpu-regbankselect"
39 return "AMDGPU Register Bank Select";
50 MachineFunctionProperties::Property::RegBankSelected);
57 "AMDGPU Register Bank Select",
false,
false)
61char AMDGPURegBankSelect::
ID = 0;
66 return new AMDGPURegBankSelect();
71 MachineFunctionProperties::Property::FailedISel))
AMDGPU Register Bank Select
#define DEBUG_TYPE
Assign register banks to all register operands of G_ instructions using machine uniformity analysis.
#define INITIALIZE_PASS_END(passName, arg, name, cfg, analysis)
#define INITIALIZE_PASS_BEGIN(passName, arg, name, cfg, analysis)
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
virtual MachineFunctionProperties getSetProperties() const
virtual bool runOnMachineFunction(MachineFunction &MF)=0
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...
Properties which a MachineFunction may have at a given point in time.
MachineFunctionProperties & set(Property P)
bool hasProperty(Property P) const
const MachineFunctionProperties & getProperties() const
Get the function properties.
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
virtual StringRef getPassName() const
getPassName - Return a nice clean name for a pass.
Wrapper class representing virtual and physical registers.
StringRef - Represent a constant reference to a string, i.e.
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
This is an optimization pass for GlobalISel generic memory operations.
char & AMDGPURegBankSelectID
FunctionPass * createAMDGPURegBankSelectPass()
void initializeAMDGPURegBankSelectPass(PassRegistry &)