[PATCH] D99079: [ARM][AArch64] Require appropriate features for crypto algorithms

2021-04-28 Thread David Candler via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGb8baa2a91324: [ARM][AArch64] Require appropriate features for crypto algorithms (authored by dcandler). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D99079: [ARM][AArch64] Require appropriate features for crypto algorithms

2021-04-28 Thread David Candler via Phabricator via cfe-commits
dcandler added inline comments. Comment at: clang/lib/Basic/Targets/AArch64.h:36 + bool HasSHA3; + bool HasSM4; bool HasUnaligned; rsanthir.quic wrote: > Would it make sense to further differentiate SM3 and SM4? I see that we > differentiate between the

[PATCH] D99079: [ARM][AArch64] Require appropriate features for crypto algorithms

2021-04-26 Thread Sam Elliott via Phabricator via cfe-commits
lenary accepted this revision. lenary added a comment. This revision is now accepted and ready to land. LGTM. Please give the other reviewers time to chime in about this patch before merging. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99079/new/ https://reviews.llvm.org/D99079

[PATCH] D99079: [ARM][AArch64] Require appropriate features for crypto algorithms

2021-04-16 Thread David Candler via Phabricator via cfe-commits
dcandler updated this revision to Diff 338126. dcandler marked 2 inline comments as done. dcandler added a comment. Removed one duplicated line. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99079/new/ https://reviews.llvm.org/D99079 Files: clang/include/clang/Basic/arm_neon.td

[PATCH] D99079: [ARM][AArch64] Require appropriate features for crypto algorithms

2021-04-16 Thread David Candler via Phabricator via cfe-commits
dcandler updated this revision to Diff 338046. dcandler added a comment. I've updated the patch to fix the test failures, and slightly reworked the driver code to avoid the above iterator invalidation. I've also added a comment there to clarify what it is doing: individually determining whether

[PATCH] D99079: [ARM][AArch64] Require appropriate features for crypto algorithms

2021-04-14 Thread Ryan Santhirarajan via Phabricator via cfe-commits
rsanthir.quic added inline comments. Comment at: clang/lib/Basic/Targets/AArch64.h:36 + bool HasSHA3; + bool HasSM4; bool HasUnaligned; Would it make sense to further differentiate SM3 and SM4? I see that we differentiate between the two in arm_neon.td

[PATCH] D99079: [ARM][AArch64] Require appropriate features for crypto algorithms

2021-03-26 Thread Tim Northover via Phabricator via cfe-commits
t.p.northover added inline comments. Comment at: clang/lib/Driver/ToolChains/Arch/ARM.cpp:641 + }); + if ((ItSHA2 != Features.rend()) || (ItSHA2 != Features.rend())) +Features.push_back("-crypto"); Both of these checks are identical. And could we get

[PATCH] D99079: [ARM][AArch64] Require appropriate features for crypto algorithms

2021-03-22 Thread David Candler via Phabricator via cfe-commits
dcandler created this revision. dcandler added reviewers: t.p.northover, rsanthir.quic, SjoerdMeijer, efriedma, peter.smith, labrinea. Herald added subscribers: danielkiss, hiraditya, kristof.beyls. dcandler requested review of this revision. Herald added projects: clang, LLVM. Herald added