Print message about dumped MLIR modules

PiperOrigin-RevId: 311811882
Change-Id: I6c85e75c87d3ca413631927d11aff61f7ed9b39f
This commit is contained in:
Michael Gester 2020-05-15 15:25:26 -07:00 committed by TensorFlower Gardener
parent 40e0712354
commit f7d5cb929b

View File

@ -38,6 +38,7 @@ inline static void Log(BridgeLoggerConfig::PrintCallbackFn print_callback,
std::unique_ptr<llvm::raw_ostream> os;
std::string filepath;
if (CreateFileForDumping(name, &os, &filepath).ok()) print_callback(*os);
VLOG(1) << "Dumped MLIR module to " << filepath;
}
void BridgeLoggerConfig::printBeforeIfEnabled(mlir::Pass* pass,