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

AlgorithmInvokeCall does not report variable usage properly #2867

Open
hiker opened this issue Jan 22, 2025 · 0 comments
Open

AlgorithmInvokeCall does not report variable usage properly #2867

hiker opened this issue Jan 22, 2025 · 0 comments
Labels

Comments

@hiker
Copy link
Collaborator

hiker commented Jan 22, 2025

While implementing a trans_alg function, I tried running the VariablesAccessInfo. But the actual invoke did not add its parameters at all, it only reported the kernel types, e.g.:

            call invoke(count_neighbours(neighbours, current),   &
                        compute_born(born, current, neighbours), &
                        compute_die(die, current, neighbours),   &
                        combine(current, die, born),             &
                        name="compute"    )

would report count_neighbours, compute_born, ... - but not the actual parameters neighbours, born etc.

I even tried calling lower_to_language_level, and it didn't help either.

I believe all we need to do is add a custom reference_accesses function for the AlgorithmInvokeCall (?)

@hiker hiker added the bug label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant