tum-ei-eda / seal5

Seal5 - Semi-automated LLVM Support for RISC-V Extensions including Autovectorization
https://tum-ei-eda.github.io/seal5/
Apache License 2.0
8 stars 3 forks source link

Automatically cleanup dirty llvm repo #97

Open PhilippvK opened 1 month ago

PhilippvK commented 1 month ago

When pressing CTRL+C while patches are being applied, it is very likely that the target llvm repo will be in a unclean state. To resolve this, users have to run git restore . and git clean -f . manually which should be avoided in the future.

The main problem with automating this is the risk of accidentally dropping any manually made changes. Further, in an unlucky scenario, it could remove the .seal5 meta dir, which is not desirable...

In interactive mode, we could just ask the user if the cleanup should really be applied.