This is an archive of the discontinued LLVM Phabricator instance.

[AArch64TargetParser] getArchFeatures -> getArchFeature
ClosedPublic

Authored by tmatheson on Nov 27 2022, 3:21 AM.

Diff Detail

Event Timeline

tmatheson created this revision.Nov 27 2022, 3:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 27 2022, 3:21 AM
tmatheson requested review of this revision.Nov 27 2022, 3:21 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 27 2022, 3:21 AM
pratlucas added inline comments.Nov 28 2022, 1:15 AM
llvm/unittests/Support/TargetParserTest.cpp
1686

Can you keep a unit test covering the new version of the function?

tmatheson added inline comments.Nov 28 2022, 1:31 AM
llvm/unittests/Support/TargetParserTest.cpp
1686

The old version had special treatment for INVALID, but the new version is just returning the feature as written in AArch64TargetParser.def. A unit test would consist of a list of getArchFeature() calls with the same strings as in the .def. So I could certainly add it but I'm not sure that it adds any value as a unit test?

tmatheson updated this revision to Diff 478540.Nov 29 2022, 5:31 AM

Reinstate unit test

This revision is now accepted and ready to land.Nov 30 2022, 6:26 AM
This revision was landed with ongoing or failed builds.Dec 1 2022, 4:51 AM
This revision was automatically updated to reflect the committed changes.