[clang] [llvm] [mlir] [AArch64][SME] Improve codegen for aarch64.sme.cnts* when not in streaming mode (PR #154761)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 04:49:54 PDT 2025


================
@@ -14,6 +14,21 @@
 
 namespace mlir::arm_sme {
 
+unsigned getSizeInBytes(TypeSize type) {
+  switch (type) {
+  case arm_sme::TypeSize::Byte:
+    return 1;
+  case arm_sme::TypeSize::Half:
+    return 2;
+  case arm_sme::TypeSize::Word:
+    return 4;
+  case arm_sme::TypeSize::Double:
+    return 8;
+  default:
+    llvm_unreachable("unknown type size");
----------------
MacDue wrote:

Linux CI is complaining that the "default" case is unreachable (I think you can just delete this). 

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


More information about the llvm-commits mailing list