This is an archive of the discontinued LLVM Phabricator instance.

[ARM][AArch64] Correct __ARM_FEATURE_CRYPTO macro and crypto feature
ClosedPublic

Authored by dcandler on May 13 2021, 8:20 AM.

Details

Summary

This patch contains a couple of minor corrections to my previous
crypto patch:

Since both AArch32 and AArch64 are now correctly setting the aes and
sha2 features individually, it is not necessary to continue to check
the crypto feature when defining feature macros.

In the AArch32 driver, the feature vector is only modified when the
crypto feature is actually in the vector. If crypto is not present,
there is no need to split it and explicitly define crypto/sha2/aes.

Diff Detail

Event Timeline

dcandler created this revision.May 13 2021, 8:20 AM
dcandler requested review of this revision.May 13 2021, 8:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 13 2021, 8:20 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
lenary accepted this revision.May 13 2021, 9:55 AM
This revision is now accepted and ready to land.May 13 2021, 9:55 AM
This revision was landed with ongoing or failed builds.May 14 2021, 6:26 AM
This revision was automatically updated to reflect the committed changes.