[Mlir-commits] [mlir] [MLIR][OpenMP]Add order-modifier support to Order clause (PR #93805)
Sergio Afonso
llvmlistbot at llvm.org
Fri Jun 14 07:46:42 PDT 2024
================
@@ -459,6 +459,17 @@ def LoopNestOp : OpenMP_Op<"loop_nest", [SameVariadicOperandSize,
let hasVerifier = 1;
}
+def OMP_OrderModReproducible : I32EnumAttrCase<"reproducible", 0>;
+def OMP_OrderModUnconstrained : I32EnumAttrCase<"unconstrained", 1>;
+def OrderModifier
+ : I32EnumAttr<"OrderModifier", "OpenMP Order Modifier",
+ [OMP_OrderModReproducible, OMP_OrderModUnconstrained]> {
+ let genSpecializedAttr = 0;
+ let cppNamespace = "::mlir::omp";
+}
+def OrderModifierAttr : EnumAttr<OpenMP_Dialect, OrderModifier,
+ "order_mod">;
+
----------------
skatrak wrote:
I think this should go into OpenMPEnums.td.
https://github.com/llvm/llvm-project/pull/93805
More information about the Mlir-commits
mailing list