diff options
| author | Zoran Jovanovic <zoran.jovanovic@mips.com> | 2018-06-13 12:51:37 +0000 |
|---|---|---|
| committer | Zoran Jovanovic <zoran.jovanovic@mips.com> | 2018-06-13 12:51:37 +0000 |
| commit | 3a7654c15dd204fe3454f477fc576924e3686d0d (patch) | |
| tree | 09e33b275f26d132d300698e00e8a455d6908e33 /llvm/lib/Target/Mips/Mips.h | |
| parent | 36b816f81409828133e47c29525d9df35cd4e1a7 (diff) | |
| download | bcm5719-llvm-3a7654c15dd204fe3454f477fc576924e3686d0d.tar.gz bcm5719-llvm-3a7654c15dd204fe3454f477fc576924e3686d0d.zip | |
[mips][microMIPS] Extending size reduction pass with LWP and SWP
Author: milena.vujosevic.janicic
Reviewers: sdardis
The patch extends size reduction pass for MicroMIPS.
It introduces reduction of two instructions into one instruction:
Two SW instructions are transformed into one SWP instrucition.
Two LW instructions are transformed into one LWP instrucition.
Differential Revision: https://reviews.llvm.org/D39115
llvm-svn: 334595
Diffstat (limited to 'llvm/lib/Target/Mips/Mips.h')
| -rw-r--r-- | llvm/lib/Target/Mips/Mips.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/Mips.h b/llvm/lib/Target/Mips/Mips.h index 51d7ed7137d..6dd2731a76f 100644 --- a/llvm/lib/Target/Mips/Mips.h +++ b/llvm/lib/Target/Mips/Mips.h @@ -26,6 +26,7 @@ namespace llvm { class MipsSubtarget; class MipsTargetMachine; class InstructionSelector; + class PassRegistry; ModulePass *createMipsOs16Pass(); ModulePass *createMips16HardFloatPass(); @@ -35,7 +36,7 @@ namespace llvm { FunctionPass *createMipsDelaySlotFillerPass(); FunctionPass *createMipsBranchExpansion(); FunctionPass *createMipsConstantIslandPass(); - FunctionPass *createMicroMipsSizeReductionPass(); + FunctionPass *createMicroMipsSizeReducePass(); InstructionSelector *createMipsInstructionSelector(const MipsTargetMachine &, MipsSubtarget &, @@ -43,6 +44,7 @@ namespace llvm { void initializeMipsDelaySlotFillerPass(PassRegistry &); void initializeMipsBranchExpansionPass(PassRegistry &); + void initializeMicroMipsSizeReducePass(PassRegistry &); } // end namespace llvm; #endif |

