2 Module
2.1 Module Creation and Management
procedure
(llvm-module module-name) → LLVMModuleRef?
module-name : string?
procedure
(llvm-dispose-module module) → void?
module : LLVMModuleRef?
procedure
(llvm-clone-module module) → LLVMModuleRef?
module : LLVMModuleRef?
2.2 Module Verification and Output
procedure
(llvm-module-verify module) → boolean?
module : LLVMModuleRef?
procedure
(llvm-module->string module) → string?
module : LLVMModuleRef?
procedure
(llvm-dump-module module) → void?
module : LLVMModuleRef?
procedure
(llvm-print-module-to-string module) → string?
module : LLVMModuleRef?
procedure
(llvm-write-bitcode-to-file module file-path) → void? module : LLVMModuleRef? file-path : string?
2.3 Functions
procedure
(llvm-add-function module function-name function-type) → LLVMValueRef? module : LLVMModuleRef? function-name : string? function-type : LLVMTypeRef?
procedure
(llvm-get-function module name) → LLVMValueRef?
module : LLVMModuleRef? name : string?
procedure
(llvm-set-function-call-conv function cc) → void?
function : LLVMValueRef? cc : exact-nonnegative-integer?
procedure
(llvm-count-params function) → exact-nonnegative-integer?
function : LLVMValueRef?
procedure
(llvm-verify-function function action) → boolean?
function : LLVMValueRef? action : exact-nonnegative-integer?
2.4 Global Variables
procedure
(llvm-add-global module var-type var-name) → LLVMValueRef?
module : LLVMModuleRef? var-type : LLVMTypeRef? var-name : string?
procedure
(llvm-add-global-i-func module name address-space type flags resolver) → LLVMValueRef? module : LLVMModuleRef? name : string? address-space : unsigned type : LLVMTypeRef? flags : unsigned resolver : LLVMValueRef?
procedure
(llvm-add-global-in-address-space module type name address-space) → LLVMValueRef? module : LLVMModuleRef? type : LLVMTypeRef? name : string? address-space : unsigned
procedure
(llvm-add-global-mapping execution-engine global address) → void? execution-engine : LLVMExecutionEngineRef? global : LLVMValueRef? address : pointer
procedure
(llvm-get-named-global module global-variable-name) → LLVMValueRef? module : LLVMModuleRef? global-variable-name : string?
procedure
(llvm-set-initializer global constant-val) → void?
global : LLVMValueRef? constant-val : LLVMValueRef?
procedure
(llvm-get-initializer global) → LLVMValueRef?
global : LLVMValueRef?
2.5 Global Value Properties
procedure
(llvm-get-linkage global) → _llvm-linkage
global : LLVMValueRef?
procedure
(llvm-set-linkage global linkage) → void?
global : LLVMValueRef? linkage : _llvm-linkage
procedure
(llvm-get-visibility global) → _llvm-visibility
global : LLVMValueRef?
procedure
(llvm-set-visibility global visibility) → void?
global : LLVMValueRef? visibility : _llvm-visibility
procedure
(llvm-get-unnamed-address global) → _llvm-unnamed-addr
global : LLVMValueRef?
procedure
(llvm-set-unnamed-address global addr) → void?
global : LLVMValueRef? addr : _llvm-unnamed-addr
procedure
(llvm-get-dll-storage-class global) → _llvmdll-storage-class
global : LLVMValueRef?
procedure
(llvm-set-dll-storage-class global storage-class) → void? global : LLVMValueRef? storage-class : _llvmdll-storage-class
procedure
(llvm-get-thread-local-mode global) → _llvm-thread-local-mode
global : LLVMValueRef?
procedure
(llvm-set-thread-local-mode global mode) → void?
global : LLVMValueRef? mode : _llvm-thread-local-mode
2.6 COMDAT (Common Data)
procedure
(llvm-get-comdat-selection-kind comdat)
→ _llvm-comdat-selection-kind comdat : _LLVMComdatRef
procedure
(llvm-set-comdat-selection-kind comdat kind) → void? comdat : _LLVMComdatRef kind : _llvm-comdat-selection-kind
2.7 Module Flags
procedure
(llvm-add-module-flag module behavior key value) → void? module : LLVMModuleRef? behavior : _llvm-module-flag-behavior key : string? value : _LLVMMetadataRef
procedure
(llvm-module-flag-entries-get-flag-behavior entry index) → _llvm-module-flag-behavior entry : _LLVMModuleFlagEntryRef index : exact-nonnegative-integer?
2.8 Context
procedure
procedure
2.9 Initialization
procedure
procedure
2.10 Module Linking and Aliases
procedure
(llvm-add-alias2 module alias-type address-space function name) → LLVMValueRef? module : LLVMModuleRef? alias-type : LLVMTypeRef? address-space : unsigned function : LLVMValueRef? name : string?
procedure
(llvm-add-analysis-passes target-machine pass-manager) → void? target-machine : LLVMTargetMachineRef? pass-manager : LLVMPassManagerRef?