Trait inkwell::values::BasicValue

source ·
pub unsafe trait BasicValue<'ctx>: AnyValue<'ctx> {
    // Provided methods
    fn as_basic_value_enum(&self) -> BasicValueEnum<'ctx> { ... }
    fn as_instruction_value(&self) -> Option<InstructionValue<'ctx>> { ... }
    fn get_first_use(&self) -> Option<BasicValueUse<'_>> { ... }
    fn set_name(&self, name: &str) { ... }
}
Expand description

Represents a basic value, which can be used both by itself, or in an AggregateValue.

Provided Methods§

source

fn as_basic_value_enum(&self) -> BasicValueEnum<'ctx>

Returns an enum containing a typed version of the BasicValue.

source

fn as_instruction_value(&self) -> Option<InstructionValue<'ctx>>

Most BasicValues are the byproduct of an instruction and so are convertible into an InstructionValue

source

fn get_first_use(&self) -> Option<BasicValueUse<'_>>

source

fn set_name(&self, name: &str)

Sets the name of a BasicValue. If the value is a constant, this is a noop.

Implementors§

source§

impl<'ctx> BasicValue<'ctx> for AggregateValueEnum<'ctx>

source§

impl<'ctx> BasicValue<'ctx> for BasicValueEnum<'ctx>

source§

impl<'ctx> BasicValue<'ctx> for ArrayValue<'ctx>

source§

impl<'ctx> BasicValue<'ctx> for FloatValue<'ctx>

source§

impl<'ctx> BasicValue<'ctx> for GlobalValue<'ctx>

source§

impl<'ctx> BasicValue<'ctx> for IntValue<'ctx>

source§

impl<'ctx> BasicValue<'ctx> for PointerValue<'ctx>

source§

impl<'ctx> BasicValue<'ctx> for StructValue<'ctx>

source§

impl<'ctx> BasicValue<'ctx> for VectorValue<'ctx>