[clang] [llvm] OpenMP offload 'simd' directive (PR #91261)

Johannes Doerfert via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 27 16:33:59 PDT 2024


================
@@ -2974,10 +2974,8 @@ StmtResult Parser::ParseOpenMPDeclarativeOrExecutableDirective(
         Sema::CompoundScopeRAII Scope(Actions);
         AssociatedStmt = ParseStatement();
 
-        if (AssociatedStmt.isUsable() && isOpenMPLoopDirective(DKind) &&
-            getLangOpts().OpenMPIRBuilder)
-          AssociatedStmt =
-              Actions.OpenMP().ActOnOpenMPLoopnest(AssociatedStmt.get());
+        if (AssociatedStmt.isUsable() && isOpenMPLoopDirective(DKind))
+          AssociatedStmt = Actions.OpenMP().ActOnOpenMPLoopnest(AssociatedStmt.get());
----------------
jdoerfert wrote:

Can we just always call this now? Even if, do we need to? I mean, the only time you really need it is a standalone SIMD directive for target, right?

https://github.com/llvm/llvm-project/pull/91261


More information about the cfe-commits mailing list