[all-commits] [llvm/llvm-project] e59744: [DebugInfo] Fortran module DebugInfo support in LLVM

Sourabh Singh Tomar via All-commits all-commits at lists.llvm.org
Wed May 13 00:37:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e59744fd9b4298c0527163748510a482a942eb54
      https://github.com/llvm/llvm-project/commit/e59744fd9b4298c0527163748510a482a942eb54
  Author: Sourabh Singh Tomar <SourabhSingh.Tomar at amd.com>
  Date:   2020-05-13 (Wed, 13 May 2020)

  Changed paths:
    M llvm/include/llvm/IR/DIBuilder.h
    M llvm/include/llvm/IR/DebugInfoMetadata.h
    M llvm/lib/AsmParser/LLParser.cpp
    M llvm/lib/Bitcode/Reader/MetadataLoader.cpp
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
    M llvm/lib/IR/AsmWriter.cpp
    M llvm/lib/IR/DIBuilder.cpp
    M llvm/lib/IR/DebugInfoMetadata.cpp
    M llvm/lib/IR/LLVMContextImpl.h
    M llvm/test/Assembler/dimodule.ll
    A llvm/test/Bitcode/DIModule-clang-module.ll
    A llvm/test/Bitcode/DIModule-clang-module.ll.bc
    A llvm/test/Bitcode/DIModule-fortran-module.ll
    A llvm/test/Bitcode/DIModule-fortran-module.ll.bc
    A llvm/test/DebugInfo/X86/Fortran-DIModule.ll
    M llvm/unittests/IR/MetadataTest.cpp

  Log Message:
  -----------
  [DebugInfo] Fortran module DebugInfo support in 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.

Reviewed By: aprantl

Differential Revision: https://reviews.llvm.org/D79484




More information about the All-commits mailing list