You are not logged in.
Pages: 1
(I had no idea what was an appropriate topic for this to go under, this seemed like the best option) just today I tried using polly with clang to compile something. I tried testing it first on a basic C file with only a main function and print, trying to compile it via
clang -O3 -mllvm -polly file.conly returned an error saying llvm option parser couldn't recognize -polly. the llvm wiki says llvm and its tools have to all be built in the same revision in order for clang and polly to work together, I'd assume this was the case since llvm and its tools all come from one PKGBUILD in arch repos. am I doing something wrong or is this a known issue?
Offline
https://polly.llvm.org/docs/UsingPollyWithClang.html:
Polly is available through clang, opt, and bugpoint, if Polly was checked out into tools/polly before compilation.
For Arch's llvm or clang packages compilation it wasn't. At least I didn't find any mention of polly in llvm's or clang's PKGBUILDs.
Offline
is there a reason why Polly is even packaged in the arch repos if it's not even compiled with clang and llvm? this seems very counterintuitive
Offline
https://bugs.archlinux.org/task/66226#comments
Since it's packaged separately, clang needs "-Xclang -load -Xclang LLVMPolly.so" in addition to "-mllvm -polly"
Disclaimer: I don't know if it really works.
Offline
Pages: 1