[mlir][llvm] Use before def debug intrinsic import
authorChristian Ulmann <christian.ulmann@nextsilicon.com>
Thu, 16 Feb 2023 14:44:05 +0000 (15:44 +0100)
committerChristian Ulmann <christian.ulmann@nextsilicon.com>
Thu, 16 Feb 2023 14:49:23 +0000 (15:49 +0100)
commit28542e99bb82b32dfc80ad372fcde3a016a8ca0b
tree3ac3e242a7681d73129f9fbd5f8c14f55cd0e425
parent8421307b6b165778260b9814ca4d2256bc3711df
[mlir][llvm] Use before def debug intrinsic import

This commit adds special handling for the debug intrinsic value
handling. LLVM allows to relax the def before use property for debug
intrinsics, so this property cannot be assumed for metadata values.

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D144177
mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
mlir/include/mlir/Target/LLVMIR/ModuleImport.h
mlir/lib/Target/LLVMIR/ModuleImport.cpp
mlir/test/Target/LLVMIR/Import/debug-info.ll