search for: m_builtins

Displaying 1 result from an estimated 1 matches for "m_builtins".

Did you mean: __builtins
2008 Mar 03
1
[LLVMdev] Cloning a function
...eFunction call obviously refers to the powf from the library module and asserts as an invalid module. To solve that we add a mapping to DenseMap from the powf declaration in the library module to the powf declaration in the generated module, as in: DenseMap<const Value*, Value *> val; val[m_builtins->getFunction("powf")] = currentModule()->getFunction("powf"); func = CloneFunction(originalFunc, val); currentModule()->getFunctionList().push_back(func); unfortunately after this we get an assert: vp-tris: /home/zack/projects/general/llvm/lib/Target/X86/X86CodeEmitter...