I want to generate LLVM-IR that contains a call to a C++ STL function. e.g. std::sort().
I think I need to go through following steps to achieve the task.
- Link
std::sort()into the IR - Get a reference to function
std::sort() - Create a call to
std::sort()usingIRBuilder.CreateCall(~).
I'm not sure how to achieve the first step above.