Add a message to mlir-opt when reading from stdin to avoid being waiting for nothing
authorMehdi Amini <joker.eph@gmail.com>
Mon, 13 Mar 2023 12:56:15 +0000 (13:56 +0100)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 13 Mar 2023 13:28:11 +0000 (14:28 +0100)
commit554e40d6ba1cdeef1c0b82469bce3978fabc84a9
treeb1fa31d2bf8ab20ce2e3da134c48f9a674f107ef
parentf3a68ac10c8414117b21c08cbba98e1e895ac245
Add a message to mlir-opt when reading from stdin to avoid being waiting for nothing

It happens from time to time that one may run mlir-opt expecting something to
happen, but the process is waiting on stdin. Print a message when reading from
stdin to warn developers.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D145469
mlir/lib/Tools/mlir-opt/MlirOptMain.cpp