M
Modular15mo ago
jmky

How to trigger `cf.assert` MLIR operations?

Suppose I have
let _ = __mlir_op.`cf.assert`[msg=__mlir_attr.`"ERROR"`](false)
let _ = __mlir_op.`cf.assert`[msg=__mlir_attr.`"ERROR"`](false)
The error is that it cannot infer the return type of the MLIR operation. How do I resolve it? Thank you.
2 Replies
ModularBot
ModularBot15mo ago
Congrats @jmky, you just advanced to level 5!
jmky
jmkyOP15mo ago
@modularstaff

Did you find this page helpful?