Module inkwell::module

source ·
Expand description

A Module represents a single code compilation unit.


  • Iterate over all FunctionValues in an llvm module
  • Iterate over all GlobalValues in an llvm module
  • Represents a reference to an LLVM Module. The underlying module will be disposed when dropping this object.


  • FlagBehaviorllvm7-0 or llvm8-0 or llvm9-0 or llvm10-0 or llvm11-0 or llvm12-0 or llvm13-0 or llvm14-0 or llvm15-0 or llvm16-0 or llvm17-0 or llvm18-0
    Defines the operational behavior for a module wide flag. This documentation comes directly from the LLVM docs
  • This enum defines how to link a global variable or function in a module. The variant documentation is mostly taken straight from LLVM’s own documentation except for some minor clarification.