Skip to main content

Module base

Module base 

Source
Expand description

Codegen the MIR to the LLVM IR.

Hopefully useful general knowledge about codegen:

  • Thereโ€™s no way to find out the Ty type of a Value. Doing so would be โ€œtrying to get the eggs out of an omeletteโ€ (credit: pcwalton). You can, instead, find out its llvm::Type by calling val_ty, but one llvm::Type corresponds to many Tys; for instance, tup(int, int, int) and rec(x=int, y=int, z=int) will have the same llvm::Type.

Structsยง

ValueIter ๐Ÿ”’

Functionsยง

compile_codegen_unit ๐Ÿ”’
iter_global_aliases ๐Ÿ”’
iter_globals ๐Ÿ”’
linkage_to_llvm ๐Ÿ”’
set_link_section ๐Ÿ”’
set_variable_sanitizer_attrs ๐Ÿ”’
visibility_to_llvm ๐Ÿ”’