1 //===-- llvm/Support/CodeGen.h - CodeGen Concepts ---------------*- C++ -*-===//
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 define some types which define code generation concepts. For
11 // example, relocation model.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_SUPPORT_CODEGEN_H
16 #define LLVM_SUPPORT_CODEGEN_H
20 // Relocation model types.
22 enum Model { Static, PIC_, DynamicNoPIC, ROPI, RWPI, ROPI_RWPI };
27 // Sync changes with CodeGenCWrappers.h.
28 enum Model { Small, Kernel, Medium, Large };
32 // This is used to map -fpic/-fPIC.
33 enum Level { NotPIC=0, SmallPIC=1, BigPIC=2 };
37 enum Level { Default=0, Small=1, Large=2 };
50 // Code generation optimization level.
51 namespace CodeGenOpt {
60 } // end llvm namespace