Files
Raptor/src/PIM/Common/Support/DebugDump.hpp
T
ilgeco 1f4f58de1c
Validate Operations / validate-operations (push) Has been cancelled
A new Beginning
2026-07-07 18:28:37 +02:00

19 lines
589 B
C++

#pragma once
#include "mlir/IR/BuiltinOps.h"
#include "llvm/ADT/StringRef.h"
#include <fstream>
#include <string>
namespace onnx_mlir {
/// Emits a MLIR snapshot under the current compiler output
/// directory for pass-level debugging.
void dumpModule(mlir::ModuleOp moduleOp, const std::string& name, bool assumeVerified = false);
/// Opens a file under the same dialect dump directory used by dumpModule.
std::fstream openDialectDumpFileWithExtension(const std::string& name,llvm::StringRef destination = "/dialects", llvm::StringRef extension = "mlir");
} // namespace onnx_mlir