Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically translate C++ into IPR and back #137

Open
spaanse opened this issue Mar 8, 2021 · 2 comments
Open

Automatically translate C++ into IPR and back #137

spaanse opened this issue Mar 8, 2021 · 2 comments

Comments

@spaanse
Copy link

spaanse commented Mar 8, 2021

In the paper is is mentioned that

We generate IPR from two compiler frontends[6, 9]
...
[6] The Edison Design Group.http://www.edg.com/.
[9] GNU Compiler Collection.http://gcc.gnu.org/.

The two links don't specify how to generate IPR, they are just links to the frontends.
Is there anywhere I can find how to transform C++ code automatically into IPR and back?

@GabrielDosReis
Copy link
Owner

The two links don't specify how to generate IPR, they are just links to the frontends.

Those were the original projects we worked on, hooking IPR into GCC and EDG frontends. The GCC option for dumping a translation unit into a format (on-disk) that was eventually read into IPR was eventually removed from recent GCC. The integration of the IPR to EDG was never contributed back to EDG so it is not part of that front-end.

There is a recent effort within Microsoft to build IPR from the Clang AST, and build IPR from the MSVC compiler. More on the later in coming months. See also my keynote talk at Meeting C+ 2020.

You might also be interested in this community request - upvote it if it would be useful for your development scenarios

@herrgahr
Copy link

herrgahr commented Jan 4, 2022

Right, this answers to C++ -> IPR question. I'm perusing the issues because I am interested in the IPR -> C++ direction, just like OP.

I'm working on codegen tools and I think it might be beneficial to build IPR and then translate that IPR to C++.

AFAICT there is nothing like this hiding in the src tree.

Are there any plans, implementations or prototypes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants