mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Remove unneeded #includes
Move Passes.h (which defines the interface to this file) to the top. Move statistics to the top of the file. Add a comment git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,28 +18,31 @@
|
|||||||
// A = B
|
// A = B
|
||||||
// A = A op C
|
// A = A op C
|
||||||
//
|
//
|
||||||
|
// Note that if a register allocator chooses to use this pass, that it has to
|
||||||
|
// be capable of handling the non-SSA nature of these rewritten virtual
|
||||||
|
// registers.
|
||||||
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#define DEBUG_TYPE "twoaddrinstr"
|
#define DEBUG_TYPE "twoaddrinstr"
|
||||||
#include "llvm/Function.h"
|
#include "llvm/CodeGen/Passes.h"
|
||||||
#include "llvm/CodeGen/LiveVariables.h"
|
#include "llvm/CodeGen/LiveVariables.h"
|
||||||
#include "llvm/CodeGen/MachineFrameInfo.h"
|
|
||||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||||
#include "llvm/CodeGen/MachineInstr.h"
|
#include "llvm/CodeGen/MachineInstr.h"
|
||||||
#include "llvm/CodeGen/Passes.h"
|
|
||||||
#include "llvm/CodeGen/SSARegMap.h"
|
#include "llvm/CodeGen/SSARegMap.h"
|
||||||
#include "llvm/Target/MRegisterInfo.h"
|
#include "llvm/Target/MRegisterInfo.h"
|
||||||
#include "llvm/Target/TargetInstrInfo.h"
|
#include "llvm/Target/TargetInstrInfo.h"
|
||||||
#include "llvm/Target/TargetMachine.h"
|
#include "llvm/Target/TargetMachine.h"
|
||||||
#include "llvm/Target/TargetRegInfo.h"
|
|
||||||
#include "Support/Debug.h"
|
#include "Support/Debug.h"
|
||||||
#include "Support/Statistic.h"
|
#include "Support/Statistic.h"
|
||||||
#include "Support/STLExtras.h"
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
Statistic<> numTwoAddressInstrs("twoaddressinstruction",
|
||||||
|
"Number of two-address instructions");
|
||||||
|
Statistic<> numInstrsAdded("twoaddressinstruction",
|
||||||
|
"Number of instructions added");
|
||||||
|
|
||||||
class TwoAddressInstructionPass : public MachineFunctionPass
|
class TwoAddressInstructionPass : public MachineFunctionPass
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
@ -58,11 +61,6 @@ namespace {
|
|||||||
|
|
||||||
RegisterPass<TwoAddressInstructionPass> X(
|
RegisterPass<TwoAddressInstructionPass> X(
|
||||||
"twoaddressinstruction", "Two-Address instruction pass");
|
"twoaddressinstruction", "Two-Address instruction pass");
|
||||||
|
|
||||||
Statistic<> numTwoAddressInstrs("twoaddressinstruction",
|
|
||||||
"Number of two-address instructions");
|
|
||||||
Statistic<> numInstrsAdded("twoaddressinstruction",
|
|
||||||
"Number of instructions added");
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const PassInfo *llvm::TwoAddressInstructionPassID = X.getPassInfo();
|
const PassInfo *llvm::TwoAddressInstructionPassID = X.getPassInfo();
|
||||||
|
Reference in New Issue
Block a user