On this page:
8.18
top
up

1ModuleπŸ”— i

procedure

( llvm-module module-name)LLVMModuleRef?

module-name:string?
llvm-module returns a module, the core concept in LLVM. We puts global variables, functions, and type definitions in module.

procedure

( llvm-module-verify module)boolean?

verify given module

procedure

( llvm-module->string module)string?

convert given module as string

procedure

function-name
function-type)LLVMValueRef?
function-name:string?
function-type:LLVMTypeRef?
Add function into given module, return a function value. The function name is given by function-name, the function type is given by function-type.

procedure

( llvm-add-global modulevar-typevar-name)LLVMValueRef?

var-type:LLVMTypeRef?
var-name:string?
Add a global variable into given module.

procedure

global-variable-name)LLVMValueRef?
global-variable-name:string?
Get global variable reference by its name.

procedure

file-path)void?
file-path:string?
Write module as content of file-path.

top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /