|
LLVM
5.0.0
|
This pass is used to reduce the size of instructions where applicable. More...
#include "Mips.h"#include "MipsInstrInfo.h"#include "MipsSubtarget.h"#include "llvm/ADT/Statistic.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/Support/Debug.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "micromips-reduce-size" |
Enumerations | |
| enum | OperandTransfer |
| Order of operands to transfer. More... | |
| enum | ReduceType |
| Reduction type. More... | |
Functions | |
| STATISTIC (NumReduced,"Number of 32-bit instructions reduced to 16-bit ones") | |
| static bool | IsSP (const MachineOperand &MO) |
| static bool | isMMThreeBitGPRegister (const MachineOperand &MO) |
| static bool | isMMSourceRegister (const MachineOperand &MO) |
| static bool | GetImm (MachineInstr *MI, unsigned Op, int64_t &Imm) |
| static bool | InRange (int64_t Value, unsigned short Shift, int LBound, int HBound) |
| static bool | ImmInRange (MachineInstr *MI, const ReduceEntry &Entry) |
This pass is used to reduce the size of instructions where applicable.
TODO: Implement microMIPS64 support. TODO: Implement support for reducing into lwp/swp instruction.
Definition in file MicroMipsSizeReduction.cpp.
| #define DEBUG_TYPE "micromips-reduce-size" |
Definition at line 24 of file MicroMipsSizeReduction.cpp.
| enum OperandTransfer |
Order of operands to transfer.
Definition at line 32 of file MicroMipsSizeReduction.cpp.
| enum ReduceType |
Reduction type.
Definition at line 39 of file MicroMipsSizeReduction.cpp.
|
static |
Definition at line 229 of file MicroMipsSizeReduction.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineInstr::getOperand(), and llvm::MachineOperand::isImm().
Referenced by ImmInRange().
|
static |
Definition at line 248 of file MicroMipsSizeReduction.cpp.
Definition at line 239 of file MicroMipsSizeReduction.cpp.
Referenced by ImmInRange().
|
static |
Definition at line 221 of file MicroMipsSizeReduction.cpp.
References llvm::MachineOperand::getReg(), and llvm::MachineOperand::isReg().
|
static |
Definition at line 214 of file MicroMipsSizeReduction.cpp.
References llvm::MachineOperand::getReg(), and llvm::MachineOperand::isReg().
|
static |
Definition at line 207 of file MicroMipsSizeReduction.cpp.
References llvm::MachineOperand::getReg(), and llvm::MachineOperand::isReg().
| STATISTIC | ( | NumReduced | , |
| "Number of 32-bit instructions reduced to 16-bit ones" | |||
| ) |
1.8.6