Struct llvm::Value [] [src]

pub struct Value;

A typed value that can be used as an operand in instructions.

Methods

impl Value
[src]

fn new_struct<'a>(context: &'a Context, vals: &[&'a Value], packed: bool) -> &'a Value

Create a new constant struct from the values given.

fn new_vector<'a>(vals: &[&'a Value]) -> &'a Value

Create a new constant vector from the values given.

fn new_string<'a>(context: &'a Context, text: &str, rust_style: bool) -> &'a Value

Create a new constant C string from the text given.

fn new_undef<'a>(ty: &'a Type) -> &'a Value

Create a new constant undefined value of the given type.

fn get_name(&self) -> Option<&str>

Returns the name of this value, or None if it lacks a name

fn set_name(&self, name: &str)

Sets the name of this value

fn get_type(&self) -> &Type

Returns the type of this value

Trait Implementations

impl Eq for Value
[src]

impl PartialEq<Value> for Value
[src]

fn eq(&self, other: &Value) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl<'a> PartialEq<Value> for &'a Value
[src]

fn eq(&self, other: &Value) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl<'a> From<LLVMValueRef> for &'a Value
[src]

fn from(ty: LLVMValueRef) -> &'a Value

Performs the conversion.

impl<'a> From<LLVMValueRef> for &'a mut Value
[src]

fn from(ty: LLVMValueRef) -> &'a mut Value

Performs the conversion.

impl GetContext for Value
[src]

fn get_context(&self) -> &Context

Returns a reference to the context that owns this value. Read more

impl Debug for Value
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.