Displaying 1 result from an estimated 1 matches for "originalfunc".
2008 Mar 03
1
[LLVMdev] Cloning a function
...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.cpp:412:
unsigned int sizeOfImm(const llvm::TargetInstrDesc*): Assertion `0
&& "Immediate size not set!&qu...