[all-commits] [llvm/llvm-project] 635029: [mlir][llvm] Make some debug info attribute parame...

Tobias Gysi via All-commits all-commits at lists.llvm.org
Fri Nov 18 00:43:28 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 63502901ca448ea0710c83332512a8d73144f496
      https://github.com/llvm/llvm-project/commit/63502901ca448ea0710c83332512a8d73144f496
  Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
  Date:   2022-11-18 (Fri, 18 Nov 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td
    M mlir/lib/Target/LLVMIR/DebugTranslation.cpp
    M mlir/test/Dialect/LLVMIR/debuginfo.mlir
    M mlir/test/Target/LLVMIR/llvmir-debug.mlir

  Log Message:
  -----------
  [mlir][llvm] Make some debug info attribute parameters optional.

The revision makes specific debug information attribute parameters
optional since some of them can be omitted in LLVMIR. The additional
flexibility enables a later revision that will support importing
debug information from LLVMIR. A special case is the types parameter
of the SubroutineTypeAttr. For void functions, its first entry is
null in LLVMIR. This revision splits the type parameter in an optional
resultType parameter and an argumentTypes array to support this corner
case.

Reviewed By: rriddle

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




More information about the All-commits mailing list