[llvm-dev] opt with Polly doesn't find the passes
Tobias Grosser via llvm-dev
llvm-dev at lists.llvm.org
Wed Feb 3 01:46:37 PST 2016
On 02/03/2016 02:55 AM, Frank Winter via llvm-dev wrote:
> I just checkout release_38 branches of llvm, clang and polly and built
> it on and x86 Ubuntu with cmake:
>
> CMAKE_BUILD_TYPE="Debug"
> CMAKE_INSTALL_PREFIX="$HOME/toolchain/install/llvm-3.8"
> LLVM_TARGETS_TO_BUILD="X86"
>
> cmake -G "Unix Makefiles" \
> -DBUILD_SHARED_LIBS="ON" \
> -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \
> -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX \
> -DLLVM_TARGETS_TO_BUILD=$LLVM_TARGETS_TO_BUILD \
> $SRC
>
> The build went fine, even 'make check-polly' looks okay:
>
> Scanning dependencies of target check-polly
> [100%] Running polly regression tests
> Testing Time: 37.39s
> Expected Passes : 574
> Expected Failures : 17
> [100%] Built target check-polly
>
> Now, I like to follow the matmul example in polly. But whatever polly
> pass I am trying to run opt seem to not find it:
>
> opt -load ~/toolchain/install/llvm-3.8/lib/libPolly.so -S
> -polly-canonicalize matmul.s > matmul.preopt.ll
>
> opt: Unknown command line argument '-polly-canonicalize'. Try: 'opt -help'
> opt: Did you mean '-polly-delinearize'?
>
> I am sure that loading the library works, since opt -load
> ~/toolchain/install/llvm-3.8/lib/libPolly.so -help prints out:
Hi Frank,
this is interesting and I do not yet understand what is going on here.
Let me shoot some first guesses:
Which 'opt' are you runnning. Did you run:
~/toolchain/install/llvm-3.8/bin/opt -load
~/toolchain/install/llvm-3.8/lib/libPolly.so
or rather some
/usr/local/bin/opt -load ~/toolchain/install/llvm-3.8/lib/libPolly.so
Also, what does:
~/toolchain/install/llvm-3.8/bin/opt -load
~/toolchain/install/llvm-3.8/lib/libPolly.so -help-hidden | grep
canonicalize give you?
Best,
Tobias
More information about the llvm-dev
mailing list