[Mlir-commits] [mlir] [mlir][LLVM][ROCDL] Add buffer oob mode module flags, flag interfaces (PR #202729)
Tobias Gysi
llvmlistbot at llvm.org
Thu Jun 11 04:24:18 PDT 2026
================
@@ -578,7 +577,24 @@ ModuleFlagAttr::verify(function_ref<InFlightDiagnostic()> emitError,
llvm::all_of(arrayAttr, [](Attribute a) { return isa<StringAttr>(a); }))
return success();
- return emitError() << "only integer, string, and string-array values are "
- "currently supported for unknown key '"
- << key << "'";
+ return emitError()
+ << "only integer, integer-like dialect attributes, string, "
+ "and string-array values are currently supported for "
+ "unknown key '"
+ << key << "'";
}
+
+LogicalResult
+ModuleFlagAttr::verify(function_ref<InFlightDiagnostic()> emitError,
+ LLVM::ModFlagBehavior flagBehavior, StringAttr key,
+ Attribute value) {
+ return LLVM::detail::verifyModuleFlagValue(key, value, emitError);
----------------
gysit wrote:
I wonder if we should drop this verifier since the ModuleFlagsOp verifier already does the job?
https://github.com/llvm/llvm-project/pull/202729
More information about the Mlir-commits
mailing list