[Mlir-commits] [mlir] [MLIR][OpenMP] Lowering support for Order clause in SIMD directive (PR #96866)
Sergio Afonso
llvmlistbot at llvm.org
Thu Jun 27 02:26:55 PDT 2024
================
@@ -1543,7 +1543,9 @@ convertOmpSimd(Operation &opInst, llvm::IRBuilderBase &builder,
loopInfo, alignedVars,
simdOp.getIfExpr() ? moduleTranslation.lookupValue(simdOp.getIfExpr())
: nullptr,
- llvm::omp::OrderKind::OMP_ORDER_unknown, simdlen, safelen);
+ simdOp.getOrderVal() ? llvm::omp::OrderKind::OMP_ORDER_concurrent
+ : llvm::omp::OrderKind::OMP_ORDER_unknown,
----------------
skatrak wrote:
Isn't it technically possible to do `omp.simd order(unknown) { ... }`? Maybe you can add a test for that and potentially modify this to make sure it works too.
https://github.com/llvm/llvm-project/pull/96866
More information about the Mlir-commits
mailing list