[mlir][llvm] Handle debug metadata arg lists during LLVM IR import.
authorTobias Gysi <tobias.gysi@nextsilicon.com>
Thu, 12 Jan 2023 15:10:58 +0000 (16:10 +0100)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Thu, 12 Jan 2023 15:13:50 +0000 (16:13 +0100)
commitbff31d0836bf2b25d6f5f899fc86f032e8ab79fc
tree66f4c219fe8e30867978f90da2c3ee84d1a52295
parent452115eaec6a493f8c8308b1eb2334100e2b6320
[mlir][llvm] Handle debug metadata arg lists during LLVM IR import.

Debug intrinsics may get an argument list as first parameter. Argument
lists are metadata nodes that refer to a list of SSA values and
constant that are needed to evaluate the debug expression attached to
the intrinsic.

We do currently not model these debug expressions in MLIR. This
revision thus makes sure debug intrinsics that get an argument list
as a first parameter are dropped. It also adds a test to verify
a warning is emitted.

Reviewed By: Dinistro

Differential Revision: https://reviews.llvm.org/D141468
mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
mlir/test/Target/LLVMIR/Import/import-failure.ll