Module global_variables

Source

Enums§

ThreadLocalMode
Represents the thread-local storage (TLS) model for a global variable in LLVM.

Functions§

add_global
Adds a new global variable of the specified type to the module.
add_global_in_address_space
Adds a new global variable of the specified type to the module in a specific address space.
delete_global
Deletes the specified global variable.
get_first_global
Retrieves the first global variable defined in the module.
get_initializer
Get the initializer for a global variable.
get_last_global
Retrieves the last global variable defined in the module.
get_named_global
Retrieves a global variable by its name from the module.
get_next_global
Retrieves the next global variable following the current one in the module.
get_previous_global
Retrieves the previous global variable preceding the current one in the module.
get_thread_local_mode
Retrieves the thread-local storage (TLS) mode of the global variable.
is_externally_initialized
Determines if the global variable is externally initialized.
is_global_constant
Determines if the global variable is a constant.
is_thread_local
Determines if the global variable is thread-local.
set_externally_initialized
Sets whether the global variable is externally initialized.
set_global_constant
Sets whether the global variable is a constant.
set_initializer
Sets the initializer for a global variable.
set_thread_local
Sets whether the global variable is thread-local.
set_thread_local_mode
Sets the thread-local storage (TLS) mode for the global variable.