提问人:lonelyjoe 提问时间:7/30/2021 更新时间:7/30/2021 访问量:234
如何生成LLVM IR代码来调用C++ STL函数?
How to generate LLVM IR code to call C++ STL function?
问:
我想生成包含对 C++ STL 函数调用的 LLVM-IR。例如。
我认为我需要通过以下步骤来完成任务。std::sort()
- 链接到 IR
std::sort()
- 获取对函数的引用
std::sort()
- 创建对 using 的调用。
std::sort()
IRBuilder.CreateCall(~)
我不确定如何实现上述第一步。
答: 暂无答案
评论
sort<T>
std::sort
是一个模板,而不是一个函数。sort<T>
T
T