Sink codegen optimization level into MCCodeGenInfo along side relocation model
[oota-llvm.git] / include / llvm / Support / CodeGen.h
1 //===-- llvm/Support/CodeGen.h - CodeGen Concepts ---------------*- C++ -*-===//
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 define some types which define code generation concepts. For
11 // example, relocation model.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_SUPPORT_CODEGEN_H
16 #define LLVM_SUPPORT_CODEGEN_H
17
18 namespace llvm {
19
20   // Relocation model types.
21   namespace Reloc {
22     enum Model { Default, Static, PIC_, DynamicNoPIC };
23   }
24
25   // Code model types.
26   namespace CodeModel {
27     enum Model { Default, JITDefault, Small, Kernel, Medium, Large };
28   }
29
30   // Code generation optimization level.
31   namespace CodeGenOpt {
32     enum Level {
33       None,        // -O0
34       Less,        // -O1
35       Default,     // -O2, -Os
36       Aggressive   // -O3
37     };
38   }
39
40 }  // end llvm namespace
41
42 #endif