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§
sourcefn as_basic_value_enum(&self) -> BasicValueEnum<'ctx>
fn as_basic_value_enum(&self) -> BasicValueEnum<'ctx>
Returns an enum containing a typed version of the BasicValue
.
sourcefn as_instruction_value(&self) -> Option<InstructionValue<'ctx>>
fn as_instruction_value(&self) -> Option<InstructionValue<'ctx>>
Most BasicValue
s are the byproduct of an instruction
and so are convertible into an InstructionValue