[Mlir-commits] [mlir] [mlir][flang] Improve handling of fortran module variables. (PR #91604)
    Kiran Chandramohan 
    llvmlistbot at llvm.org
       
    Thu May  9 14:42:08 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:
Modules are there in C++ also these days. So can we say "In languages like C++, Fortran etc variables ..."
https://github.com/llvm/llvm-project/pull/91604
    
    
More information about the Mlir-commits
mailing list