[Mlir-commits] [mlir] [mlir][flang] Improve handling of fortran module variables. (PR #91604)
Kiran Chandramohan
llvmlistbot at llvm.org
Fri May 10 03:19:21 PDT 2024
================
@@ -1029,11 +1029,17 @@ LogicalResult ModuleTranslation::convertGlobals() {
debugTranslation->translateGlobalVariableExpression(op.getDbgExpr());
llvm::DIGlobalVariable *diGlobalVar = diGlobalExpr->getVariable();
var->addDebugInfo(diGlobalExpr);
+ // For fortran, the scope hierarchy can be
+ // variable -> module -> compile unit
----------------
kiranchandramohan wrote:
Or alternatively,
-> remove the mention of Fortran. Just say that this hierarchy is allowed for languages supporting modules.
-> For Modula 2, Fortran like languages
https://github.com/llvm/llvm-project/pull/91604
More information about the Mlir-commits
mailing list