[MLIR] Avoid adding debuginfo for a function if it contains calls that has no debug...
authorTim Shen <timshen@google.com>
Wed, 23 Sep 2020 06:36:08 +0000 (23:36 -0700)
committerTim Shen <timshen@google.com>
Tue, 29 Sep 2020 20:51:56 +0000 (13:51 -0700)
commitf0506e4923cdbd2b53258bc6c3a2b6bc62c8ccc3
treea3c11dc02cd608d106d10efbcffc761887250c98
parent01a30fa6787d8375e1df573150f9927561b0a0f1
[MLIR] Avoid adding debuginfo for a function if it contains calls that has no debug info.

Also add a verifier pass to ExecutionEngine.

It's hard to come up with a test case, since mlir-opt always add location info after parsing it (?)

Differential Revision: https://reviews.llvm.org/D88135
mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp
mlir/lib/Target/LLVMIR/DebugTranslation.cpp
mlir/test/Target/llvmir-debug.mlir