1 //===---- MipsOs16.h for Mips Option -Os16 --------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines an optimization phase for the MIPS target.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_MIPS_MIPSOS16_H
15 #define LLVM_LIB_TARGET_MIPS_MIPSOS16_H
17 #include "MCTargetDesc/MipsMCTargetDesc.h"
18 #include "MipsTargetMachine.h"
19 #include "llvm/Pass.h"
20 #include "llvm/Target/TargetMachine.h"
26 class MipsOs16 : public ModulePass {
31 MipsOs16() : ModulePass(ID) {
35 const char *getPassName() const override {
36 return "MIPS Os16 Optimization";
39 bool runOnModule(Module &M) override;
43 ModulePass *createMipsOs16(MipsTargetMachine &TM);