diff options
author | Jacques Pienaar <jpienaar@google.com> | 2025-03-04 11:49:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-04 11:49:34 -0800 |
commit | 540d7ddb152164c9969aa05344caebe3cb129096 (patch) | |
tree | 0fd74eeef4ed3bdd932249483e56f2cc8a839271 /mlir/lib/Bindings/Python/IRModule.h | |
parent | d38380d3d808183652c1e9be34e3a2476ed6ea70 (diff) | |
download | llvm-540d7ddb152164c9969aa05344caebe3cb129096.zip llvm-540d7ddb152164c9969aa05344caebe3cb129096.tar.gz llvm-540d7ddb152164c9969aa05344caebe3cb129096.tar.bz2 |
[mlir][py] Plumb OpPrintingFlags::printNameLocAsPrefix() through the C/Python APIs (#129607)
Diffstat (limited to 'mlir/lib/Bindings/Python/IRModule.h')
-rw-r--r-- | mlir/lib/Bindings/Python/IRModule.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mlir/lib/Bindings/Python/IRModule.h b/mlir/lib/Bindings/Python/IRModule.h index dd6e7ef..1ed6240 100644 --- a/mlir/lib/Bindings/Python/IRModule.h +++ b/mlir/lib/Bindings/Python/IRModule.h @@ -576,15 +576,16 @@ public: /// Implements the bound 'print' method and helps with others. void print(std::optional<int64_t> largeElementsLimit, bool enableDebugInfo, bool prettyDebugInfo, bool printGenericOpForm, bool useLocalScope, - bool assumeVerified, nanobind::object fileObject, bool binary, - bool skipRegions); + bool useNameLocAsPrefix, bool assumeVerified, + nanobind::object fileObject, bool binary, bool skipRegions); void print(PyAsmState &state, nanobind::object fileObject, bool binary); nanobind::object getAsm(bool binary, std::optional<int64_t> largeElementsLimit, bool enableDebugInfo, bool prettyDebugInfo, bool printGenericOpForm, bool useLocalScope, - bool assumeVerified, bool skipRegions); + bool useNameLocAsPrefix, bool assumeVerified, + bool skipRegions); // Implement the bound 'writeBytecode' method. void writeBytecode(const nanobind::object &fileObject, |