cornell-zhang / hcl-dialect

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

[Frontend][API] Support `hcl.pack/unpack` #43

Closed chhzh123 closed 2 years ago

chhzh123 commented 2 years ago

hcl.pack/unpack is just a syntax sugar of bit slicing. We do not need to add new operations in the MLIR part, but need to enhance the binding to let it support general expressions as indices.

chhzh123 commented 2 years ago

Fixed by dd19bc26032c067300580184eb89e9c6a7577ae2 and 76eace26bae5a5467ad348edf68a7fee19788c2d.