[PATCH] D153742: [RISCV] Add Zce extension.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 26 00:49:13 PDT 2023
craig.topper created this revision.
craig.topper added reviewers: asb, VincentWu, kito-cheng, fakepaper56.
Herald added subscribers: jobnoorman, luke, vkmr, frasercrmck, jdoerfert, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: wangpc, eopXD, MaskRay.
Herald added a project: LLVM.
According to the spec, Zce is an alias for Zca, Zcb, Zcmp, and Zcmt.
If F is enabled on RV32 it also includes Zcf.
This patch adds the Zce and the implication rule which unfortunately
requires custom handling for adding Zcf.
I've also made all the Zc* extensions imply Zca.
I've also added an error for Zcf without RV32.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D153742
Files:
llvm/lib/Support/RISCVISAInfo.cpp
llvm/lib/Target/RISCV/RISCVFeatures.td
llvm/test/CodeGen/RISCV/attributes.ll
llvm/test/MC/RISCV/attribute-arch.s
llvm/test/MC/RISCV/rv32fc-valid.s
llvm/unittests/Support/RISCVISAInfoTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153742.534451.patch
Type: text/x-patch
Size: 11967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230626/477f3c05/attachment.bin>
More information about the llvm-commits
mailing list