BoiseState-AdaptLab / spf-ie

Sparse polyhedral framework optimizing compiler frontend
4 stars 2 forks source link

Allow specifying entry-point function from command-line #36

Closed riftEmber closed 2 years ago

riftEmber commented 2 years ago

Add a command-line argument (can be an optional flag argument instead of positional if that's easier with Clang as I suspect) that will be the name of the function the user wants to have a Computation built from. Looking at example of --print-info argument might be helpful. Then, the Driver should only run SPFComputationBuilder on the function matching this name, instead of running it on every function. If the named function is not found, error out.