[Mlir-commits] [mlir] [mlir][func] Account for named attributes without a dialect prefix in `FuncToLLVM` lowering pass (PR #182987)
Mehdi Amini
llvmlistbot at llvm.org
Sat Feb 28 13:56:47 PST 2026
================
@@ -87,12 +87,3 @@ func.func @multiple_arg_attr_multiple_res_attr(%arg0: memref<f32> {test.argZero
%2 = arith.constant 2 : i32
return %0, %1, %2 : f32, memref<i32>, i32
}
-
-// CHECK: llvm.func @drop_linkage_attr() -> (!llvm.struct{{.*}} {test.returnOne})
-// CHECK-LABEL: llvm.func @_mlir_ciface_drop_linkage_attr
-// CHECK-SAME: !llvm.ptr
-// CHECK-NOT: llvm.linkage
-func.func @drop_linkage_attr() -> (memref<f32> {test.returnOne}) attributes { llvm.linkage = #llvm.linkage<external> } {
- %0 = memref.alloc() : memref<f32>
- return %0 : memref<f32>
-}
----------------
joker-eph wrote:
I don't think we need the hardcoded filter, but we may want to have more of the `llvm` prefixed attributes to be specifically handled in the conversion.
https://github.com/llvm/llvm-project/pull/182987
More information about the Mlir-commits
mailing list