[PATCH] D89218: [DebugInfo] Support for DW_TAG_generic_subrange

Alok Kumar Sharma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 11 23:30:37 PDT 2020


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

    This is needed to support fortran assumed rank arrays which
    have runtime rank.
  
  Summary:

Fortran assumed rank arrays have dynamic rank. DWARF TAG
DW_TAG_generic_subrange is needed to support that.

  Testing:

unit test cases added (hand-written)
check llvm
check debug-info


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89218

Files:
  llvm/include/llvm-c/DebugInfo.h
  llvm/include/llvm/Bitcode/LLVMBitCodes.h
  llvm/include/llvm/IR/DIBuilder.h
  llvm/include/llvm/IR/DebugInfoMetadata.h
  llvm/include/llvm/IR/Metadata.def
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/Bitcode/Reader/MetadataLoader.cpp
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
  llvm/lib/IR/AsmWriter.cpp
  llvm/lib/IR/DIBuilder.cpp
  llvm/lib/IR/DebugInfoMetadata.cpp
  llvm/lib/IR/LLVMContextImpl.h
  llvm/lib/IR/Verifier.cpp
  llvm/test/Bitcode/generic_subrange.ll
  llvm/test/Bitcode/generic_subrange_count.ll
  llvm/test/DebugInfo/X86/dwarfdump-generic_subrange.ll
  llvm/test/DebugInfo/X86/dwarfdump-generic_subrange_count.ll
  llvm/test/Verifier/digenericsubrange-count-upperBound.ll
  llvm/test/Verifier/digenericsubrange-missing-stride.ll
  llvm/test/Verifier/digenericsubrange-missing-upperBound.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89218.297500.patch
Type: text/x-patch
Size: 40859 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201012/ab94b0b8/attachment-0001.bin>


More information about the llvm-commits mailing list