Search code examples
c++llvmembedded-language

How to embed LLVM?


The LLVM Core project consists of:

  • Compiler - converts source code to LLVM IR
  • VM - executes compiled IR code

How can I embed the VM to a C++ application?


Solution

  • Take a look at the HowToUseJIT example in LLVM.