This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Add Cortex-A34 Support for clang and llvm
ClosedPublic

Authored by LukeGeeson on Feb 12 2020, 5:49 AM.

Details

Summary

This patch upstreams support for the AArch64 Armv8-A cpu Cortex-A34.

In detail adding support for:

Diff Detail

Event Timeline

LukeGeeson created this revision.Feb 12 2020, 5:49 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 12 2020, 5:49 AM
SjoerdMeijer accepted this revision.Feb 12 2020, 6:45 AM
SjoerdMeijer added a subscriber: SjoerdMeijer.

Looks like the usual business of adding a cpu to me, with one nit inlined that can be fixed before committing.

Looks like you're doing the LLVM part separately. Now with the monorepo you could have conveniently done it in one patch, but nothing wrong with doing it separately. You could have linked to the llvm part here if that is ready, which would be nice to get an overview.

llvm/unittests/Support/TargetParserTest.cpp
784

nit: this looks the same as the a35. Would be better to keep the same order of arch extension and also the formatting (to make it easier to eyeball differences).

This revision is now accepted and ready to land.Feb 12 2020, 6:45 AM

Ah, sorry, looks like this is all there is to it, both clang and llvm. It's just that a quick grep locally (for a similar core) showed some more results.

Can you (double) check if it needs adding to e.g. a switch in llvm/lib/Support/Host.cpp?

LukeGeeson marked an inline comment as done.
  • Added MIDR to Host.cpp
  • Fixed a clang test I missed (copy/paste error)
LukeGeeson closed this revision.Feb 18 2020, 7:00 AM
LukeGeeson marked an inline comment as not done.
LukeGeeson added inline comments.
llvm/unittests/Support/TargetParserTest.cpp
784

Good spot thanks, fixed.