[clang] [llvm] [RISCV] Support spacemit vsmtvdotii externsions (PR #202533)

Luke Lau via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 7 03:01:57 PDT 2026


================
@@ -553,6 +558,44 @@ inline static bool isValidRoundingMode(unsigned Mode) {
 }
 } // namespace RISCVFPRndMode
 
+namespace XSMTVTypeMode {
+enum SMTVTypeMode {
+  // Define the different SMT VType modes here
+  SMT_I4 = 2,
+  SMT_I8 = 3,
+  Invalid
+};
+
+inline static StringRef SMTVTypeModeToString(SMTVTypeMode TypeMode) {
+  switch (TypeMode) {
+  default:
+    llvm_unreachable("Unknown VType's mode of SpacemiT Integer Matrix");
----------------
lukel97 wrote:

```suggestion
    llvm_unreachable("Unknown VType mode of SpacemiT Integer Matrix");
```

https://github.com/llvm/llvm-project/pull/202533


More information about the cfe-commits mailing list