[Mlir-commits] [clang] [flang] [mlir] [Flang][Driver] Added support for -funique-internal-linkage-names option (PR #216680)
Tarun Prabhu
llvmlistbot at llvm.org
Mon Aug 24 07:15:45 PDT 2026
================
@@ -0,0 +1,20 @@
+! Test that -funique-internal-linkage-names appends a .__uniq. hash suffix
+! to internal procedures at the FIR level.
+
+! RUN: %flang_fc1 -emit-fir -funique-internal-linkage-names -o - %s | FileCheck %s
+
+! CHECK-LABEL: func.func @_QPtest
+! CHECK: fir.call @_QFtestPfoo.__uniq.{{[0-9]+}}
+
+! CHECK: func.func private @_QFtestPfoo.__uniq.{{[0-9]+}}
+! CHECK-SAME: attributes {fir.host_symbol = @_QPtest, llvm.linkage = #llvm.linkage<internal>}
+
+subroutine test(x)
+ integer, intent(inout) :: x
----------------
tarunprabhu wrote:
nit: If this test will work with empty subroutines that do not take any arguments, we might as well keep things simple.
https://github.com/llvm/llvm-project/pull/216680
More information about the Mlir-commits
mailing list