Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions mlir/lib/Tools/mlir-opt/MlirOptMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,14 +562,9 @@ LogicalResult mlir::MlirOptMain(int argc, char **argv, llvm::StringRef toolName,
[&](auto name) { os << name; });
}

// It is not possible to place a call after command line parser
// since not all options are registered at the moment
additionalRegistration(helpHeader);

MlirOptMainConfig::registerCLOptions(registry);
additionalRegistration(helpHeader);

// Parse pass names in main to ensure static initialization completed.
cl::ParseCommandLineOptions(argc, argv, helpHeader);
MlirOptMainConfig config = MlirOptMainConfig::createFromCLOptions();

// When reading from stdin and the input is a tty, it is often a user mistake
Expand Down