[PATCH] D79484: [DebugInfo] Fortran module DebugInfo support in LLVM

Sourabh Singh Tomar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 6 05:52:44 PDT 2020


SouraVX created this revision.
SouraVX added reviewers: aprantl, probinson, jini.susan.george.
SouraVX added a project: debug-info.
Herald added subscribers: llvm-commits, ormris, hiraditya.
Herald added a reviewer: DavidTruby.
Herald added a reviewer: sscalpone.
Herald added a project: LLVM.

This patch extends DIModule Debug metadata in LLVM to support Fortran modules. DIModule is extended to contain `File` and `Line` fields, these fields will be used by Flang FE to create debug information  necessary for representing Fortran modules at IR level.
Furthermore `DW_TAG_module` is also extended to contain these fields. If these fields are missing, debuggers like GDB
won't be able to show Fortran modules information correctly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79484

Files:
  llvm/include/llvm/IR/DIBuilder.h
  llvm/include/llvm/IR/DebugInfoMetadata.h
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/Bitcode/Reader/MetadataLoader.cpp
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  llvm/lib/IR/AsmWriter.cpp
  llvm/lib/IR/DIBuilder.cpp
  llvm/lib/IR/DebugInfoMetadata.cpp
  llvm/lib/IR/LLVMContextImpl.h
  llvm/test/DebugInfo/X86/Fortran-DIModule.ll
  llvm/unittests/IR/MetadataTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79484.262349.patch
Type: text/x-patch
Size: 17918 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200506/0f9f60c2/attachment-0001.bin>


More information about the llvm-commits mailing list