[Mlir-commits] [mlir] [mlir][ArmSME] Enable native ArmSME integration testing on Darwin (PR #215296)

Andrzej WarzyƄski llvmlistbot at llvm.org
Tue Aug 11 10:55:10 PDT 2026


================
@@ -2,8 +2,46 @@
 # the moment these are used when configuring MLIR integration tests.
 
 # Checks whether the specified hardware capability is supported by the host
-# Linux system. This is implemented by checking auxiliary vector feature
-# provided by the Linux kernel.
+# Darwin (macOS) system. This is implemented via `sysctl`, which is the
+# Darwin equivalent of Linux's auxiliary vector feature bits. Only the
+# mappings actually needed by callers in this file are provided; unmapped
+# hwcap_spec values conservatively report unsupported.
+#
+# check_hwcap_darwin(
+#   hwcap_spec
+#   output_var
+# )
+function(check_hwcap_darwin hwcap_spec output)
----------------
banach-space wrote:

`hwcap` is a Linux concept, I would avoid using that phrase in the Darwin concept, it's confusing. Instead, I would write a basic helper:
```mlir
function(check_sme_support_on_darwin)
```

;-)

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


More information about the Mlir-commits mailing list