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

Enhanced functionality: advanced nesting of rewriters #9

Open
pjljvandelaar opened this issue Jan 28, 2022 · 0 comments
Open

Enhanced functionality: advanced nesting of rewriters #9

pjljvandelaar opened this issue Jan 28, 2022 · 0 comments

Comments

@pjljvandelaar
Copy link
Collaborator

pjljvandelaar commented Jan 28, 2022

Our current rewrite lib has some limitations.

For example, currently we don't support the following rewrite

use element instead of index when index is only used to access elements

To be more precise:
Replace
for $S_I in $S_A'Range loop $M_Stmts; end loop;
when
$M_Stmts; only uses $S_I in $S_A ($S_I)
by
for Element of $S_A loop <$M_Stmts;> end loop;
where
<$M_Stmts;> is obtained by replacing $S_A ($S_I) by Element in $M_Stmts;

Can we come up with an interface that is clear for our users
and enables them to perform these kind of nested rewrites?

@pjljvandelaar pjljvandelaar changed the title Enhanced functionality: advantaged nesting of rewriters Enhanced functionality: advanced nesting of rewriters Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant