[Mlir-commits] [mlir] [MLIR][LLVM] LLVM import should use is isDSOLocal instead of hasLocalLinkage to set dso_local attribute (PR #124822)
Tobias Gysi
llvmlistbot at llvm.org
Tue Jan 28 11:36:09 PST 2025
================
@@ -7,3 +7,13 @@
; CHECK-NOT: res_attrs
; CHECK-SAME: }>
declare ptr @func_no_param_attrs()
+
+; Ensure that we have dso_local
+; CHECK: "llvm.func"()
+; CHECK-SAME: <{
+; CHECK-SAME: dso_local
+; CHECK-SAME: "dsolocal_func"
+; CHECK-SAME: }>
+define dso_local void @dsolocal_func() {
----------------
gysit wrote:
Was there a specific reason to test this using the generic rather than the pretty printed format?
I would prefer to move the test to `function-attributes.ll` where the other attributes are tested.
https://github.com/llvm/llvm-project/pull/124822
More information about the Mlir-commits
mailing list