[mlir][llvm] Rename void debug type to null
authorChristian Ulmann <christian.ulmann@nextsilicon.com>
Thu, 16 Feb 2023 10:36:34 +0000 (11:36 +0100)
committerChristian Ulmann <christian.ulmann@nextsilicon.com>
Thu, 16 Feb 2023 11:13:24 +0000 (12:13 +0100)
commit873ea45115a8e5ed1065d6aaad8f41fe6120cac8
treec1c6e00d49775717b66f53b07e065a46f474329a
parentc76acb9dffec2f318f3fafe111c5255ca4e1b309
[mlir][llvm] Rename void debug type to null

This commit renames the "di_void_result_type" to "di_null_type" as LLVM
does use null not exclusively for void types. An added test demonstrates
this for variadic function declarations, whose DISubroutine indicates the
start of variadic types with `null`.

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D144109
mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td
mlir/lib/Dialect/LLVMIR/IR/LLVMAttrs.cpp
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Target/LLVMIR/DebugImporter.cpp
mlir/lib/Target/LLVMIR/DebugTranslation.cpp
mlir/lib/Target/LLVMIR/DebugTranslation.h
mlir/test/Dialect/LLVMIR/debuginfo.mlir
mlir/test/Dialect/LLVMIR/invalid.mlir
mlir/test/Target/LLVMIR/Import/debug-info.ll
mlir/test/Target/LLVMIR/llvmir-debug.mlir