[−][src]Module rustc_codegen_llvm::base
Codegen the completed AST to the LLVM IR.
Some functions here, such as codegen_block and codegen_expr, return a value -- the result of the codegen to LLVM -- while others, such as codegen_fn and mono_item, are called only for the side effect of adding a particular definition to the LLVM IR output we're producing.
Hopefully useful general knowledge about codegen:
- There's no way to find out the
Tytype of a Value. Doing so would be "trying to get the eggs out of an omelette" (credit: pcwalton). You can, instead, find out itsllvm::Typeby callingval_ty, but onellvm::Typecorresponds to manyTys; for instance,tup(int, int, int)andrec(x=int, y=int, z=int)will have the samellvm::Type.
Structs
| ValueIter |
Functions
| compile_codegen_unit | |
| iter_globals | |
| linkage_to_llvm | |
| set_link_section | |
| visibility_to_llvm | |
| write_compressed_metadata |