[LLVMdev] Is there a guide to LLVM's components?

Óscar Fuentes ofv at wanadoo.es
Wed Jul 21 17:20:08 PDT 2010


David Piepgrass <dpiepgrass at mentoreng.com> writes:

[snip]

> If there are no such guides, could someone tell me which parts of LLVM
> are needed for "minimal" JIT compilation? I would like to create small
> amounts of IR at run-time, compile them in-memory, and run
> them.

This is what I have on my x86 JIT compiler:

set(REQ_LLVM_LIBRARIES
  LLVMX86CodeGen
  LLVMX86Info
  LLVMSelectionDAG
  LLVMAsmPrinter
  LLVMInterpreter
  LLVMJIT
  LLVMExecutionEngine
  LLVMCodeGen
  LLVMipo
  LLVMInstrumentation
  LLVMScalarOpts
  LLVMInstCombine
  LLVMTransformUtils
  LLVMipa
  LLVMAnalysis
  LLVMTarget
  LLVMMC
  LLVMBitWriter
  LLVMCore
  LLVMSupport
  LLVMSystem
  )

You can remove LLVMBitWriter if you don't plan to output LLVM bitcode.

[snip]




More information about the llvm-dev mailing list