我使用 llvm-gcc 为 Openmp 程序(用 c 编写)生成了一个 .ll 文件。
然后使用 opt(3.0 版)
进行优化但是当我尝试使用 lli 或 llvm-ld 执行优化的 .ll 文件时,出现以下错误,
LLVM ERROR: Program used external function 'GOMP_parallel_start' which could not be resolved!
这是我遵循的步骤,
$ llvm-gcc -emit-llvm loop11.c -fopenmp -o loop.ll -S
$ opt -O3 loop.ll -o loop.opt.ll -S
$ lli loop.opt.ll
LLVM ERROR: Program used external function 'GOMP_parallel_start' which could not be resolved!
请帮我解决这个问题。
提前致谢。