Giter Club home page Giter Club logo

Comments (2)

mewmew avatar mewmew commented on May 26, 2024

Hej Gustav,

I would love to have specialized metadata nodes added to the grammar as that would provide access to DWARF metadata information. Last autumn we did some initial attempts to define the grammar, but the work is yet to be completed. Currently it is living in the specialized-metadata-nodes branch of the grammar repository. Here's a diff against the current version of the grammar: llir/grammar@59372ef

As you can see, we have tried to provide a generic grammar for parsing the specialized metadata nodes, even if this is not how the C++ parser was implemented. Perhaps it will work, perhaps not. The intention is to parse the AST into some high level representation of the DWARF debug data, but that step will happen after the grammar has been defined.

Some unfinished work can also be seen here, where we took the approach to add each specialized metadata node directly to the grammar, instead of having a generic representation: https://gist.github.com/mewmew/ae0633dc41f38b0fcaa9da79d52c6914

We most definitely welcome any input on this topic, as we feel quite stuck in deciding what seems to be the right approach to take.

Looking forward to hearing back from you.

Glada hälsningar,
Robin och Daniel :)

from llvm.

mewmew avatar mewmew commented on May 26, 2024

As of rev 156ab38, llir/llvm has support for specialized metadata nodes.

Closing this issue. If you notice any issues, just re-open this one, or open a new issue and report back.

from llvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.