[PATCH] D60472: [AArch64][PowerPC][Driver] Allow setting crypto feature through -mcrypto.

Tiancong Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 9 10:31:59 PDT 2019


tcwang created this revision.
Herald added subscribers: cfe-commits, jsji, kbarton, kristof.beyls, javed.absar, nemanjai.
Herald added a project: clang.
tcwang added reviewers: kristof.beyls, dlj, manojgupta.

This patch enhances Clang flags -mcrypto and -mno-crypto to enable/disable crypto feature.
Before this change, -m(no-)crypto is exclusively for Power8. We want to add this feature
to ARM/AArch64 as well. With -mcrypto is specified, '+crypto' will be passed as
a target feature to ARM/AArch64/Power8, and -mno-cypto will remove target feature '-crypto'.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D60472

Files:
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/ToolChains/Arch/AArch64.cpp
  clang/lib/Driver/ToolChains/Arch/ARM.cpp
  clang/lib/Driver/ToolChains/Arch/PPC.cpp
  clang/lib/Driver/ToolChains/Arch/PPC.h
  clang/test/Driver/aarch64-crypto.c
  clang/test/Driver/armv8-crypto.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60472.194360.patch
Type: text/x-patch
Size: 4902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190409/a65b21f7/attachment-0001.bin>


More information about the cfe-commits mailing list