[all-commits] [llvm/llvm-project] 39baae: [MLIR][LLVM] Add distinct identifier to the DISubp...

Christian Ulmann via All-commits all-commits at lists.llvm.org
Sun Jan 7 22:44:47 PST 2024


  Branch: refs/heads/users/dinistro/distinct-di-subprograms
  Home:   https://github.com/llvm/llvm-project
  Commit: 39baae19b6be8f180fbe19354b88da30fe2fb4c2
      https://github.com/llvm/llvm-project/commit/39baae19b6be8f180fbe19354b88da30fe2fb4c2
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2024-01-08 (Mon, 08 Jan 2024)

  Changed paths:
    M flang/lib/Optimizer/Transforms/AddDebugFoundation.cpp
    M flang/test/Transforms/debug-line-table-inc-file.fir
    M flang/test/Transforms/debug-line-table.fir
    M mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td
    M mlir/lib/Dialect/LLVMIR/Transforms/DIScopeForLLVMFuncOp.cpp
    M mlir/lib/Target/LLVMIR/DebugImporter.cpp
    M mlir/test/Dialect/LLVMIR/add-debuginfo-func-scope.mlir
    M mlir/test/Target/LLVMIR/Import/debug-info.ll
    M mlir/test/Target/LLVMIR/Import/global-variables.ll

  Log Message:
  -----------
  [MLIR][LLVM] Add distinct identifier to the DISubprogram attribute

This commit adds an optional distinct attribute parameter to the
DISubprogramAttr. This enables modeling of distinct subprograms, as
required for LLVM IR. This change is required to avoid accidential
uniquing of subprograms on functions that would lead to invalid LLVM IR
post export.


  Commit: 495efa93cda22ad606c59ba0fb86fcbac7ba33d6
      https://github.com/llvm/llvm-project/commit/495efa93cda22ad606c59ba0fb86fcbac7ba33d6
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2024-01-08 (Mon, 08 Jan 2024)

  Changed paths:
    M flang/lib/Optimizer/Transforms/AddDebugFoundation.cpp
    M mlir/lib/Dialect/LLVMIR/Transforms/DIScopeForLLVMFuncOp.cpp

  Log Message:
  -----------
  address review comments


Compare: https://github.com/llvm/llvm-project/compare/27ccb5544fb1...495efa93cda2


More information about the All-commits mailing list