rise-lang / shine

The Shine compiler for the RISE language
https://rise-lang.org
MIT License
73 stars 8 forks source link

WIP: GAP8 host code generation #192

Closed bpervan closed 3 years ago

bpervan commented 3 years ago

This PR implements host code generation for the GAP8 platform. Necessary primitives both on Rise and DPIA side are added, as well as HostCodeGenerator and HostCodeModuleGenerator (mostly by mimicking the existing implementation for OpenCL). The existing GAP8 Module has been slightly refactored to include the parameter unpacking code injection when translating the Module to string.

Additionally, GAP8 code generation test suite is added as well as the initial version of Executor. Minor edits in Sobel filter exemplary application are also included.