[llvm-dev] ORC JIT compilation - can I recover the size of the generated function?

Jameson Nash via llvm-dev llvm-dev at lists.llvm.org
Tue Aug 15 16:25:25 PDT 2017


LLVM provides a function for you:
   auto symbols = llvm::object::computeSymbolSizes(object);
Enjoy!

On Tue, Aug 15, 2017 at 10:18 AM meister via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

>
> Hi,
>
> Is there a way to obtain the length of the generated function?
> It’s easy to obtain a pointer to a compiled function using ORC (of course).
>
> I’ve recently implemented a disassembler in our Common Lisp compiler (
> github.com/drmeister/clasp).
> I’d like to be able to say (disassemble ‘foo) and get the complete
> disassembly of the function ‘foo.
> Currently, I don’t know when to stop disassembling.
>
> Best,
>
> Christian Schafmeister
> Professor, Chemistry
> Temple University
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170815/8103090e/attachment.html>


More information about the llvm-dev mailing list