LLVM API Documentation

TwoAddressInstructionPass.cpp File Reference

#include "llvm/CodeGen/Passes.h"
#include "llvm/Function.h"
#include "llvm/CodeGen/LiveVariables.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/STLExtras.h"

Include dependency graph for TwoAddressInstructionPass.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "twoaddrinstr"

Functions

 STATISTIC (NumTwoAddressInstrs,"Number of two-address instructions")
 STATISTIC (NumCommuted,"Number of instructions commuted to coalesce")
 STATISTIC (NumConvertedTo3Addr,"Number of instructions promoted to 3-address")
 STATISTIC (Num3AddrSunk,"Number of 3-address instructions sunk")
 STATISTIC (NumReMats,"Number of instructions re-materialized")
static bool isTwoAddrUse (MachineInstr *UseMI, unsigned Reg)

Variables

static RegisterPass
< TwoAddressInstructionPass > 
X ("twoaddressinstruction","Two-Address instruction pass")


Define Documentation

#define DEBUG_TYPE   "twoaddrinstr"

Definition at line 30 of file TwoAddressInstructionPass.cpp.


Function Documentation

static bool isTwoAddrUse ( MachineInstr UseMI,
unsigned  Reg 
) [static]

STATISTIC ( NumReMats  ,
"Number of instructions re-materialized"   
)

STATISTIC ( Num3AddrSunk  ,
"Number of 3-address instructions sunk"   
)

STATISTIC ( NumConvertedTo3Addr  ,
"Number of instructions promoted to 3-address"   
)

STATISTIC ( NumCommuted  ,
"Number of instructions commuted to coalesce"   
)

STATISTIC ( NumTwoAddressInstrs  ,
"Number of two-address instructions"   
)


Variable Documentation

char ID [static]

Definition at line 73 of file TwoAddressInstructionPass.cpp.

Definition at line 61 of file TwoAddressInstructionPass.cpp.

Definition at line 59 of file TwoAddressInstructionPass.cpp.

Definition at line 60 of file TwoAddressInstructionPass.cpp.

RegisterPass<TwoAddressInstructionPass> X("twoaddressinstruction","Two-Address instruction pass") [static]




This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.