aboutsummaryrefslogtreecommitdiff
path: root/lib/System/Host.cpp
AgeCommit message (Collapse)Author
2010-01-19Stubs for getHostCPUFeatures API. This implements part of PR5389.Xerxes Ranby
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93913 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-14Add "generic" fallback.Torok Edwin
gcc warned that the function may not have a return value, indeed for non-intel and non-amd X86 CPUs it is right (VIA, etc.). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91276 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-13Using _MSC_VER there was wrong, better just use the already existing ifdefs forTorok Edwin
x86 CPU detection for the X86 getHostCPUName too, and create a simple getHostCPUName that returns "generic" for all else. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91240 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-12Enable CPU detection when using MS VS 2k8 too.Torok Edwin
MSVS2k8 doesn't define __i386__, hence all the CPU detection code was disabled. Enable it by looking for _MSC_VER. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91217 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-19Unbreak x64 MSVC build. Patch by Nicolas Capens!Benjamin Kramer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89341 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-17Revert CPU detection code to return "generic" instead of an empty string in caseBenjamin Kramer
of failure. The x86 target didn't like empty cpu names and broke x86 tests on non-x86 buildbots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89111 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-14Remove bogus corei7 and atom entries, the family was incorrect.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88818 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-14Fill out X86 table, although we are missing lots of names for things. We nowDaniel Dunbar
properly detect my Xeon box though. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88814 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-14Add llvm::sys::getHostCPUName, for detecting the LLVM name for the host CPU.Daniel Dunbar
- This is an initial step towards -march=native support in Clang, and towards eliminating host dependencies in the targets. See PR5389. - Patch by Roman Divacky! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88768 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-02Add llvm::sys::{osName,osVersion} for retrieving operating system nameDaniel Dunbar
& version as strings. - Win32 code is untested. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56942 91177308-0d34-0410-b5e6-96231b3b80d8