[llvm-dev] ORC - which example code?

Russell Wallace via llvm-dev llvm-dev at lists.llvm.org
Thu May 9 19:50:20 PDT 2019

Trying to put together a simple test JIT compiler, using ORC which as I
understand it will be the supported API going forward, I noticed that in
the first chapter of the updated Kaleidoscope tutorial, there is sample
code that starts like this:

ExecutionSession ES;
RTDyldObjectLinkingLayer ObjectLayer;
IRCompileLayer CompileLayer;

DataLayout DL;
MangleAndInterner Mangle;
ThreadSafeContext Ctx;

But in https://llvm.org/devmtg/2016-11/Slides/Hames-ORC.pdf there is sample
code that looks like this:

ObjectLinkingLayer LinkLayer;
SimpleCompiler Compiler(TargetMachine());
IRCompileLayer<…> CompileLayer(LinkLayer, Compiler);

Related but significantly different.

Which version is now considered correct/preferred?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190510/10a9bc63/attachment.html>

More information about the llvm-dev mailing list