[llvm-dev] opt with Polly doesn't find the passes

Tobias Grosser via llvm-dev llvm-dev at lists.llvm.org
Wed Feb 3 08:57:46 PST 2016


On 02/03/2016 04:37 PM, Frank Winter via llvm-dev wrote:
> Hi Tobias,
>
> I tried to invoke other passes and none of them are available, e.g.:
>
> ~/toolchain/install/llvm-3.8/bin/opt -load
> ~/toolchain/install/llvm-3.8/lib/libPolly.so -polly-cleanup

In fact I found the issue. Try to load LLVMPolly.so instead of libPolly.so:

~/toolchain/install/llvm-3.8/bin/opt -load
~/toolchain/install/llvm-3.8/lib/LLVMPolly.so -polly-cleanup

This should work with and without BUILD_SHARED_LIBS and should correctly 
register the passes for you.

Best,
Tobias


More information about the llvm-dev mailing list