Closed jcasas00 closed 1 year ago
The arithmetic dialect in MLIR does not have arith.negi
(weird that they still don't have it in LLVM15). I'll build an arith.muli %cst-1 %rhs
for this case.
My workaround was to do 0-i. But yeah, weird that there's no arith.negi .
Negation has been implemented in IRBuilder, a test for negation data type is added by cornell-zhang/heterocl@3ceca236bdd8421095f14e6eead01275403c537c
fails as the negation uses arith.negf which expects a float: