llvm - 获取 FunctionPass llvm 中的当前模块

标签 llvm llvm-c++-api

我正在 LLVM 中编写函数传递,需要调用方法 Module::getOrInsertFunction。我需要访问当前函数的模块。我如何得到它?

最佳答案

关于llvm - 获取 FunctionPass llvm 中的当前模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41795983/

相关文章:

c++ - 使用 LLVM 的可执行文件的动态符号解析

clang - "Attributes.inc"找不到文件

llvm - 从 LLVM 获取 "minimal"SSA

linux - 从源代码安装后如何卸载 libc++?

c++ - 如何从 C++ 程序调用 LLVM 代码并将数据传递给它

LLVM IR : How to call a function in another . ll文件

python - 为什么LLVM在创建数组时会抛出 "arguments of incompatible type"错误?

compiler-construction - 尝试编写 LLVM 后端。没有好的教程可用

compiler-errors - LLVM教程OCaml编译错误

c++ - 在 clang 中的 CompilerInstance 上执行多个 FrontendAction