LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MipsOs16.h
Go to the documentation of this file.
1 //===---- MipsOs16.h for Mips Option -Os16 --------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines an optimization phase for the MIPS target.
11 //
12 //===----------------------------------------------------------------------===//
13 
15 #include "MipsTargetMachine.h"
16 #include "llvm/Pass.h"
18 
19 
20 
21 #ifndef MIPSOS16_H
22 #define MIPSOS16_H
23 
24 using namespace llvm;
25 
26 namespace llvm {
27 
28 class MipsOs16 : public ModulePass {
29 
30 public:
31  static char ID;
32 
34 
35  }
36 
37  virtual const char *getPassName() const {
38  return "MIPS Os16 Optimization";
39  }
40 
41  virtual bool runOnModule(Module &M);
42 
43 };
44 
46 
47 }
48 
49 #endif
The main container class for the LLVM Intermediate Representation.
Definition: Module.h:112
virtual const char * getPassName() const
Definition: MipsOs16.h:37
virtual bool runOnModule(Module &M)
Definition: MipsOs16.cpp:95
ModulePass * createMipsOs16(MipsTargetMachine &TM)
Definition: MipsOs16.cpp:142
static char ID
Definition: MipsOs16.h:31