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

[API] Enable building a function directly from IR #133

Closed seanlatias closed 5 years ago

seanlatias commented 5 years ago

With this PR, now the users can directly build a HeteroCL function with manually built IR. An example is shown in the tests.

@Blaok, let me know if you need more functionality.

Blaok commented 5 years ago

Cool. I think this is sufficient at least for now. Thanks.

@tonyjie Could you see if we can leverage this set of API?