TC-L Code to WriteΒΆ
- src/llvmtranslate/escapes-collector.cc
build_frameCollect all the local variables used in a function. Used in the escape collector.collect_escapesCollect 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::Typeobjects intollvm::Typeobjects.