LLVM API Documentation

Thumb2SizeReduction.cpp File Reference

#include "ARM.h"
#include "ARMAddressingModes.h"
#include "ARMBaseRegisterInfo.h"
#include "ARMBaseInstrInfo.h"
#include "Thumb2InstrInfo.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/Statistic.h"

Include dependency graph for Thumb2SizeReduction.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "t2-reduce-size"

Functions

 STATISTIC (NumNarrows,"Number of 32-bit instrs reduced to 16-bit ones")
 STATISTIC (Num2Addrs,"Number of 32-bit instrs reduced to 2addr 16-bit ones")
 STATISTIC (NumLdSts,"Number of 32-bit load / store reduced to 16-bit ones")
static bool HasImplicitCPSRDef (const TargetInstrDesc &TID)
static bool VerifyLowRegs (MachineInstr *MI)
static bool UpdateCPSRDef (MachineInstr &MI, bool LiveCPSR)
static bool UpdateCPSRUse (MachineInstr &MI, bool LiveCPSR)
FunctionPass * llvm::createThumb2SizeReductionPass ()

Variables

static cl::opt< int > ReduceLimit ("t2-reduce-limit", cl::init(-1), cl::Hidden)
static cl::opt< int > ReduceLimit2Addr ("t2-reduce-limit2", cl::init(-1), cl::Hidden)
static cl::opt< int > ReduceLimitLdSt ("t2-reduce-limit3", cl::init(-1), cl::Hidden)
static const ReduceEntry ReduceTable []


Define Documentation

#define DEBUG_TYPE   "t2-reduce-size"

Definition at line 10 of file Thumb2SizeReduction.cpp.


Function Documentation

static bool HasImplicitCPSRDef ( const TargetInstrDesc &  TID  )  [static]

Definition at line 180 of file Thumb2SizeReduction.cpp.

References llvm::TargetInstrDesc::ImplicitDefs.

STATISTIC ( NumLdSts  ,
"Number of 32-bit load / store reduced to 16-bit ones"   
)

STATISTIC ( Num2Addrs  ,
"Number of 32-bit instrs reduced to 2addr 16-bit ones"   
)

STATISTIC ( NumNarrows  ,
"Number of 32-bit instrs reduced to 16-bit ones"   
)

static bool UpdateCPSRDef ( MachineInstr &  MI,
bool  LiveCPSR 
) [static]

static bool UpdateCPSRUse ( MachineInstr &  MI,
bool  LiveCPSR 
) [static]

static bool VerifyLowRegs ( MachineInstr *  MI  )  [static]


Variable Documentation

char ID [static]

Definition at line 129 of file Thumb2SizeReduction.cpp.

uint8_t Imm1Limit

Definition at line 44 of file Thumb2SizeReduction.cpp.

uint8_t Imm2Limit

Definition at line 45 of file Thumb2SizeReduction.cpp.

Definition at line 46 of file Thumb2SizeReduction.cpp.

Definition at line 47 of file Thumb2SizeReduction.cpp.

Definition at line 42 of file Thumb2SizeReduction.cpp.

Definition at line 43 of file Thumb2SizeReduction.cpp.

Definition at line 48 of file Thumb2SizeReduction.cpp.

Definition at line 51 of file Thumb2SizeReduction.cpp.

cl::opt<int> ReduceLimit("t2-reduce-limit", cl::init(-1), cl::Hidden) [static]

cl::opt<int> ReduceLimit2Addr("t2-reduce-limit2", cl::init(-1), cl::Hidden) [static]

cl::opt<int> ReduceLimitLdSt("t2-reduce-limit3", cl::init(-1), cl::Hidden) [static]

ReduceOpcodeMap - Maps wide opcode to index of entry in ReduceTable.

Definition at line 142 of file Thumb2SizeReduction.cpp.

const ReduceEntry ReduceTable[] [static]

Definition at line 55 of file Thumb2SizeReduction.cpp.

Definition at line 52 of file Thumb2SizeReduction.cpp.

Definition at line 132 of file Thumb2SizeReduction.cpp.

Definition at line 41 of file Thumb2SizeReduction.cpp.