summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2023-07-28 10:43:51 -0700
committerMehdi Amini <joker.eph@gmail.com>2023-07-28 10:44:02 -0700
commitb299ec16661f653df66cdaf161cdc5441bc9803c (patch)
tree871d39e32caf5b3cacdc546905d4ee7731b8053e /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parentbb65caf90ae1ade0ab1896c8e781cff34b34a846 (diff)
Expose callbacks for encoding of types/attributes
[mlir] Expose a mechanism to provide a callback for encoding types and attributes in MLIR bytecode. Two callbacks are exposed, respectively, to the BytecodeWriterConfig and to the ParserConfig. At bytecode parsing/printing, clients have the ability to specify a callback to be used to optionally read/write the encoding. On failure, fallback path will execute the default parsers and printers for the dialect. Testing shows how to leverage this functionality to support back-deployment and backward-compatibility usecases when roundtripping to bytecode a client dialect with type/attributes dependencies on upstream. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D153383
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions