#include "mlir/Transforms/Passes.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/IR/Operation.h"
#include "mlir/IR/OperationSupport.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/raw_ostream.h"
namespace mlir {
#define GEN_PASS_DEF_PRINTOPSTATS
#include "mlir/Transforms/Passes.h.inc"
}
usingnamespacemlir;
namespace {
struct PrintOpStatsPass : public impl::PrintOpStatsBase<PrintOpStatsPass> { … };
}
void PrintOpStatsPass::runOnOperation() { … }
void PrintOpStatsPass::printSummary() { … }
void PrintOpStatsPass::printSummaryInJSON() { … }
std::unique_ptr<Pass> mlir::createPrintOpStatsPass(raw_ostream &os) { … }
std::unique_ptr<Pass> mlir::createPrintOpStatsPass(raw_ostream &os,
bool printAsJSON) { … }