HomePhabricator

Make the --mlir-disable-threading command line option overrides the C++ API…

Authored by mehdi_amini on Tue, Sep 14, 6:38 PM.

Description

Make the --mlir-disable-threading command line option overrides the C++ API usage

This seems in-line with the intent and how we build tools around it.
Update the description for the flag accordingly.
Also use an injected thread pool in MLIROptMain, now we will create
threads up-front and reuse them across split buffers.

Differential Revision: https://reviews.llvm.org/D109802