[clang] [llvm] [Clang][OpenMP] Implement Loop splitting `#pragma omp split` directive (PR #183261)

Amit Tiwari via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 13 06:52:35 PDT 2026


================
@@ -228,6 +228,10 @@ void CodeGenFunction::EmitStmt(const Stmt *S, ArrayRef<const Attr *> Attrs) {
   case Stmt::OMPReverseDirectiveClass:
     EmitOMPReverseDirective(cast<OMPReverseDirective>(*S));
     break;
+  case Stmt::OMPSplitDirectiveClass:
+    llvm_unreachable(
+        "OMPSplitDirective handled by EmitSimpleOMPExecutableDirective");
----------------
amitamd7 wrote:

Addressed. Split is now handled in a dedicated case that calls `EmitOMPSplitDirective`, which further uses `EmitStmt(S.getTransformedStmt())` for codegen

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


More information about the cfe-commits mailing list