[clang] [OpenMP] Add runtime selection for metadirective with non-constant conditions. (PR #192455)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 17 11:46:25 PDT 2026
================
@@ -6374,28 +6374,70 @@ class OMPMaskedDirective final : public OMPExecutableDirective {
///
class OMPMetaDirective final : public OMPExecutableDirective {
friend class ASTStmtReader;
+ friend class ASTStmtWriter;
friend class OMPExecutableDirective;
- Stmt *IfStmt;
+ unsigned NumVariants;
+ OpenMPDirectiveKind *DirectiveKinds;
+ Expr **Conditions;
+ Stmt **VariantDirectives;
----------------
alexey-bataev wrote:
These should be tail allocated, otherwise children cannot be build correctly
https://github.com/llvm/llvm-project/pull/192455
More information about the cfe-commits
mailing list