Hi,
could somebody give me a hint how to instantiate an SIToFPOp
(or any other Op that inherits from ArithmeticCastOp
) in a DRR? Right now I am trying this:
...
def TestPattern : Pat<
(SomeOtherOp:$res $arg),
(SIToFPOp $arg, TypeAttr<F32>),
[]>;
...
leading to the following TableGen error:
error: Expected a class name, got ‘TypeAttr’
(SIToFPOp $arg, TypeAttr)))),
^
I’m probably using TypeAttr
incorrectly and / or in the wrong place.
Thanks,
Andi