issues
search
cornell-zhang
/
heterocl
HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing
https://cornell-zhang.github.io/heterocl/
Apache License 2.0
326
stars
92
forks
source link
Transfer length-one-arrays to scalar variables when generating C code
#29
Closed
comaniac
closed
6 years ago
comaniac
commented
6 years ago
Methodology
Remove the index reference when allocating the length-one-array.
Build a buffer-to-length map for local buffers.
Remove the index [0] reference and type conversion when referring scalar variables according to the map built in step 2.
Testing Add a new unit test.
Methodology
Testing Add a new unit test.