[flang-commits] [flang] [mlir] [flang][FIR] Represent fir.global linkage with a typed enum attribute (PR #220243)

Scott Manley via flang-commits flang-commits at lists.llvm.org
Tue Sep 1 06:21:45 PDT 2026


================
@@ -80,7 +80,7 @@ static bool hasAccDeclareGlobals(ModuleOp mod) {
 static void makeDeviceGlobalDeclaration(Operation &globalOp) {
   globalOp.setInherentAttr(StringAttr::get(globalOp.getContext(), "initVal"),
                            {});
-  globalOp.setInherentAttr(StringAttr::get(globalOp.getContext(), "linkName"),
+  globalOp.setInherentAttr(StringAttr::get(globalOp.getContext(), "linkage"),
----------------
rscottmanley wrote:

I wasn't able to find if this was meaningfully used in some way, is that intentional? @razvanlupusoru 

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


More information about the flang-commits mailing list