aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/CodeGen.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-04-08 17:20:55 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-04-08 17:20:55 +0000
commit34797136cb9fa9f450c0e1c47983482083979dd4 (patch)
treea626ac4443d9845684fe923dc02bf503e627ee68 /include/llvm/Support/CodeGen.h
parent0f554492467064b3198df509227a3e902cf7cf1f (diff)
Move the TLSModel information into the TargetMachine rather than hiding
in TargetLowering. There was already a FIXME about this location being odd. The interface is simplified as a consequence. This will also make it easier to change TLS models when compiling with PIE. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/CodeGen.h')
-rw-r--r--include/llvm/Support/CodeGen.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Support/CodeGen.h b/include/llvm/Support/CodeGen.h
index 3a76cc7167..1b66c94389 100644
--- a/include/llvm/Support/CodeGen.h
+++ b/include/llvm/Support/CodeGen.h
@@ -27,6 +27,16 @@ namespace llvm {
enum Model { Default, JITDefault, Small, Kernel, Medium, Large };
}
+ // TLS models.
+ namespace TLSModel {
+ enum Model {
+ GeneralDynamic,
+ LocalDynamic,
+ InitialExec,
+ LocalExec
+ };
+ }
+
// Code generation optimization level.
namespace CodeGenOpt {
enum Level {