Hi!
I’m struggling with a ReturnLike
op python binding with my dialect. In the generated .h.inc file it has the trait IsTerminator
, but when I try to generate mlir with the operation, I get the following error:
error: block with no terminator, has <return op>
When I put another operation below the return op, it recognizes that my return op needs to be last in the block, though. Can anyone give me any pointers?
Thanks,
Josh