[RISCV] Add combination crypto extensions in ISAInfo
authoreopXD <eop.chen@sifive.com>
Fri, 11 Feb 2022 09:49:19 +0000 (01:49 -0800)
committereopXD <eop.chen@sifive.com>
Tue, 8 Mar 2022 17:52:38 +0000 (09:52 -0800)
commit550b2eaaa6e402ce664fe55c038e5fe387258af7
tree54ec9ccf182bf530867bc4ca5a77dd8e27f03147
parentb3eb0e113e5f12f4fc88bda8bf5a653b00425f2b
[RISCV] Add combination crypto extensions in ISAInfo

The crypto extension have several shorthand extensions that don't consist of any extra instructions.
Take `zk` for example, while the extension would imply `zkn, zkr, zkt`. The 3 extensions should also
combine back into `zk` to maintain the canonical order in isa strings.

This patch addresses the above.

Reviewed By: VincentWu

Differential Revision: https://reviews.llvm.org/D119530
clang/test/Preprocessor/riscv-target-features.c
llvm/include/llvm/Support/RISCVISAInfo.h
llvm/lib/Support/RISCVISAInfo.cpp
llvm/test/CodeGen/RISCV/attributes.ll