[PATCH] D155780: [RISCV] Order the RISCVInstrInfo*.td includes for standard extensions into logical groups. NFC
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 21:58:54 PDT 2023
craig.topper created this revision.
craig.topper added reviewers: asb, wangpc, kito-cheng, reames, jrtc27.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: eopXD, MaskRay.
Herald added a project: LLVM.
There are some ordering dependency between these files.
-F must be included before D, Zfh, and Zfa. I recently suggested Zfbfmin
should be after Zfh.
-V must be before Zvk.
-Zc must be after Zb since Zbb instructions can be compressed.
So I've grouped all the scalar FP together. The vector together.
And put the compressed instructions at the end.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D155780
Files:
llvm/lib/Target/RISCV/RISCVInstrInfo.td
Index: llvm/lib/Target/RISCV/RISCVInstrInfo.td
===================================================================
--- llvm/lib/Target/RISCV/RISCVInstrInfo.td
+++ llvm/lib/Target/RISCV/RISCVInstrInfo.td
@@ -1933,23 +1933,36 @@
// Standard extensions
//===----------------------------------------------------------------------===//
+// Multiply and Division
include "RISCVInstrInfoM.td"
+
+// Atomic
include "RISCVInstrInfoA.td"
+
+// Scalar FP
include "RISCVInstrInfoF.td"
include "RISCVInstrInfoD.td"
-include "RISCVInstrInfoC.td"
+include "RISCVInstrInfoZfh.td"
+include "RISCVInstrInfoZfbfmin.td"
+include "RISCVInstrInfoZfa.td"
+
+// Scalar bitmanip and cryptography
include "RISCVInstrInfoZb.td"
-include "RISCVInstrInfoZc.td"
include "RISCVInstrInfoZk.td"
+
+// Vector
include "RISCVInstrInfoV.td"
include "RISCVInstrInfoZvfbf.td"
include "RISCVInstrInfoZvk.td"
-include "RISCVInstrInfoZfa.td"
-include "RISCVInstrInfoZfbfmin.td"
-include "RISCVInstrInfoZfh.td"
+
+// Integer
include "RISCVInstrInfoZicbo.td"
include "RISCVInstrInfoZicond.td"
+// Compressed
+include "RISCVInstrInfoC.td"
+include "RISCVInstrInfoZc.td"
+
//===----------------------------------------------------------------------===//
// Vendor extensions
//===----------------------------------------------------------------------===//
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155780.542304.patch
Type: text/x-patch
Size: 1330 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230720/f0be9fb7/attachment.bin>
More information about the llvm-commits
mailing list