[all-commits] [llvm/llvm-project] 5bbf07: [mlir][llvm] Make name optional for DIBasicTypeAtt...

Tobias Gysi via All-commits all-commits at lists.llvm.org
Sun Mar 8 08:04:45 PDT 2026


  Branch: refs/heads/users/gysit/make-di-type-name-optional
  Home:   https://github.com/llvm/llvm-project
  Commit: 5bbf07fe6eec3ae4842f22a2aba61821b7d926e4
      https://github.com/llvm/llvm-project/commit/5bbf07fe6eec3ae4842f22a2aba61821b7d926e4
  Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
  Date:   2026-03-08 (Sun, 08 Mar 2026)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td
    M mlir/lib/Target/LLVMIR/DebugImporter.cpp
    M mlir/test/Target/LLVMIR/Import/debug-info.ll
    M mlir/test/Target/LLVMIR/llvmir-debug.mlir

  Log Message:
  -----------
  [mlir][llvm] Make name optional for DIBasicTypeAttr and DIStringTypeAttr

The name field of DICompositeTypeAttr was already optional, but
DIBasicTypeAttr and DIStringTypeAttr were not handled consistently.
Make the name parameter of both an OptionalParameter to support LLVM
debug info nodes with no name. Update DebugImporter to use
getStringAttrOrNull when translating the name of these types. Add
tests for the null-name cases in the import and export test files.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list