Compiling applications to reconfigurable push-memory accelerators