argon icon indicating copy to clipboard operation
argon copied to clipboard

Support generalized += style operations on Vars

Open dkoeplin opened this issue 7 years ago • 0 comments

(Spawned from Spatial Issue #113)

Ideally, when seeing x [op]= y, we should virtualize in the same way that scala compiler itself works: First try readVar(x) [op]= y (do the operation on the current value of the Var) then, if that's invalid, try x = readVar(X) [op] y (update the var itself).

Not sure if this is possible yet with scala-virtualized.

dkoeplin avatar Jun 22 '17 18:06 dkoeplin