Instead, use the asMainReturnCode utility function that uses EXIT_SUCCESS and EXIT_FAILURE.
Move asMainReturnCode to LogicalResult.h so that non-opt-based mlir tools can also use it.
Paths
| Differential D125701
[mlir][NFC] Do not convert bool to int when returning from main AbandonedPublic Authored by kuhar on May 16 2022, 9:21 AM.
Details
Summary Instead, use the asMainReturnCode utility function that uses EXIT_SUCCESS and EXIT_FAILURE. Move asMainReturnCode to LogicalResult.h so that non-opt-based mlir tools can also use it.
Diff Detail
Event TimelineComment Actions
My motivation is twofold:
Revision Contents
Diff 429744 mlir/docs/Tools/MLIRLSP.md
mlir/docs/Tools/mlir-reduce.md
mlir/examples/standalone/standalone-translate/standalone-translate.cpp
mlir/include/mlir/Support/LogicalResult.h
mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h
mlir/tools/mlir-lsp-server/mlir-lsp-server.cpp
mlir/tools/mlir-pdll-lsp-server/mlir-pdll-lsp-server.cpp
mlir/tools/mlir-reduce/mlir-reduce.cpp
mlir/tools/mlir-translate/mlir-translate.cpp
|