weld-project / weld

High-performance runtime for data analytics applications
https://www.weld.rs
BSD 3-Clause "New" or "Revised" License
2.99k stars 258 forks source link

Support for custom entry point function name #428

Closed sppalkia closed 5 years ago

sppalkia commented 5 years ago

This PR adds support for a custom name for the entry-point function in an LLVM module. This is useful, e.g., if the dumped LLVM IR is used to compile multiple shared object files that all need non-conflicting symbol names for the functions.

Usage with C API:

weld_conf_set("weld.llvm.runFunctionName", "myCustomFunctionName");

The default name remains "run". @kraftp this should address your comment.