LLVM: lib/Target/ARM/Thumb2SizeReduction.cpp File Reference (original) (raw)

Go to the source code of this file.

Macros
#define DEBUG_TYPE "thumb2-reduce-size"
#define THUMB2_SIZE_REDUCE_NAME "Thumb2 instruction size reduce pass"
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")
INITIALIZE_PASS (Thumb2SizeReduce, DEBUG_TYPE, THUMB2_SIZE_REDUCE_NAME, false, false) Thumb2SizeReduce
static bool HasImplicitCPSRDef (const MCInstrDesc &MCID)
static bool isHighLatencyCPSR (MachineInstr *Def)
static bool VerifyLowRegs (MachineInstr *MI)
static bool UpdateCPSRDef (MachineInstr &MI, bool LiveCPSR, bool &DefCPSR)
static bool UpdateCPSRUse (MachineInstr &MI, bool LiveCPSR)
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)

DEBUG_TYPE

#define DEBUG_TYPE "thumb2-reduce-size"

THUMB2_SIZE_REDUCE_NAME

#define THUMB2_SIZE_REDUCE_NAME "Thumb2 instruction size reduce pass"

HasImplicitCPSRDef()

INITIALIZE_PASS()

INITIALIZE_PASS ( Thumb2SizeReduce ,
DEBUG_TYPE ,
THUMB2_SIZE_REDUCE_NAME ,
false ,
false )

isHighLatencyCPSR()

STATISTIC() [1/3]

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

STATISTIC() [2/3]

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

STATISTIC() [3/3]

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

UpdateCPSRDef()

UpdateCPSRUse()

VerifyLowRegs()

ReduceLimit

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

ReduceLimit2Addr

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

ReduceLimitLdSt

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