I am a beginner with MLIR and I am trying to create a (very) simple custom type : a kind of Bool (which abstracts i1).
I follow the different steps of the tutorial :
- Create the enum “Kind” in wich FIRST_PRIVATE_EXPERIMENTAL_0_TYPE is used and the type class with get, kindof and getWidth.
- Override parseType and printType in my dialect class.
- Registrate the custom type with addTypes.
But when I try to use it in a MLIR file (with the keyword choosen in “parseType”), let’s say as a function parameter, I get an error saying “expected non-function type”.
Am I missing something ?