[all-commits] [llvm/llvm-project] d20bf5: [DebugInfo] Upgrade DISubrange to support Fortran ...

Alok Kumar Sharma via All-commits all-commits at lists.llvm.org
Thu May 28 01:17:48 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d20bf5a7258d4b6a7f017a81b125275dac1aa166
      https://github.com/llvm/llvm-project/commit/d20bf5a7258d4b6a7f017a81b125275dac1aa166
  Author: Alok Kumar Sharma <AlokKumar.Sharma at amd.com>
  Date:   2020-05-28 (Thu, 28 May 2020)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    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/CodeViewDebug.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.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/lib/IR/Verifier.cpp
    M llvm/test/Assembler/debug-info.ll
    M llvm/test/Assembler/disubrange-empty-array.ll
    M llvm/test/Assembler/invalid-disubrange-count-missing.ll
    M llvm/test/Bindings/llvm-c/debug_info.ll
    A llvm/test/Bitcode/fortranSubrange.ll
    A llvm/test/Bitcode/fortranSubrangeBackward.ll
    A llvm/test/Bitcode/fortranSubrangeBackward.ll.bc
    M llvm/test/DebugInfo/X86/default-subrange-array.ll
    M llvm/test/DebugInfo/X86/nondefault-subrange-array.ll
    A llvm/test/DebugInfo/cDefaultLower.ll
    A llvm/test/DebugInfo/fortranDefaultLower.ll
    A llvm/test/DebugInfo/fortranSubrangeExpr.ll
    A llvm/test/DebugInfo/fortranSubrangeInt.ll
    A llvm/test/DebugInfo/fortranSubrangeVar.ll
    A llvm/test/Verifier/disubrange-count-upperBound.ll
    A llvm/test/Verifier/disubrange-missing-upperBound.ll
    A llvm/test/Verifier/invalid-disubrange-lowerBound.ll
    A llvm/test/Verifier/invalid-disubrange-stride.ll
    A llvm/test/Verifier/invalid-disubrange-upperBound.ll
    M llvm/unittests/IR/MetadataTest.cpp

  Log Message:
  -----------
  [DebugInfo] Upgrade DISubrange to support Fortran dynamic arrays

This patch upgrades DISubrange to support fortran requirements.

Summary:
Below are the updates/addition of fields.
lowerBound - Now accepts signed integer or DIVariable or DIExpression,
earlier it accepted only signed integer.
upperBound - This field is now added and accepts signed interger or
DIVariable or DIExpression.
stride - This field is now added and accepts signed interger or
DIVariable or DIExpression.
This is required to describe bounds of array which are known at runtime.

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

Reviewed By: aprantl

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




More information about the All-commits mailing list