Page MenuHomePhabricator

[AArch64] Add native CPU detection for Neoverse N1
ClosedPublic

Authored by jgreenhalgh on May 28 2020, 9:40 AM.

Details

Summary

Hi,

As subject line, map the ID value 0xd0c to "neoverse-n1". This reflects the value used by the GCC support https://gcc.gnu.org/git/?p=gcc.git;a=blobdiff;f=gcc/config/aarch64/aarch64-cores.def;h=b0c7d2f23ace1e3c3a89f4e3ab10c9ad08f56b22;hp=7c4bd52049e5ae33241acce37414da91abaa989c;hb=9ed6834deacecd0e0671793e1440aa728939b93f;hpb=229d576cde53ac4396583da3642ca969cca413d1

I've got no commit access over here, so would appreciate this being committed on my behalf if it is OK.

Thanks,
James

Diff Detail

Event Timeline

jgreenhalgh created this revision.May 28 2020, 9:40 AM
SjoerdMeijer accepted this revision.May 28 2020, 11:48 AM

Hi James, looks like a very straightforward fix to me, so will commit it right away on your behalf.

llvm/lib/Support/Host.cpp
207

if this CPU ID would have been defined where the rest of the core is defined, we might not forget it all the time...

This revision is now accepted and ready to land.May 28 2020, 11:48 AM
This revision was automatically updated to reflect the committed changes.