Closed jcasas00 closed 1 year ago
logical or hasn't been implemented yet.
Relevant discussion threads:
My plan is to first add hcl.and
and hcl.or
representing logical operations with short-circuit evaluation, and then use nested scf.if
to implement them in LLVM backend. We will decouple condition evaluation and if/while operations, see details at #65.
Status update on this issue:
The new frontend build SCF operations for and/or, so there is no problem with affine_set not being able to support or anymore, and the above test case works.
We have not yet added logic operation that supports short-circuit evaluation yet.
Test case added by cornell-zhang/heterocl@9f7212f02dcf49e72fe6a980ace86e9f8b591f4d Closing this thread because the issue has been resolved. Short-circuit logic op will be discussed in thread #65
Very similar to #135 (which is about hcl.while and hcl.and)