MLIR: Using types defined in C++ in tablegen

Hi, I have declared a type SomeType using the C++ API, in a file sometype.h in MLIR.

How can I use this type in a tablegen file? I can’t figure out how to include the declaration.

You need to define an instance of a Type class in tablegen, Here’s for example how it is done for FunctionType

Thank you, exactly what I was looking for! I was digging around in that file but couldn’t find it exactly.