[Mlir-commits] [mlir] Add support for MLIR to llvm vscale attribute (PR #67012)
Tobias Gysi
llvmlistbot at llvm.org
Thu Sep 21 07:12:54 PDT 2023
================
@@ -0,0 +1,10 @@
+; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s
+
+define void @vscale_func() #0 {
+; CHECK: llvm.func @vscale_func()
+; CHECK-SAME: vscale_range(2, 8)
+ ret void
+}
+
+attributes #0 = { vscale_range(2,8) }
----------------
gysit wrote:
nit: can you inline the attribute right in the function definition to avoid the extra layer of indirection.
https://github.com/llvm/llvm-project/pull/67012
More information about the Mlir-commits
mailing list