[Mlir-commits] [mlir] [mlir] Add `Operation::dumpPrettyPrinted` (PR #120117)

weiwei chen llvmlistbot at llvm.org
Mon Dec 16 14:54:44 PST 2024


weiweichen wrote:

> For me, the #1 usecase is when working on mlir that is under construction when in LLDB. E.g. working on building a funciton, it has no terminator, it's like "please just dump it, not in the horrible way". I'm not sure how well LLDB works with default arguments these days, but this would definitely reduce my suffering on a near daily basis if we had it :-)

lldb doesn't seem to able to pick up the default arguments. I asked our in-house lldb expert @walter-erquinigo who said that "expr eval is based on the information on DWARF, and not on source code, so it doesn’t know your .h files". I don't think I want to change the behavior of `Operation::dump()`. Maybe I shall get back to the `Operation::dumpPrettyPrinted()` API?

https://github.com/llvm/llvm-project/pull/120117


More information about the Mlir-commits mailing list