Open jcasas00 opened 1 year ago
This is also a known limitation of MLIR. It does not provide bitwise NOT op in the arith dialect. https://mlir.llvm.org/docs/Dialects/ArithOps/
I see. ~a can be implemented as arith.xori a ((1 << hcl.get_bitwidth(a.dtype))-1) as well.
Right, this is a workaround. We probably need to provide our own bitwise NOT op. Using other bitwise ops to implement NOT is fine for the LLVM backend, but not a good solution for HLS.
generates error: