[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
================
@@ -433,6 +433,47 @@ static void printScheduleClause(OpAsmPrinter &p, Operation *op,
p << ", simd";
}
+//===----------------------------------------------------------------------===//
+// Parser and printer for Order Clause
+//===----------------------------------------------------------------------===//
+
+// order ::= `order` `(` [order-modifier ':'] concurrent `)`
+// order-modifier ::= reproducible | unconstrained
+static ParseResult parseOrderClause(OpAsmParser &parser,
+ ClauseOrderKindAttr &kindAttr,
+ OrderModifierAttr &modifierAttr) {
+ using OrderKindT = decltype(std::declval<ClauseOrderKindAttr>().getValue());
+ using OrderModifierT = decltype(std::declval<OrderModifierAttr>().getValue());
----------------
skatrak wrote:
What's the purpose of these aliases? I can't see any uses.
https://github.com/llvm/llvm-project/pull/93805
More information about the Mlir-commits
mailing list