[Mlir-commits] [mlir] [mlir] add MlirOptMain config callback for context configuration (PR #68228)
Ingo Müller
llvmlistbot at llvm.org
Thu Oct 5 05:49:21 PDT 2023
================
@@ -477,6 +477,14 @@ LogicalResult transform::detail::interpreterBaseInitializeImpl(
if (parsedTransformModule && failed(mlir::verify(*parsedTransformModule)))
return failure();
+ auto libraryRange = context->getOrLoadDialect<transform::TransformDialect>()
+ ->getLibraryModules();
+ if (!transformLibraryFileName.empty() && !libraryRange.empty()) {
+ return emitError((*libraryRange.begin()).getLoc())
+ << "library already supplied through the dialect, cannot parse "
+ "another library as requested by pass flags";
----------------
ingomueller-net wrote:
We could also allow both and merge the two libraries (as long as no symbols collide).
https://github.com/llvm/llvm-project/pull/68228
More information about the Mlir-commits
mailing list