summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Host.cpp
diff options
context:
space:
mode:
authorStefan Pintilie <stefanp@ca.ibm.com>2019-11-27 12:50:23 -0600
committerStefan Pintilie <stefanp@ca.ibm.com>2019-11-27 14:30:06 -0600
commitdcceab1a0ace424ba4877f53c4c69433e53f1f3f (patch)
tree0e80d5e03adbf0f2f38e55af4d3ffc05e574b7e7 /llvm/lib/Support/Host.cpp
parentf584f04dab69ab15c8942753a145f0c6e7693bcc (diff)
downloadbcm5719-llvm-dcceab1a0ace424ba4877f53c4c69433e53f1f3f.tar.gz
bcm5719-llvm-dcceab1a0ace424ba4877f53c4c69433e53f1f3f.zip
[PowerPC] Add new Future CPU for PowerPC in LLVM
This is a continuation of D70262 The previous patch as listed above added the future CPU in clang. This patch adds the future CPU in the PowerPC backend. At this point the patch simply assumes that a future CPU will have the same characteristics as pwr9. Those characteristics may change with later patches. Differential Revision: https://reviews.llvm.org/D70333
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r--llvm/lib/Support/Host.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index 7e07b8f7ca2..ef38c1c0941 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -140,6 +140,9 @@ StringRef sys::detail::getHostCPUNameForPowerPC(StringRef ProcCpuinfoContent) {
.Case("POWER8E", "pwr8")
.Case("POWER8NVL", "pwr8")
.Case("POWER9", "pwr9")
+ // FIXME: If we get a simulator or machine with the capabilities of
+ // mcpu=future, we should revisit this and add the name reported by the
+ // simulator/machine.
.Default(generic);
}
OpenPOWER on IntegriCloud