[Mlir-commits] [mlir] [MLIR] Add options to generate-runtime-verification to enable faster pass running (PR #160331)
Matthias Springer
llvmlistbot at llvm.org
Fri Oct 3 00:10:43 PDT 2025
================
@@ -36,10 +44,47 @@ void GenerateRuntimeVerificationPass::runOnOperation() {
ops.push_back(verifiableOp);
});
+ // Create error message generator based on verboseLevel
+ auto errorMsgGenerator = [vLevel = verboseLevel.getValue()](
+ Operation *op, StringRef msg) -> std::string {
+ std::string buffer;
+ llvm::raw_string_ostream stream(buffer);
+ OpPrintingFlags flags;
----------------
matthias-springer wrote:
Flags are used only for `vLevel = 2`, move into the `if` check.
https://github.com/llvm/llvm-project/pull/160331
More information about the Mlir-commits
mailing list