forked from OSchip/llvm-project
parent
121d04d1ae
commit
d8218923ae
|
@ -14,8 +14,7 @@
|
||||||
#include "X86.h"
|
#include "X86.h"
|
||||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||||
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
#include "llvm/CodeGen/MachineInstrBuilder.h"
|
||||||
|
using namespace llvm;
|
||||||
namespace llvm {
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
struct PH : public MachineFunctionPass {
|
struct PH : public MachineFunctionPass {
|
||||||
|
@ -28,7 +27,7 @@ namespace {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
FunctionPass *createX86PeepholeOptimizerPass() { return new PH(); }
|
FunctionPass *llvm::createX86PeepholeOptimizerPass() { return new PH(); }
|
||||||
|
|
||||||
bool PH::runOnMachineFunction(MachineFunction &MF) {
|
bool PH::runOnMachineFunction(MachineFunction &MF) {
|
||||||
bool Changed = false;
|
bool Changed = false;
|
||||||
|
@ -134,4 +133,3 @@ bool PH::PeepholeOptimize(MachineBasicBlock &MBB,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // End llvm namespace
|
|
||||||
|
|
Loading…
Reference in New Issue