Value references¶
A value reference is a wrapper around an LLVM value for you to
inspect. You cannot create a value reference yourself. You get them
from methods of the ModuleRef
and ValueRef
classes.
Enumerations¶
-
class
llvmlite.binding.
Linkage
¶ The linkage types allowed for global values are:
-
class
llvmlite.binding.
Visibility
¶ The visibility styles allowed for global values are:
The ValueRef class¶
-
class
llvmlite.binding.
ValueRef
¶ A wrapper around an LLVM value. The attributes available are:
-
is_declaration
¶ True
—The global value is a mere declaration.False
—The global value is defined in the given module.
-
-
name
¶ This value’s name, as a string. This attribute can be set.
-
-
storage_class
¶ The storage class—a
StorageClass
instance—for this value. This attribute can be set.
-
-
visibility
¶ The visibility style—a
Visibility
instance—for this value. This attribute can be set.
-
-
opcode
¶ The instruction’s opcode, as a string.
-
-
is_global
¶ The value is a global variable.
-
-
is_function
¶ The value is a function.
-
-
is_argument
¶ The value is a function’s argument.
-
-
is_block
¶ The value is a function’s basic block.
-
-
is_instruction
¶ The value is a basic block’s instruction.
-
-
is_operand
¶ The value is a instruction’s operand.
-