LLVM API Documentation
#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"
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 DEBUG_TYPE "t2-reduce-size" |
Definition at line 10 of file Thumb2SizeReduction.cpp.
| 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] |
Definition at line 581 of file Thumb2SizeReduction.cpp.
References llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), HasDef, llvm::MachineOperand::isDead(), llvm::MachineOperand::isReg(), llvm::MachineOperand::isUndef(), and llvm::MachineOperand::isUse().
| static bool UpdateCPSRUse | ( | MachineInstr & | MI, | |
| bool | LiveCPSR | |||
| ) | [static] |
Definition at line 596 of file Thumb2SizeReduction.cpp.
References llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isDef(), llvm::MachineOperand::isKill(), llvm::MachineOperand::isReg(), and llvm::MachineOperand::isUndef().
| static bool VerifyLowRegs | ( | MachineInstr * | MI | ) | [static] |
Definition at line 230 of file Thumb2SizeReduction.cpp.
References llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::isARMLowRegister(), llvm::MachineOperand::isImplicit(), llvm::MachineOperand::isReg(), and Reg.
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.
| const Thumb2InstrInfo* TII |
Definition at line 132 of file Thumb2SizeReduction.cpp.
Definition at line 41 of file Thumb2SizeReduction.cpp.