projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AMDGPU: Rename enums to be consistent with HSA code object terminology
[oota-llvm.git]
/
lib
/
Target
/
AMDGPU
/
SIFixSGPRCopies.cpp
diff --git
a/lib/Target/AMDGPU/SIFixSGPRCopies.cpp
b/lib/Target/AMDGPU/SIFixSGPRCopies.cpp
index 13a2abb268df8b7a0c309cc7df2fe42171c9eafd..96e37c56624084da42aea8fd3d9e5878a6314b38 100644
(file)
--- a/
lib/Target/AMDGPU/SIFixSGPRCopies.cpp
+++ b/
lib/Target/AMDGPU/SIFixSGPRCopies.cpp
@@
-82,12
+82,10
@@
using namespace llvm;
namespace {
class SIFixSGPRCopies : public MachineFunctionPass {
namespace {
class SIFixSGPRCopies : public MachineFunctionPass {
-
-private:
+public:
static char ID;
static char ID;
-public:
- SIFixSGPRCopies(TargetMachine &tm) : MachineFunctionPass(ID) { }
+ SIFixSGPRCopies() : MachineFunctionPass(ID) { }
bool runOnMachineFunction(MachineFunction &MF) override;
bool runOnMachineFunction(MachineFunction &MF) override;
@@
-103,10
+101,15
@@
public:
} // End anonymous namespace
} // End anonymous namespace
+INITIALIZE_PASS(SIFixSGPRCopies, DEBUG_TYPE,
+ "SI Fix SGPR copies", false, false)
+
char SIFixSGPRCopies::ID = 0;
char SIFixSGPRCopies::ID = 0;
-FunctionPass *llvm::createSIFixSGPRCopiesPass(TargetMachine &tm) {
- return new SIFixSGPRCopies(tm);
+char &llvm::SIFixSGPRCopiesID = SIFixSGPRCopies::ID;
+
+FunctionPass *llvm::createSIFixSGPRCopiesPass() {
+ return new SIFixSGPRCopies();
}
static bool hasVGPROperands(const MachineInstr &MI, const SIRegisterInfo *TRI) {
}
static bool hasVGPROperands(const MachineInstr &MI, const SIRegisterInfo *TRI) {