diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-07 22:01:37 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-10 16:15:30 +0200 |
commit | 7c61d77dc58831d3f47753c7454b66a788727e71 (patch) | |
tree | a2c608f34e3c0cffc2a4998e55dc7ce88cfd437b /include | |
parent | c08b9b80cf40f55e711664c9b4e5ca09f3d94ddd (diff) | |
download | llvm-7c61d77dc58831d3f47753c7454b66a788727e71.tar.gz llvm-7c61d77dc58831d3f47753c7454b66a788727e71.tar.bz2 llvm-7c61d77dc58831d3f47753c7454b66a788727e71.tar.xz |
[Embtk]: Give ability to specify default target ABI at configure time
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
(cherry picked from commit 6ab8513df36438aa2c16facc94f306891446e061)
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Config/config.h.cmake | 3 | ||||
-rw-r--r-- | include/llvm/Config/config.h.in | 3 | ||||
-rw-r--r-- | include/llvm/Config/llvm-config.h.cmake | 3 | ||||
-rw-r--r-- | include/llvm/Config/llvm-config.h.in | 3 | ||||
-rw-r--r-- | include/llvm/Support/Host.h | 8 |
5 files changed, 20 insertions, 0 deletions
diff --git a/include/llvm/Config/config.h.cmake b/include/llvm/Config/config.h.cmake index ac7a56e6cd..397df37a07 100644 --- a/include/llvm/Config/config.h.cmake +++ b/include/llvm/Config/config.h.cmake @@ -570,6 +570,9 @@ /* Installation directory for data files */ #cmakedefine LLVM_DATADIR "${LLVM_DATADIR}" +/* Add by default -mabi=abi to all compiler invocations. */ +#cmakedefine LLVM_DEFAULT_TARGET_ABI "${LLVM_DEFAULT_TARGET_ABI}" + /* Default float abi to use to all compiler invocations. */ #cmakedefine LLVM_DEFAULT_TARGET_FLOAT "${LLVM_DEFAULT_TARGET_FLOAT}" diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in index 6092ec39b6..a5bb4b4abd 100644 --- a/include/llvm/Config/config.h.in +++ b/include/llvm/Config/config.h.in @@ -575,6 +575,9 @@ /* Installation directory for data files */ #undef LLVM_DATADIR +/* Add by default -mabi=abi to all compiler invocations. */ +#undef LLVM_DEFAULT_TARGET_ABI + /* Default float abi to use to all compiler invocations. */ #undef LLVM_DEFAULT_TARGET_FLOAT diff --git a/include/llvm/Config/llvm-config.h.cmake b/include/llvm/Config/llvm-config.h.cmake index eb0b4a86c3..e03722486b 100644 --- a/include/llvm/Config/llvm-config.h.cmake +++ b/include/llvm/Config/llvm-config.h.cmake @@ -25,6 +25,9 @@ /* Installation directory for data files */ #cmakedefine LLVM_DATADIR "${LLVM_DATADIR}" +/* Add by default -mabi=abi to all compiler invocations. */ +#cmakedefine LLVM_DEFAULT_TARGET_ABI "${LLVM_DEFAULT_TARGET_ABI}" + /* Default float abi to use to all compiler invocations. */ #cmakedefine LLVM_DEFAULT_TARGET_FLOAT "${LLVM_DEFAULT_TARGET_FLOAT}" diff --git a/include/llvm/Config/llvm-config.h.in b/include/llvm/Config/llvm-config.h.in index 607495ecc6..0b3f328310 100644 --- a/include/llvm/Config/llvm-config.h.in +++ b/include/llvm/Config/llvm-config.h.in @@ -25,6 +25,9 @@ /* Installation directory for data files */ #undef LLVM_DATADIR +/* Add by default -mabi=abi to all compiler invocations. */ +#undef LLVM_DEFAULT_TARGET_ABI + /* Default float abi to use to all compiler invocations. */ #undef LLVM_DEFAULT_TARGET_FLOAT diff --git a/include/llvm/Support/Host.h b/include/llvm/Support/Host.h index 48bc93edb7..ab52671861 100644 --- a/include/llvm/Support/Host.h +++ b/include/llvm/Support/Host.h @@ -79,6 +79,14 @@ namespace sys { /// to generate by default code with a given hash-style and false otherwise. bool hasDefaultTargetHashStyle(); + /// getDefaultTargetAbi() - Return the default target ABI for which the + /// compiler is configured to generate code for, or "" if empty. + std::string getDefaultTargetAbi(); + + /// hasDefaultTargetAbi() - Return true if the compiler was configured to + /// generate code for a given ABI and false otherwise. + bool hasDefaultTargetAbi(); + /// getProcessTriple() - Return an appropriate target triple for generating /// code to be loaded into the current process, e.g. when using the JIT. std::string getProcessTriple(); |