diff options
| author | weiwei chen <weiwei.chen@modular.com> | 2024-07-25 10:01:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-25 10:01:46 -0400 |
| commit | 12dba4d48461c571cb5bdb7c3ac6078b9a357a02 (patch) | |
| tree | 7c8a8d07ba9303dd7558fd33b90e5a482f02020a /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp | |
| parent | 9ad92c476907451bdc95a6c2b6a6bbba03815b4b (diff) | |
| download | llvm-12dba4d48461c571cb5bdb7c3ac6078b9a357a02.zip llvm-12dba4d48461c571cb5bdb7c3ac6078b9a357a02.tar.gz llvm-12dba4d48461c571cb5bdb7c3ac6078b9a357a02.tar.bz2 | |
[mlir] Add metadata to Diagnostic. (#99398)
Add metadata to Diagnostic.
Motivation: we have a use case where we want to do some filtering in our
customized Diagnostic Handler based on some customized info that is not
`location` or `severity` or `diagnostic arguments` that are member
variables of `Diagnostic`. Specifically, we want to add a unique ID to
the `Diagnostic` for the handler to filter in a compiler pass that emits
errors in async tasks with multithreading and the diagnostic handling is
associated to the task.
This patch adds a field of `metadata` to `mlir::Diagnostics` as a
general solution. `metadata` is of type `SmallVector<DiagnosticArgument,
0>` to save memory size and reuse existing `DiagnosticArgument` for
metadata type.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp')
0 files changed, 0 insertions, 0 deletions
