stanford-ppl / spatial

Spatial: "Specify Parameterized Accelerators Through Inordinately Abstract Language"
https://spatial.stanford.edu
MIT License
274 stars 32 forks source link

Add support for `Circ` #318

Open willtunnels opened 1 year ago

willtunnels commented 1 year ago

Unfortunately, I found a few bugs at the last minute that I won't have time to fix this quarter, but the fixes should be small. In particular, CircTestNested2 and CircTestNested3 fail. I'm not sure why the former fails. The latter fails because the OpForeach gets replaced by Pipe nodes which are created to wrap the CircApply nodes. Effectively, the pass assumes that all CircApply nodes occur in an inner Pipe, but in this case they occur "unwrapped" in an OpForeach.