- Adds dialect registration, hand coded 'encoding' attribute and test.
- An MLIR CAPI tablegen backend for attributes does not exist, and this is a relatively complicated case. I opted to hand code it in a canonical way for now, which will provide a reasonable blueprint for building out the tablegen version in the future.
- Also added a (local) CMake function for declaring new CAPI tests, since it was getting repetitive/buggy.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Also adding Alex for a look, since I think this is the first such case (dialect attribute) we have in tree.
mlir/test/CAPI/sparse_tensor.c | ||
---|---|---|
26–30 | Nit: can this use a raw literal or be wrapper in // clang-format off / // clang-format on to avoid awkward string reformatting? |
mlir/test/CAPI/sparse_tensor.c | ||
---|---|---|
26–30 | It's C, so opted for the clang-format option and reflowed. |
Comment Actions
This broke the windows build bot, and I missed it. Rolling forward fix in: https://reviews.llvm.org/D102189
Nit: can this use a raw literal or be wrapper in // clang-format off / // clang-format on to avoid awkward string reformatting?