[mlir][AsmPrinter] Allow explicitly disabling debug info
authorRiver Riddle <riddleriver@gmail.com>
Fri, 18 Nov 2022 04:44:27 +0000 (20:44 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Fri, 18 Nov 2022 10:09:57 +0000 (02:09 -0800)
commitd023661115e2b878f5b68a31d092ea3619a77754
tree9536dd80f90d9aee71e0966fb3c9728cc209c2ff
parent446fc42d7cf2d7c3e56abf6b3267bc3956735f71
[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.
mlir/include/mlir-c/IR.h
mlir/include/mlir/IR/OperationSupport.h
mlir/lib/Bindings/Python/IRCore.cpp
mlir/lib/CAPI/IR/IR.cpp
mlir/lib/IR/AsmPrinter.cpp
mlir/test/CAPI/ir.c