diff options
author | Mogball <jeffniu22@gmail.com> | 2022-03-15 07:12:37 +0000 |
---|---|---|
committer | Mogball <jeffniu22@gmail.com> | 2022-03-15 07:15:15 +0000 |
commit | 4767e267757fa56d40248b759d7b17ac1c6fb2ef (patch) | |
tree | e20af3579c2c32388e70a3cf9eac727aa0bd0893 /lldb/packages/Python/lldbsuite/test/gdbclientutils.py | |
parent | 6143ec2961d14c0b913d7687a0db209a9b26e39c (diff) | |
download | llvm-4767e267757fa56d40248b759d7b17ac1c6fb2ef.zip llvm-4767e267757fa56d40248b759d7b17ac1c6fb2ef.tar.gz llvm-4767e267757fa56d40248b759d7b17ac1c6fb2ef.tar.bz2 |
[mlir][ods] Add support for custom directive in attr/type formats
This patch adds support for custom directives in attribute and type formats. Custom directives dispatch calls to user-defined parser and printer functions.
For example, the assembly format "custom<Foo>($foo, ref($bar))" expects a function with the signature
```
LogicalResult parseFoo(AsmParser &parser, FailureOr<FooT> &foo, BarT bar);
void printFoo(AsmPrinter &printer, FooT foo, BarT bar);
```
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D120944
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/gdbclientutils.py')
0 files changed, 0 insertions, 0 deletions