LLVM 20.0.0git
AMDGPURegBankSelect.h
Go to the documentation of this file.
1//===- AMDGPURegBankSelect.h -------------------------------------*- C++ -*-==//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUREGBANKSELECT_H
10#define LLVM_LIB_TARGET_AMDGPU_AMDGPUREGBANKSELECT_H
11
13
14namespace llvm {
15
16class AMDGPURegBankSelect final : public RegBankSelect {
17public:
18 static char ID;
19
20 AMDGPURegBankSelect(Mode RunningMode = Fast);
21
22 StringRef getPassName() const override;
23
24 void getAnalysisUsage(AnalysisUsage &AU) const override;
25 bool runOnMachineFunction(MachineFunction &MF) override;
26};
27
28} // namespace llvm
29#endif
This file describes the interface of the MachineFunctionPass responsible for assigning the generic vi...
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
bool runOnMachineFunction(MachineFunction &MF) override
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...
Represent the analysis usage information of a pass.
This pass implements the reg bank selector pass used in the GlobalISel pipeline.
Definition: RegBankSelect.h:91
Mode
List of the modes supported by the RegBankSelect pass.
Definition: RegBankSelect.h:96
@ Fast
Assign the register banks as fast as possible (default).
Definition: RegBankSelect.h:98
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18