[llvm] [RemoveDIs] Print non-intrinsic debug info in textual IR output (PR #79281)

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 24 07:51:23 PST 2024


SLTozer wrote:

> Why is the syntax `#dbg_value {}` rather than `#dbg_value()`? The arguments are positional, right?

As @phyBrackets mentioned the goal is purely for visual distinction - it would be possible to use parentheses instead. We do use curly braces in contexts where we expect ordered/positional arguments, as with structs and some non-specialized MDNodes; ultimately though it's a minor detail and can easily be changed if there's a strong preference for either option.

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


More information about the llvm-commits mailing list