1 //===-- llvm/MC/MCCodeGenInfo.h - Target CodeGen Info -----------*- 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 tracks information about the target which can affect codegen,
11 // asm parsing, and asm printing. For example, relocation model.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_MC_MCCODEGENINFO_H
16 #define LLVM_MC_MCCODEGENINFO_H
20 // Relocation model types.
22 enum Model { Default, Static, PIC_, DynamicNoPIC };
27 enum Model { Default, JITDefault, Small, Kernel, Medium, Large };
31 /// RelocationModel - Relocation model: statcic, pic, etc.
33 Reloc::Model RelocationModel;
35 /// CMModel - Code model.
37 CodeModel::Model CMModel;
40 void InitMCCodeGenInfo(Reloc::Model RM = Reloc::Default,
41 CodeModel::Model CM = CodeModel::Default);
43 Reloc::Model getRelocationModel() const { return RelocationModel; }
45 CodeModel::Model getCodeModel() const { return CMModel; }