CHIP-SPV / chipStar

chipStar is a tool for compiling and running HIP/CUDA on SPIR-V via OpenCL or Level Zero APIs.
Other
226 stars 34 forks source link

Link chipStar's LLVM pass plugin to LLVM #645

Closed linehill closed 1 year ago

linehill commented 1 year ago

Additionally, ensure there is no undefined references while linking the plugin to LLVM (--no-undefined).

This attempts to fix issue seen in https://github.com/CHIP-SPV/chipStar/pull/570 where the plugin loaded by statically built opt tool does not provide the symbols needed by the plugin.

linehill commented 1 year ago

Abandoned: this patch does not work well with static linked opt tool and it is not worthwhile getting it work currently.