MCPcopy Create free account

hub / github.com/TomBebbington/llvm-rs / functions

Functions162 in github.com/TomBebbington/llvm-rs

↓ 10 callersFunctionwith_cstr
(text: &str, cb: C)
src/util.rs:23
↓ 8 callersMethodadd_function
Add a function to the module with the name given.
src/module.rs:100
↓ 8 callersFunctionptr_to_null
(ptr: *mut P)
src/util.rs:41
↓ 7 callersMethodappend
Add a basic block with the name given to the function and return it.
src/value.rs:228
↓ 7 callersMethodposition_at_end
Position the builder at the end of `block`.
src/builder.rs:50
↓ 6 callersMethodadd_attributes
Add all the attributes given to this argument.
src/value.rs:103
↓ 6 callersMethodbuild_ret
Build an instruction that returns from the function with `value`.
src/builder.rs:58
↓ 5 callersMethodget_type
Returns the type of this value
src/value.rs:78
↓ 5 callersFunctionto_str
(text: *mut c_char)
src/util.rs:29
↓ 4 callersMethodcompile
Compile the module into an object file at the given location. Note that this uses the LLVM tool `llc` to do this, which may or may not be installed o
src/module.rs:172
↓ 4 callersMethodverify
Verify that the module is safe to run, returning a string detailing the error when an error occurs.
src/module.rs:156
↓ 4 callersMethodwith_function
Run the closure `cb` with the machine code for the function `function`. If the function takes multiple arguments, these should be wrapped in a tuple
src/engine.rs:104
↓ 2 callersMethodbuild_call
Build an instruction that calls the function `func` with the arguments `args`. This will return the return value of the function.
src/builder.rs:91
↓ 2 callersMethodbuild_tail_call
Build an instruction that calls the function `func` with the arguments `args`. This will return the return value of the function.
src/builder.rs:101
↓ 2 callersMethodget_context
(&self)
src/value.rs:286
↓ 2 callersMethodget_type
Returns the type with the name given, or `None`` if no type with that name exists.
src/module.rs:113
↓ 2 callersMethodremove_attribute
Remove an attribute from this argument.
src/value.rs:131
↓ 1 callersMethodadd_global
Add a global to the module with the given type and name.
src/module.rs:46
↓ 1 callersMethodas_str
Returns the string representation of this target data.
src/target.rs:53
↓ 1 callersMethodbuild_switch
Build an instruction that runs whichever block matches the value, or `default` if none of them matched it.
src/builder.rs:143
↓ 1 callersMethodget_element
Returns the element of this pointer type.
src/types.rs:171
↓ 1 callersMethodget_global
Returns a pointer to the global value given. This is marked as unsafe because the type cannot be guranteed to be the same as the type of the global v
src/engine.rs:70
↓ 1 callersMethodget_signature
Returns the function signature representing this function's signature.
src/value.rs:242
↓ 1 callersMethodis_float
Returns true if this type is any floating-point number.
src/types.rs:76
↓ 1 callersMethodis_integer
Returns true if this type is an integer.
src/types.rs:71
↓ 1 callersFunctionn
(x: N)
examples/demo_3f.rs:15
↓ 1 callersMethodset_initializer
Set the initial value of the global
src/value.rs:170
↓ 1 callersFunctionto_null_str
(text: *mut c_char)
src/util.rs:34
↓ 1 callersMethodwrite_bitcode
Write this module's bitcode to the path given.
src/module.rs:90
Methodadd_attribute
Add the attribute given to this argument.
src/value.rs:99
Methodadd_global_alias
Add a global to the module with the given type and name.
src/module.rs:64
Methodadd_global_in_address_space
Add a global variable to the module with the given type, name and initial value.
src/module.rs:52
Methodadd_global_variable
Add a global variable to the module with the given type, name and initial value.
src/module.rs:58
Methodadd_module
Add a module to the list of modules to interpret or compile.
src/engine.rs:27
Methodalignment_of
Returns the alignment of the type given in bytes.
src/target.rs:41
Methodblocks
Iterate through this function's basic blocks.
src/value.rs:234
Methodbuild_alloca
Build an instruction that allocates a pointer to fit the size of `ty` then returns this pointer.
src/builder.rs:68
Methodbuild_array_alloca
Build an instruction that allocates an array with the element type `elem` and the size `size`. The size of this array will be the size of `elem` time
src/builder.rs:64
Methodbuild_bit_cast
Build an instruction that casts a value into a certain type.
src/builder.rs:113
Methodbuild_br
Build an instruction that branches to the block `dest`.
src/builder.rs:81
Methodbuild_cmp
Build an instruction to compare the values `a` and `b` with the predicate / comparative operator `pred`.
src/builder.rs:164
Methodbuild_cond_br
Build an instruction that branches to `if_block` if `cond` evaluates to true, and `else_block` otherwise.
src/builder.rs:85
Methodbuild_extract_value
Build an instruction that extracts a value from an aggregate data value.
src/builder.rs:133
Methodbuild_free
Build an instruction that frees the `val`, which _MUST_ be a pointer that was returned from `build_alloca`.
src/builder.rs:73
Methodbuild_gep
Build an instruction that computes the address of a subelement of an aggregate data structure. Basically type-safe pointer arithmetic.
src/builder.rs:139
Methodbuild_insert_value
Build an instruction that inserts a value into an aggregate data value.
src/builder.rs:129
Methodbuild_int_to_ptr
Build an instruction to bitcast in integer into a pointer.
src/builder.rs:117
Methodbuild_ret_void
Build an instruction that returns from the function with void.
src/builder.rs:54
Methodbuild_select
Build an instruction that yields to `true_val` if `cond` is equal to `1`, and `false_val` otherwise.
src/builder.rs:109
Methodbuild_store
Build an instruction that store the value `val` in the pointer `ptr`.
src/builder.rs:77
Methodbuild_trunc
Build an instruction that truncates the high-order bits of value to fit into a certain type.
src/builder.rs:125
Methodbuild_zext
Build an instruction that zero extends its operand to the type `dest`.
src/builder.rs:121
Methodclone
Clone this module.
src/module.rs:121
Methodclone
(&self)
src/object.rs:72
Methodcompile
(self, context: &'a Context)
src/compile.rs:44
Methoddelete
Delete this basic block. This is unsafe because there should be no other reference to this, but this can't be guranteed using Rust semantics.
src/block.rs:62
Methodderef
(&self)
src/buffer.rs:28
Methoddispose
(ptr: LLVMMemoryBufferRef)
src/buffer.rs:44
Methoddispose
(ptr: LLVMTargetDataRef)
src/target.rs:67
Methoddrop
(&mut self)
src/object.rs:57
Methodelement_at
Computes the structure element that contains the byte offset for a target.
src/target.rs:45
Methodfind_function
Attempt to find a function with the name given, or `None` if there wasn't a function with that name.
src/engine.rs:48
Methodfind_global
Returns a pointer to the global value with the name given. This is marked as unsafe because the type cannot be guranteed to be the same as the type o
src/engine.rs:77
Methodfmt
(&self, fmt: &mut fmt::Formatter)
src/target.rs:60
Methodfmt
(&self, fmt: &mut fmt::Formatter)
src/object.rs:77
Methodfrom
(attr: LLVMAttribute)
src/value.rs:348
Methodfrom_generic
(value: &GenericValue, ctx: &Context)
src/engine.rs:206
Methodfrom_super
Attempt to cast the given super value into an instance of this type.
src/util.rs:10
Methodfrom_super
(value: &Value)
src/block.rs:19
Methodget
Get the type given as an LLVM type descriptor in the context given.
src/types.rs:35
Methodget
Get the pointer for this symbol.
src/object.rs:83
Methodget_constant
Returns true if this global is a constant.
src/value.rs:189
Methodget_description
Returns the description of this target.
src/target.rs:80
Methodget_elements
Returns the elements that make up this struct.
src/types.rs:108
Methodget_entry
Returns the entry block of this function or `None` if there is none.
src/value.rs:238
Methodget_first
Return the first instruction for this basic block.
src/block.rs:39
Methodget_function
Returns the function with the name given, or `None` if no function with that name exists.
src/module.rs:105
Methodget_function
Returns a pointer to the machine code for the function `function`. This is marked as unsafe because the types given as arguments and return could be
src/engine.rs:128
Methodget_global
Get the global with the name given, or `None` if no global with that name exists.
src/module.rs:70
Methodget_global
Get a reference to the global context. This is marked as unsafe because this can result in undefined behaviour in a multithreaded context if they all
src/context.rs:18
Methodget_initializer
Set the initial value of the global
src/value.rs:176
Methodget_last
Return the last instruction for this basic block.
src/block.rs:43
Methodget_length
Returns the number of elements in this vector type.
src/types.rs:229
Methodget_linkage
Returns the linkage type for this global
src/value.rs:149
Methodget_name
Returns the name of this value, or `None` if it lacks a name
src/value.rs:64
Methodget_name
Returns the name of this target.
src/target.rs:76
Methodget_params
Returns a vector of this signature's parameters' types.
src/types.rs:145
Methodget_parent
Return the enclosing method, or `None` if it is not attached to a method.
src/block.rs:31
Methodget_pointer_size
Returns the size of a pointer on the target.
src/target.rs:29
Methodget_return
Returns the type that this function returns.
src/types.rs:154
Methodget_size
Returns the size of the type in bytes.
src/types.rs:83
Methodget_target
Returns the target data of this module represented as a string
src/module.rs:141
Methodget_terminator
Return the terminator instruction for this basic block.
src/block.rs:35
Methodget_type
(ctx: &'a Context)
src/compile.rs:47
Methodget_width
Returns how long an integer of this type is, in bits.
src/types.rs:188
Methodhas_asm_backend
Returns true if this target has an assembly generation backend implemented.
src/target.rs:84
Methodhas_attribute
Returns true if this argument has the attribute given.
src/value.rs:112
Methodhas_attributes
Returns true if this argument has all the attributes given.
src/value.rs:119
Methodhas_jit
Returns true if this target supports JIT compilation.
src/target.rs:88
Methodhas_target_machine
Returns true if this target has a target machine.
src/target.rs:92
next →1–100 of 162, ranked by callers