aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
diff options
context:
space:
mode:
authorweiwei chen <weiwei.chen@modular.com>2024-07-25 10:01:46 -0400
committerGitHub <noreply@github.com>2024-07-25 10:01:46 -0400
commit12dba4d48461c571cb5bdb7c3ac6078b9a357a02 (patch)
tree7c8a8d07ba9303dd7558fd33b90e5a482f02020a /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
parent9ad92c476907451bdc95a6c2b6a6bbba03815b4b (diff)
downloadllvm-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/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions