[Mlir-commits] [flang] [mlir] [flang][mlir] Add checks and test for linear clause on omp.wsloop and omp.simd (PR #174916)
Tom Eccles
llvmlistbot at llvm.org
Thu Jan 8 03:08:47 PST 2026
================
@@ -2665,6 +2665,11 @@ convertOmpWsloop(Operation &opInst, llvm::IRBuilderBase &builder,
if (!wsloopOp.getLinearVars().empty()) {
auto linearVarTypes = wsloopOp.getLinearVarTypes().value();
+ if (linearVarTypes.size() != wsloopOp.getLinearVars().size()) {
+ wsloopOp->emitError("Ill-formed type attributes for linear variables");
+ return failure();
+ }
----------------
tblah wrote:
Perhaps this belongs in the operation verifier?
https://github.com/llvm/llvm-project/pull/174916
More information about the Mlir-commits
mailing list