================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits