Exposes mlir::TypeID to the C API as MlirTypeID along with various accessors
and helper functions.
Details
- Reviewers
mehdi_amini - Commits
- rG782a97a9776a: [mlir][capi] Add TypeID to MLIR C-API
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Can you add unit-tests for this?
I also wonder if the C API generator for dialects should expose a way to get the type id for each operations directly without having to create them, have you considered this as well?
Yes, is mlir/test/CAPI/ir.c a good place to add them, or should I make a new file?
I also wonder if the C API generator for dialects should expose a way to get the type id for each operations directly without having to create them, have you considered this as well?
I was looking into a way to generate type id accessors, but wasn't aware that there was already a C API generator for dialects. Could you point me to where that is?
It's probably fine there.
I also wonder if the C API generator for dialects should expose a way to get the type id for each operations directly without having to create them, have you considered this as well?
I was looking into a way to generate type id accessors, but wasn't aware that there was already a C API generator for dialects. Could you point me to where that is?
Forget about it, I got confused between -gen-python-op-bindings and -gen-pass-capi-xxxx...