Implement `sys::getHostCPUName()` for Darwin ARM
authorChris Bieneman <chris.bieneman@me.com>
Wed, 30 Oct 2019 19:50:04 +0000 (12:50 -0700)
committerChris Bieneman <chris.bieneman@me.com>
Wed, 6 Nov 2019 01:49:16 +0000 (17:49 -0800)
commit34688fafea813f826b71f814edd6389adbf98ca7
tree499cf332760a62292683870614f25faa3e647bb0
parentbcbb121ff6c8440382abfce8f2911a095f14602b
Implement `sys::getHostCPUName()` for Darwin ARM

Summary: Currently there is no implementation of `sys::getHostCPUName()` for Darwin ARM targets. This patch makes it so that LLVM running on ARM makes reasonable guesses about the CPU features of the host CPU.

Reviewers: t.p.northover, lhames, efriedma

Reviewed By: efriedma

Subscribers: rjmccall, efriedma, kristof.beyls, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69597
llvm/lib/Support/Host.cpp