[LLVMdev] MC and admisible function names

Kaylor, Andrew andrew.kaylor at intel.com
Fri Nov 30 11:43:19 PST 2012


Hi Óscar,

I'm not aware of any intentional function name limitations with MCJIT.  It's entirely possible that something somewhere is rejecting the name for one reason or another (intentionally or otherwise).

When you call getPointerToFunction in MCJIT, it will ultimately call RuntimeDyldImpl::getSymbolLoadAddress to look the name up in a table of known function names.  That table gets built from the emitted object image during the RuntimeDyldImpl::loadObject call.  If you set a breakpoint in that function you can see all the symbol names that get processed and it will probably tell you why the function isn't being found.

-Andy

-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Óscar Fuentes
Sent: Friday, November 30, 2012 8:59 AM
To: llvmdev at cs.uiuc.edu
Subject: [LLVMdev] MC and admisible function names

While using MCJIT, when I define a function with name

Fn_.._lib_rc-variant.lp0_17_0x706970

ExecutionEngine::getPointerToFunction fails to locate it (returns 0).
There is no problem if the function is named Fn_0x706970.

There is no problem with those names using the traditional JIT.

Is there any special limitation on function names for MC/MCJIT?

_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list