[clang] [CIR] [OpenMP] Implement codegen for OpenMP `master` directive (PR #238260)
Steffen Larsen via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 3 03:56:37 PST 2026
================
@@ -105,6 +105,24 @@ emitParallelOp(CIRGenFunction &cgf, const DirectiveTy &s,
return res;
}
+static mlir::LogicalResult
+emitMasterOp(CIRGenFunction &cgf, mlir::Location begin, mlir::Location end,
+ llvm::function_ref<mlir::LogicalResult()> emitBody) {
----------------
steffenlarsen wrote:
Is there a reason we don't make this a member of `CIRGenFunction` instead of passing it along as a reference?
Do we expect this function to be used elsewhere? If not, it would make more sense to inline it into `emitOMPParallelDirective`.
https://github.com/llvm/llvm-project/pull/238260
More information about the cfe-commits
mailing list