[llvm-dev] Polybench llvm's IR -fopenmp

Corda, S. via llvm-dev llvm-dev at lists.llvm.org
Sat Jan 12 08:23:22 PST 2019

Hi all,

I'm trying to get the llvm's IR from the source code of Polybench (OMP) https://github.com/cavazos-lab/PolyBench-ACC/tree/master/OpenMP.

I noticed a considerable difference between the IR generated using clang -emit-llvm -fopenmp and clang -emit-llvm:

  *   using the -fopenmp flag I get a simplified IR in which I read a single basic block where I can highlight a llvm.memcpy function
  *   without -fopenmp flag I get the expected IR in which I find a large number of basic blocks (e.g. for loop --> for.begin, for.end ...)

Is there a way to avoid the insertion of llvm.memcpy when I'm using the -fopenmp flag?
I've already tried -fno-builtin and -ffreestanding.

Best Regards,
Stefano Corda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190112/0aea9a4d/attachment.html>

More information about the llvm-dev mailing list