cornell-zhang / heterocl

HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing
https://cornell-zhang.github.io/heterocl/
Apache License 2.0
322 stars 92 forks source link

[Refactor] Several bugs fixed: Select, Load, Store, Cast #94

Closed seanlatias closed 5 years ago

seanlatias commented 5 years ago

In this PR the following bugs are fixed.

  1. Now the Select expression matches the types of if_case and then_case
  2. Now the index to Load and Store are automatically cast to Int(32)
  3. Change partition type Cycle to Cyclic

The following features are added.

  1. Now we check whether the bitwise operations have the correct type
  2. For most compute primitives, we allow number as an index to the axes