aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/ExtractAPI/Serialization
diff options
context:
space:
mode:
authorIvan Butygin <ivan.butygin@gmail.com>2024-04-02 02:43:04 +0300
committerGitHub <noreply@github.com>2024-04-02 02:43:04 +0300
commit1079fc4f543c42bb09a33d2d79d90edd9c0bac91 (patch)
tree4f66054645498489cdb9d99dca6295a44637c918 /clang/lib/ExtractAPI/Serialization
parent9df19ce40281551bd348b262a131085cf98dadf5 (diff)
downloadllvm-1079fc4f543c42bb09a33d2d79d90edd9c0bac91.zip
llvm-1079fc4f543c42bb09a33d2d79d90edd9c0bac91.tar.gz
llvm-1079fc4f543c42bb09a33d2d79d90edd9c0bac91.tar.bz2
[mlir][pass] Add `errorHandler` param to `Pass::initializeOptions` (#87289)
There is no good way to report detailed errors from inside `Pass::initializeOptions` function as context may not be available at this point and writing directly to `llvm::errs()` is not composable. See https://github.com/llvm/llvm-project/pull/87166#discussion_r1546426763 * Add error handler callback to `Pass::initializeOptions` * Update `PassOptions::parseFromString` to support custom error stream instead of using `llvm::errs()` directly. * Update default `Pass::initializeOptions` implementation to propagate error string from `parseFromString` to new error handler. * Update `MapMemRefStorageClassPass` to report error details using new API.
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization')
0 files changed, 0 insertions, 0 deletions