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

Frank Winter via llvm-dev llvm-dev at lists.llvm.org
Wed Feb 3 09:25:23 PST 2016

On 02/03/2016 11:57 AM, Tobias Grosser wrote:
> 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.

Oh. That works. Don't know what brought me to load libPolly.


> Best,
> Tobias

More information about the llvm-dev mailing list