Displaying 2 results from an estimated 2 matches for "jitobject".
2014 Sep 18
5
[LLVMdev] VEX prefixes for JIT in llvm 3.5
...ttle unsatisfying though. For one thing,
unless you very carefully maintain the association with the original object
via back-channels there will be no way of knowing which section belongs to
which object file.
With a bit of cleanup though, we could do something more like this:
const RuntimeDyld::JITObject& JO = RTDyld.loadObject(Object);
// ...
RTDyld.resolveRelocations();
DEBUG(
for (const RuntimeDyld::JITObject::Section& S : JO.sections())
if (S.isText())
Disassemble(S.getAddr(), S.getSize());
);
How does that look?
Cheers,
Lang.
On Wed, Sep 17, 2014 at 3:08 PM, Philip Rea...
2014 Sep 17
2
[LLVMdev] VEX prefixes for JIT in llvm 3.5
Great stuff; thanks both!
I'm also looking to turn my MCJIT conversion spike into our main use
case. The only thing I'm missing is the ability to get a post-linked
copy of the generated assembly.
In JIT I used JITEventListener's NotifyFunctionEmitted and used a
MCDisassembler to disassemble the stream (with my own custom
annotators), and redirected the output to the relevant place