Skip to content

[flang][OpenMP] Further handling of target ... do fixup logic #115

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

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

ergawy
Copy link

@ergawy ergawy commented Jul 11, 2024

Cloning hlfir.declare ops during fix up can result in type mismatches. For example, a fir.ref<fir.array<...>> variable is mapped a s fir.box<fir.array<...>> which results in the fix up logic creating invalid IR. This PR fixes the issue by avoiding cloning hlfir.declare ops in the first place since they are specially handled during the fix-up process.

Cloning `hlfir.declare` ops during fix up can result in type mismatches.
For example, a `fir.ref<fir.array<...>>` variable is mapped a s
`fir.box<fir.array<...>>` which results in the fix up logic creating
invalid IR. This PR fixes the issue by avoiding cloning `hlfir.declare`
ops in the first place since they are specially handled during the
fix-up process.
@ergawy ergawy requested review from skatrak and dpalermo July 11, 2024 05:14
Copy link
Member

@skatrak skatrak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM!

@ergawy ergawy merged commit e8b67b7 into ROCm:amd-trunk-dev Jul 11, 2024
3 of 5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants