[mlir][llvmir] Add filename debug info when converting from LLVMIR.
authorTobias Gysi <tobias.gysi@nextsilicon.com>
Mon, 3 Oct 2022 12:13:26 +0000 (15:13 +0300)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Mon, 3 Oct 2022 12:14:37 +0000 (15:14 +0300)
commit12b68ad886a1defbee8b553702b389ec54f98256
tree1f55c6a7f25d970747a15265a6bcc9f94b80422c
parent1774a8a7639a4f63462795f306e5510dacddeb34
[mlir][llvmir] Add filename debug info when converting from LLVMIR.

The revision enriches the debug locations generated during LLVMIR to MLIR translation with file name information and adds a separate test to exercise the debug location translation.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D135069
mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
mlir/test/Target/LLVMIR/Import/basic.ll
mlir/test/Target/LLVMIR/Import/debug-info.ll [new file with mode: 0644]