diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-05 02:14:27 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-10 16:09:44 +0200 |
commit | 709ca3030e9057d95a7326f88e79ff3c95aa11d8 (patch) | |
tree | 30c23e11567a50aa79b4c8bbabd892b68f95e6d9 /include | |
parent | 38b7bf5fd05046a52788f143f18ef599c7070605 (diff) | |
download | llvm-709ca3030e9057d95a7326f88e79ff3c95aa11d8.tar.gz llvm-709ca3030e9057d95a7326f88e79ff3c95aa11d8.tar.bz2 llvm-709ca3030e9057d95a7326f88e79ff3c95aa11d8.tar.xz |
[Embtk] Give ability to specify default float abi to use at configure time
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
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 | 9 |
5 files changed, 21 insertions, 0 deletions
diff --git a/include/llvm/Config/config.h.cmake b/include/llvm/Config/config.h.cmake index 32d192e455..46300cca79 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}" +/* Default float abi to use to all compiler invocations. */ +#cmakedefine LLVM_DEFAULT_TARGET_FLOAT "${LLVM_DEFAULT_TARGET_FLOAT}" + /* Target triple LLVM will generate code for by default */ #cmakedefine LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}" diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in index 1667216953..e595aca501 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 +/* Default float abi to use to all compiler invocations. */ +#undef LLVM_DEFAULT_TARGET_FLOAT + /* Default cpu (-mcpu=cpu) to use to all compiler invocations. */ #undef LLVM_DEFAULT_TARGET_MCPU diff --git a/include/llvm/Config/llvm-config.h.cmake b/include/llvm/Config/llvm-config.h.cmake index c6f2bef210..3c65c5cd45 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}" +/* Default float abi to use to all compiler invocations. */ +#cmakedefine LLVM_DEFAULT_TARGET_FLOAT "${LLVM_DEFAULT_TARGET_FLOAT}" + /* Target triple LLVM will generate code for by default */ #cmakedefine LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}" diff --git a/include/llvm/Config/llvm-config.h.in b/include/llvm/Config/llvm-config.h.in index a5209fa9b2..3e678479b8 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 +/* Default float abi to use to all compiler invocations. */ +#undef LLVM_DEFAULT_TARGET_FLOAT + /* Target triple LLVM will generate code for by default */ #undef LLVM_DEFAULT_TARGET_TRIPLE diff --git a/include/llvm/Support/Host.h b/include/llvm/Support/Host.h index 748e5e2cdf..6cca3b2acd 100644 --- a/include/llvm/Support/Host.h +++ b/include/llvm/Support/Host.h @@ -54,6 +54,15 @@ namespace sys { /// generate by default code for a given target cpu and false otherwise. bool hasDefaultTargetCpu(); + /// getDefaultTargetFloat() - Return the default target float abi for which + /// the compiler is configured to generate code for, or "" if empty. + std::string getDefaultTargetFloat(); + + /// hasDefaultTargetFloat() - Return true if the compiler was configured to + /// generate by default code for a given floating point abi and false + /// otherwise. + bool hasDefaultTargetFloat(); + /// 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(); |