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

[clang][OpenMP] Add AST nodes for opaque block/loop directives #118876

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kparzysz
Copy link
Contributor

@kparzysz kparzysz commented Dec 5, 2024

Add two new AST nodes:

  1. OMPOpaqueBlockDirective representing an executable directive not associated with a loop, and
  2. OMPOpaqueLoopDirective representing an executable directive associated with a loop.

This is an indermediate step towards treating compound directives as a sequece of either leaf or composite directives. The break-up of compound directives into these constituents may be impossible in a template, since the identity of objects referenced in clauses may be impossible to establish.
When an executable directive is encountered in a function template, it will be represented by one of the new AST nodes, depending on its association. When the template is instantiated, these AST nodes will replaced with the AST nodes used in non-templates.

Add two new AST nodes:
1. `OMPOpaqueBlockDirective` representing an executable directive
not associated with a loop, and
2. `OMPOpaqueLoopDirective` representing an executable directive
associated with a loop.

This is an indermediate step towards treating compound directives as
a sequece of either leaf or composite directives. The break-up of
compound directives into these constituents may be impossible in a
template, since the identity of objects referenced in clauses may
be impossible to establish.
When an executable directive is encountered in a function template, it
will be represented by one of the new AST nodes, depending on its
association. When the template is instantiated, these AST nodes will
replaced with the AST nodes used in non-templates.
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.

1 participant