[mlir] add an option to print op stats in JSON
authorOkwan Kwon <okwan@google.com>
Tue, 14 Jun 2022 21:16:26 +0000 (14:16 -0700)
committerOkwan Kwon <okwan@google.com>
Wed, 15 Jun 2022 17:07:36 +0000 (10:07 -0700)
commit8010d7e0446a09471d5349466b80651c3ad76af3
treed5006b6214f2b6175fb711cb1718956adb241dec
parent335e8bf1008fff5723ba36f27350eb6d5e7f187c
[mlir] add an option to print op stats in JSON

Differential Revision: https://reviews.llvm.org/D127691
mlir/include/mlir/Transforms/Passes.td
mlir/lib/Transforms/OpStats.cpp
mlir/test/CAPI/pass.c
mlir/test/IR/op-stats-json.mlir [new file with mode: 0644]
mlir/test/python/pass_manager.py