[PATCH] D106518: [RISCV] Disable EEW=64 for index values when XLEN=32.

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 21 20:58:02 PDT 2021


jrtc27 added inline comments.


================
Comment at: clang/include/clang/Basic/riscv_vector.td:555
 
+defvar Xlen32EEWList = [["8", "(Log2EEW:3)"],
+                        ["16", "(Log2EEW:4)"],
----------------
Ignoring whether the change is actually correct, this should be capitalised as XLen32EEWList, but really this should actually be RV32 not XLen32 as that's not a term we use.


================
Comment at: clang/include/clang/Basic/riscv_vector.td:693
+        let Name = op # eew64 # "_v", IRName = op, IRNameMask = op # "_mask",
+            RequiredExtensions = ["Xlen64"] in {
+            def: RVVBuiltin<"v", "vPCe" # eew64_type # "Uv", type>;
----------------
Xlen64 is not an extension. Nor is RV64I, even, it is a base ISA, but that would at least be somewhat defensible. In fact, Xlen64 would be parsed as a valid non-standard extension called "Xlen" with major version 64 and minor version 0, just like any other Xfoo.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106518/new/

https://reviews.llvm.org/D106518



More information about the llvm-commits mailing list