Home | History | Annotate | Download | only in lazy_irgen
      1 //===----------------------------------------------------------------------===/
      2 //                 Kaleidoscope with Orc - Lazy IRGen Version
      3 //===----------------------------------------------------------------------===//
      4 
      5 This version of Kaleidoscope with Orc demonstrates lazy IR-generation.
      6 Building on the lazy-codegen version of the tutorial, this version reduces the
      7 amount of up-front work that must be done by lazily IRgen'ing ASTs. When a
      8 function definition is entered, its AST is added to a map of available
      9 definitions. No IRGen is performed at this point and nothing is added to the JIT.
     10 When attempting to resolve symbol addresses, the lambda in
     11 KaleidoscopeJIT::getSymbolAddress will scan the AST map and generate IR on the
     12 fly.
     13 
     14 This directory contains a Makefile that allows the code to be built in a
     15 standalone manner, independent of the larger LLVM build infrastructure. To build
     16 the program you will need to have 'clang++' and 'llvm-config' in your path.
     17