Struct llvm_rs::Interpreter
source · pub struct Interpreter(_);Expand description
The interpreter backend
Trait Implementations§
source§impl DisposeRef for Interpreter
impl DisposeRef for Interpreter
§type RefTo = LLVMOpaqueExecutionEngine
type RefTo = LLVMOpaqueExecutionEngine
What a reference to this type represents as a C pointer.
source§impl<'a> ExecutionEngine<'a> for Interpreter
impl<'a> ExecutionEngine<'a> for Interpreter
source§fn new(module: &'a Module, _: ()) -> Result<CSemiBox<'a, Interpreter>, CBox<str>>
fn new(module: &'a Module, _: ()) -> Result<CSemiBox<'a, Interpreter>, CBox<str>>
Create a new execution engine with the given
Module and optiions, or return a
description of the error. Read moresource§fn add_module(&'a self, module: &'a Module)
fn add_module(&'a self, module: &'a Module)
Add a module to the list of modules to interpret or compile.
source§fn remove_module(&'a self, module: &'a Module) -> &'a Module
fn remove_module(&'a self, module: &'a Module) -> &'a Module
Remove a module from the list of modules to interpret or compile.
source§fn run_static_constructors(&'a self)
fn run_static_constructors(&'a self)
Execute all of the static constructors for this program.
source§fn run_static_destructors(&'a self)
fn run_static_destructors(&'a self)
Execute all of the static destructors for this program.
source§fn find_function(&'a self, name: &str) -> Option<&'a Function>
fn find_function(&'a self, name: &str) -> Option<&'a Function>
Attempt to find a function with the name given, or
None if there wasn’t
a function with that name. Read moresource§fn run_function(
&'a self,
function: &'a Function,
args: &[&'a GenericValue]
) -> &'a GenericValue
fn run_function(
&'a self,
function: &'a Function,
args: &[&'a GenericValue]
) -> &'a GenericValue
Run
function with the arguments given as ``GenericValue`s, then return the result as one. Read moresource§impl<'a> From<&'a Interpreter> for LLVMExecutionEngineRef
impl<'a> From<&'a Interpreter> for LLVMExecutionEngineRef
source§fn from(ty: &'a Interpreter) -> LLVMExecutionEngineRef
fn from(ty: &'a Interpreter) -> LLVMExecutionEngineRef
Converts to this type from the input type.
source§impl<'a> From<&'a mut Interpreter> for LLVMExecutionEngineRef
impl<'a> From<&'a mut Interpreter> for LLVMExecutionEngineRef
source§fn from(ty: &'a mut Interpreter) -> LLVMExecutionEngineRef
fn from(ty: &'a mut Interpreter) -> LLVMExecutionEngineRef
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMOpaqueExecutionEngine> for &'a Interpreter
impl<'a> From<*mut LLVMOpaqueExecutionEngine> for &'a Interpreter
source§fn from(ty: LLVMExecutionEngineRef) -> &'a Interpreter
fn from(ty: LLVMExecutionEngineRef) -> &'a Interpreter
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMOpaqueExecutionEngine> for &'a mut Interpreter
impl<'a> From<*mut LLVMOpaqueExecutionEngine> for &'a mut Interpreter
source§fn from(ty: LLVMExecutionEngineRef) -> &'a mut Interpreter
fn from(ty: LLVMExecutionEngineRef) -> &'a mut Interpreter
Converts to this type from the input type.