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

Christian Ulmann via All-commits all-commits at lists.llvm.org
Fri Jan 5 05:23:12 PST 2024


  Branch: refs/heads/users/dinistro/distinct-di-subprograms
  Home:   https://github.com/llvm/llvm-project
  Commit: 33ee6deadd6318adcfc45dba1d39bc38514bcd4b
      https://github.com/llvm/llvm-project/commit/33ee6deadd6318adcfc45dba1d39bc38514bcd4b
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2024-01-05 (Fri, 05 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.




More information about the All-commits mailing list