TC-L Code to Write
More information on LLVM can be found in the dedicated section.
- src/llvmtranslate/escapes-collector.cc
collect_escapesCollects escapes for every function in the AST, and store them in a map. This is used for lambda lifting.
The function is based on an internal visitor.
- src/llvmtranslate/llvm-type-visitor.*
Translate
type::Typeobjects intollvm::Typeobjects. In the Type part of the LLVM documentation of the site all used types are defined.- src/llvmtranslate/translator.*
This is where all the translation logic goes.
The translation to LLVM IR is using the
llvm::IRBuilder(IRBuilder).
For more information on the files see The src/llvmtranslate Directory.