diff options
| author | River Riddle <riddleriver@gmail.com> | 2022-11-17 20:44:27 -0800 |
|---|---|---|
| committer | River Riddle <riddleriver@gmail.com> | 2022-11-18 02:09:57 -0800 |
| commit | d023661115e2b878f5b68a31d092ea3619a77754 (patch) | |
| tree | 9536dd80f90d9aee71e0966fb3c9728cc209c2ff /mlir/lib/CAPI/IR/IR.cpp | |
| parent | 446fc42d7cf2d7c3e56abf6b3267bc3956735f71 (diff) | |
[mlir][AsmPrinter] Allow explicitly disabling debug info
This adds an `enable` flag to OpPrintingFlags::enableDebugInfo
that allows for overriding any command line flags for debug printing,
and matches the format that we use for other `enableBlah` API.
Diffstat (limited to 'mlir/lib/CAPI/IR/IR.cpp')
| -rw-r--r-- | mlir/lib/CAPI/IR/IR.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/CAPI/IR/IR.cpp b/mlir/lib/CAPI/IR/IR.cpp index 98a3ff348e4f..53b530d3f27d 100644 --- a/mlir/lib/CAPI/IR/IR.cpp +++ b/mlir/lib/CAPI/IR/IR.cpp @@ -127,9 +127,9 @@ void mlirOpPrintingFlagsElideLargeElementsAttrs(MlirOpPrintingFlags flags, unwrap(flags)->elideLargeElementsAttrs(largeElementLimit); } -void mlirOpPrintingFlagsEnableDebugInfo(MlirOpPrintingFlags flags, +void mlirOpPrintingFlagsEnableDebugInfo(MlirOpPrintingFlags flags, bool enable, bool prettyForm) { - unwrap(flags)->enableDebugInfo(/*prettyForm=*/prettyForm); + unwrap(flags)->enableDebugInfo(enable, /*prettyForm=*/prettyForm); } void mlirOpPrintingFlagsPrintGenericOpForm(MlirOpPrintingFlags flags) { |
