[PATCH] D48625: [ARM][AArch64] Armv8.4-A enablement

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 03:02:55 PDT 2018


SjoerdMeijer created this revision.
SjoerdMeijer added reviewers: olista01, samparker, t.p.northover, rengolin.
Herald added a reviewer: javed.absar.
Herald added subscribers: chrib, kristof.beyls.

Initial patch adding assembly support for Armv8.4-A.

Besides adding v8.4 as a supported architecture to the usual places, this also
adds target features for the different crypto algorithms. Armv8.4-A introduced
new crypto algorithms, made them optional, and allows different combinations:

- none of the v8.4 crypto functions are supported, which is independent of the implementation of the Armv8.0 SHA1 and SHA2 instructions.
- the v8.4 SHA512 and SHA3 support is implemented, in this case the Armv8.0 SHA1 and SHA2 instructions must also be implemented.
- the v8.4 SM3 and SM4 support is implemented, which is independent of the implementation of the Armv8.0 SHA1 and SHA2 instructions.
- all of the v8.4 crypto functions are supported, in this case the Armv8.0 SHA1 and SHA2 instructions must also be implemented.

The v8.4 crypto instructions are added to AArch64 only, and not AArch32,
and are made optional extensions to Armv8.2-A.

The user-facing Clang options will map on these new target features, their
naming will be compatible with GCC and added in follow-up patches.

The Armv8.4-A instruction sets can be downloaded here:
https://developer.arm.com/products/architecture/a-profile/exploration-tools


https://reviews.llvm.org/D48625

Files:
  include/llvm/ADT/Triple.h
  include/llvm/Support/AArch64TargetParser.def
  include/llvm/Support/ARMTargetParser.def
  include/llvm/Support/TargetParser.h
  lib/Support/TargetParser.cpp
  lib/Support/Triple.cpp
  lib/Target/AArch64/AArch64.td
  lib/Target/AArch64/AArch64Subtarget.h
  lib/Target/ARM/ARM.td
  lib/Target/ARM/ARMInstrInfo.td
  lib/Target/ARM/ARMSubtarget.h
  lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48625.153031.patch
Type: text/x-patch
Size: 16279 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180627/ee8f8024/attachment.bin>


More information about the llvm-commits mailing list