diff options
author | Jorn Tuyls <jtuyls@users.noreply.github.com> | 2025-04-30 14:43:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-30 14:43:03 +0200 |
commit | de6d010f4e3fbfdb54e257c496c16db30c6c0d91 (patch) | |
tree | b49822fcb3410e73a28ba67de99197cb4bfe8387 /llvm/unittests/ADT/ArrayRefTest.cpp | |
parent | 3b12bac6d1b3ac8aa4b465abe5adec8110025fac (diff) | |
download | llvm-de6d010f4e3fbfdb54e257c496c16db30c6c0d91.zip llvm-de6d010f4e3fbfdb54e257c496c16db30c6c0d91.tar.gz llvm-de6d010f4e3fbfdb54e257c496c16db30c6c0d91.tar.bz2 |
[mlir][tblgen] Add custom parsing and printing within struct (#133939)
This PR extends the `struct` directive in tablegen to support nested
`custom` directives. Note that this assumes/verifies that that `custom`
directive has a single parameter.
This enables defining custom field parsing and printing functions if the
`struct` directive doesn't suffice. There is some existing potential
downstream usage for it:
https://github.com/openxla/stablehlo/blob/a3c7de92425e8035437dae67ab2318a82eca79a1/stablehlo/dialect/StablehloOps.cpp#L3102
Diffstat (limited to 'llvm/unittests/ADT/ArrayRefTest.cpp')
0 files changed, 0 insertions, 0 deletions