Simplify CpuIs code to use include from LLVM
ClosedPublic

Authored by erichkeane on Tue, Nov 14, 3:35 PM.

Details

Summary

LLVM exposes a file in the backend (X86TargetParser.def) that
contains information about the correct list of CpuIs values.

This patch removes 2 of the copied and pasted versions of this
list from clang and instead includes the data from the .def file.

Diff Detail

Repository
rL LLVM
erichkeane created this revision.Tue, Nov 14, 3:35 PM
erichkeane added inline comments.
lib/CodeGen/CGBuiltin.cpp
4630 ↗(On Diff #122930)

Note that these two are required, since there is an llvm::ARM and a clang::ARM, and the top of this does a 'using namespace clang' and a 'using namespace llvm'.

Re-ran format on a few lines to make them more sane.

This revision is now accepted and ready to land.Tue, Nov 14, 3:59 PM
This revision was automatically updated to reflect the committed changes.