[clang] [NFC][Clang][AArch64]Refactor implementation of Neon vectors MFloat8… (PR #114804)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 4 09:32:39 PST 2024


================
@@ -699,6 +696,9 @@ std::string Type::builtin_str() const {
   else if (isBFloat16()) {
     assert(ElementBitwidth == 16 && "BFloat16 can only be 16 bits");
     S += "y";
+  } else if (isMFloat8()) {
+    assert(ElementBitwidth == 8 && "BFloat16 can only be 8 bits");
----------------
SpencerAbson wrote:

```suggestion
    assert(ElementBitwidth == 8 && "MFloat8 can only be 8 bits");
```

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


More information about the cfe-commits mailing list