[Patch/RFC PPC64] Add Power8 host keyword

Will Schmidt will_schmidt at vnet.ibm.com
Wed Jun 25 11:34:28 PDT 2014


[Apologies for the noise.  re-posting to the correct list ;-) ]

This patch adds support for POWER*/POWER8E as a host cpu.

thanks, 
-Will


commit 57ef083f8bd9ceb568c537918c9f2713e4080562
Author: Will Schmidt <will_schmidt at vnet.ibm.com>
Date:   Wed Apr 30 16:36:57 2014 -0500

    pwr8 host

diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp
index 03187e9..e2dd6d5 100644
--- a/lib/Support/Host.cpp
+++ b/lib/Support/Host.cpp
@@ -570,6 +570,8 @@ StringRef sys::getHostCPUName() {
     .Case("A2", "a2")
     .Case("POWER6", "pwr6")
     .Case("POWER7", "pwr7")
+    .Case("POWER8", "pwr8")
+    .Case("POWER8E", "pwr8")
     .Default(generic);
 }
 #elif defined(__linux__) && defined(__arm__)







More information about the llvm-commits mailing list