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

Encode C/C++ constness in CIR #866

Open
Lancern opened this issue Sep 19, 2024 · 1 comment
Open

Encode C/C++ constness in CIR #866

Lancern opened this issue Sep 19, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Lancern
Copy link
Member

Lancern commented Sep 19, 2024

This was originally posted in the Discord channel by OfekShilon. The original message:

Hi! I hope this is an appropriate place to ask/suggest:

Are there plans to have CIR encode C/C++ constness? LLVM-IR doesn't, and quite a few optimizations are inhibited as a result.

I'm aware of one old (2015) attempt to tackle it in LLVM-IR: https://docs.google.com/document/d/112O-Q_XrbrU1I4P-oiLCN9u86Qg_BYBdcDsmh7Pn9Nw/edit#heading=h.trjqebywdvx4 which never made it upstream.

This might be a great opportunity to demonstrate concrete added value of cir over llvm-ir.

@Lancern Lancern added the enhancement New feature or request label Sep 19, 2024
@bcardosolopes
Copy link
Member

bcardosolopes commented Sep 19, 2024

Thanks for tracking this. It'd be cool to have, in the meantime, this is also doable by looking at AST attached to the operations

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

No branches or pull requests

2 participants