Changes in directory llvm/include/llvm/Target:
TargetMachine.h updated: 1.65 -> 1.66 --- Log message: Added option -code-model to set code model (only used in 64-bit) mode. Valid values include small, kernel, medium, large, and default. --- Diffs of the changes: (+18 -0) TargetMachine.h | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+) Index: llvm/include/llvm/Target/TargetMachine.h diff -u llvm/include/llvm/Target/TargetMachine.h:1.65 llvm/include/llvm/Target/TargetMachine.h:1.66 --- llvm/include/llvm/Target/TargetMachine.h:1.65 Fri May 12 01:33:48 2006 +++ llvm/include/llvm/Target/TargetMachine.h Wed Jul 5 20:53:36 2006 @@ -44,6 +44,17 @@ }; } +// Code model types. +namespace CodeModel { + enum Model { + Default, + Small, + Kernel, + Medium, + Large + }; +} + //===----------------------------------------------------------------------===// /// /// TargetMachine - Primary interface to the complete machine description for @@ -132,6 +143,13 @@ /// setRelocationModel - Sets the code generation relocation model. static void setRelocationModel(Reloc::Model Model); + /// getCodeModel - Returns the code model. The choices are small, kernel, + /// medium, large, and target default. + static CodeModel::Model getCodeModel(); + + /// setCodeModel - Sets the code model. + static void setCodeModel(CodeModel::Model Model); + /// CodeGenFileType - These enums are meant to be passed into /// addPassesToEmitFile to indicate what type of file to emit. enum CodeGenFileType { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits