[LLVMdev] First-class debug info IR: MDLocation (original) (raw)

Chandler Carruth chandlerc at google.com
Mon Oct 27 01:19:11 PDT 2014


Separate reply as the topics seem to have very little in common...

On Fri, Oct 24, 2014 at 4:16 PM, Duncan P. N. Exon Smith < dexonsmith at apple.com> wrote:

Making debug info assembly readable and writable ================================================

Moreover, we're now in a place where it's trivial to express the "context" pointer structurally. Here's the same debug info as above, using syntactic sugar to fill the "context" pointers:

FWIW, this doesn't make a huge difference to me in terms of readability other than avoiding ordering problems....

Bike sheds to paint

===================

1. Should we trim some boilerplate? E.g., it would be trivial to change: !6 = metadata MDLocation(line: 43, column: 7, scope: !4) to: !6 = MDLocation(line: 43, column: 7, scope: !4) This would not complicate LLParser. Thoughts?

If it is metadata, it should use 'metadata'. The boiler plate isn't the problem here IMO.

2. Which of the two "end goal" syntaxes is better: flat, or hierarchical? Better for what? Why?

Some points that might simplify things:

Hope these thoughts help formulate even better looking IR. Not specifically trying to change any part of this patch or any other single patch. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141027/bd2f8faa/attachment.html>



More information about the llvm-dev mailing list