summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Host.h
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-04-03 17:54:47 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-04-13 01:56:54 +0200
commitaf84995d06bb792e77e84f9a04361e8b0268e800 (patch)
tree7f5bbc7ed58d568c850367893c70beecdfb73d0a /include/llvm/Support/Host.h
parentebef5e2348f15db2e965b6392375323719ccd54f (diff)
downloadllvm-af84995d06bb792e77e84f9a04361e8b0268e800.tar.gz
llvm-af84995d06bb792e77e84f9a04361e8b0268e800.tar.bz2
llvm-af84995d06bb792e77e84f9a04361e8b0268e800.tar.xz
[Embtk] Give ability to specify default -mcpu
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'include/llvm/Support/Host.h')
-rw-r--r--include/llvm/Support/Host.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Support/Host.h b/include/llvm/Support/Host.h
index 28c4cc790f..192fbd4d64 100644
--- a/include/llvm/Support/Host.h
+++ b/include/llvm/Support/Host.h
@@ -46,6 +46,14 @@ namespace sys {
/// CPU_TYPE-VENDOR-KERNEL-OPERATING_SYSTEM
std::string getDefaultTargetTriple();
+ /// getDefaultTargetCpu() - Return the default target cpu for which the
+ /// compiler is configured to generate code for (ie. -mcpu), or "" if empty.
+ std::string getDefaultTargetCpu();
+
+ /// hasDefaultTargetCpu() - Return true if the compiler was configured to
+ /// generate by default code for a given target cpu and false otherwise.
+ bool hasDefaultTargetCpu();
+
/// 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();