LLVM 20.0.0git
|
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" |
#define | MICROMIPS_SIZE_REDUCE_NAME "MicroMips instruction size reduce pass" |
This pass is used to reduce the size of instructions where applicable.
TODO: Implement microMIPS64 support.
Definition in file MicroMipsSizeReduction.cpp.
#define DEBUG_TYPE "micromips-reduce-size" |
Definition at line 22 of file MicroMipsSizeReduction.cpp.
#define MICROMIPS_SIZE_REDUCE_NAME "MicroMips instruction size reduce pass" |
Definition at line 23 of file MicroMipsSizeReduction.cpp.
|
static |
Definition at line 317 of file MicroMipsSizeReduction.cpp.
|
static |
Definition at line 351 of file MicroMipsSizeReduction.cpp.
References ImmInRange(), and MI.
|
static |
Definition at line 398 of file MicroMipsSizeReduction.cpp.
References ConsecutiveRegisters(), GetImm(), llvm::MachineInstr::getOperand(), and llvm::MachineOperand::getReg().
Definition at line 378 of file MicroMipsSizeReduction.cpp.
References Registers.
Referenced by ConsecutiveInstr().
|
static |
Definition at line 308 of file MicroMipsSizeReduction.cpp.
References MI.
Referenced by ConsecutiveInstr(), llvm::ShapeT::deduceImm(), and ImmInRange().
|
static |
Definition at line 337 of file MicroMipsSizeReduction.cpp.
References GetImm(), InRange(), and MI.
Referenced by CheckXWPInstr().
INITIALIZE_PASS | ( | MicroMipsSizeReduce | , |
DEBUG_TYPE | , | ||
MICROMIPS_SIZE_REDUCE_NAME | , | ||
false | , | ||
false | |||
) | const & |
Definition at line 282 of file MicroMipsSizeReduction.cpp.
Definition at line 327 of file MicroMipsSizeReduction.cpp.
Referenced by llvm::ConstantFoldGetElementPtr(), llvm::ConstantExpr::getGetElementPtr(), ImmInRange(), splitGlobal(), and WriteOptimizationInfo().
|
static |
Definition at line 300 of file MicroMipsSizeReduction.cpp.
References llvm::MachineOperand::getReg(), and llvm::MachineOperand::isReg().
|
static |
Definition at line 293 of file MicroMipsSizeReduction.cpp.
References llvm::MachineOperand::getReg(), and llvm::MachineOperand::isReg().
Definition at line 585 of file MicroMipsSizeReduction.cpp.
Definition at line 596 of file MicroMipsSizeReduction.cpp.
Definition at line 573 of file MicroMipsSizeReduction.cpp.
STATISTIC | ( | NumReduced | ) |