llvm-project
5f1cc61e - [clang][OpenMP] Add AST nodes for opaque block/loop directives

Commit
1 year ago
[clang][OpenMP] Add AST nodes for opaque block/loop directives 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.
Author
Committer
Parents
Loading