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

Generate IR definitions by annotation processor #11498

Open
Akirathan opened this issue Nov 6, 2024 · 0 comments · May be fixed by #11267
Open

Generate IR definitions by annotation processor #11498

Akirathan opened this issue Nov 6, 2024 · 0 comments · May be fixed by #11267
Assignees

Comments

@Akirathan
Copy link
Member

In the current definition of the IR, there is a hierarchy of traits and case classes. Majority of the code inside these case classes is highly repetitive.

There is PoC in #11267 that already contains the definitions of the annotations and the processor.

The ultimate goal of this task is to:

  • Replace the Scala trait hierarchy with Java interface hierarchy
  • Replace Scala case classes by automatically generated Java classes.
  • Ensure that all the changes are compatible, that is, all the code inside runtime-compiler that manipulates with IR either stays completely the same, or is changed just cosmetically, like adding few more named arguments to a method call that previously had a default value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔧 Implementation
Development

Successfully merging a pull request may close this issue.

1 participant