cornell-zhang / heterocl

HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing
https://cornell-zhang.github.io/heterocl/
Apache License 2.0
322 stars 92 forks source link

[API] Add incremental compilation #457

Open Yass-g opened 2 years ago

Yass-g commented 2 years ago

Add feature: Incremental compilation Save and load previously created schedule objects.

Detailed description: This PR attempts to add support for incremental compilation by saving and loading previously created schedule objects. The MLIR assembly is saved as readable text and the loading is done with the built-in parser.

The feature seems to be working for the LLVM backend but has issues with FPGA backend. I will add tests demonstrating these.

hecmay commented 2 years ago

Please ignore the failure in CI/CD test.

the runner is basically complaining that you do not have the permission to clone a private repo, which is normal since the CI/CD triggered by a PR does not have that permission.