cornell-zhang / hcl-dialect

HeteroCL-MLIR dialect for accelerator design
https://cornell-zhang.github.io/heterocl/index.html
Other
38 stars 17 forks source link

[Backend] Support GetBitOp/SetBitOp in LLVM #35

Closed chhzh123 closed 2 years ago

chhzh123 commented 2 years ago

hcl.get_bit/hcl.set_bit operation has been supported by VHLS backend, but it is still not supported by LLVM. It should be relatively straightforward to perform get/set_bit by shifting and ANDing.

chhzh123 commented 2 years ago

Also need to support get/set_slice and reverse operations in LLVM.

chhzh123 commented 2 years ago

Fixed by f0c5e3.