TC-L Code to WriteΒΆ

src/llvmtranslate/escapes-collector.cc
  • build_frame Collect all the local variables used in a function. Used in the escape collector.
  • collect_escapes Collect escapes for every function in the ast, and store them in a map. This is used for Lambda Lifting

Both functions are based on an internal visitor.

src/llvmtranslate/translator.*

This is where all the translation logic goes.

The translation to LLVM IR is using the llvm::IRBuilder.

src/llvmtranslate/llvm-type-visitor.*
Translate type::Type objects into llvm::Type objects.