summaryrefslogtreecommitdiffstats
path: root/include/llvm/System/Host.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/System/Host.h')
-rw-r--r--include/llvm/System/Host.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/System/Host.h b/include/llvm/System/Host.h
index 3c6aa9d..6de1a4a 100644
--- a/include/llvm/System/Host.h
+++ b/include/llvm/System/Host.h
@@ -41,6 +41,12 @@ namespace sys {
/// CPU_TYPE-VENDOR-KERNEL-OPERATING_SYSTEM
std::string getHostTriple();
+ /// getHostCPUName - Get the LLVM name for the host CPU. The particular format
+ /// of the name is target dependent, and suitable for passing as -mcpu to the
+ /// target which matches the host.
+ ///
+ /// \return - The host CPU name, or empty if the CPU could not be determined.
+ std::string getHostCPUName();
}
}
OpenPOWER on IntegriCloud