pub struct ScalableVectorValue<'ctx> { /* private fields */ }
Implementations§
Source§impl<'ctx> ScalableVectorValue<'ctx>
impl<'ctx> ScalableVectorValue<'ctx>
Sourcepub unsafe fn new(scalable_vector_value: LLVMValueRef) -> Self
pub unsafe fn new(scalable_vector_value: LLVMValueRef) -> Self
Sourcepub fn is_const(self) -> bool
pub fn is_const(self) -> bool
Determines whether or not a ScalableVectorValue
is a constant.
§Example
ⓘ
use inkwell::context::Context;
let context = Context::create();
let i8_type = context.i8_type();
let i8_scalable_vec_type = i8_type.scalable_vec_type(3);
let i8_scalable_vec_zero = i8_scalable_vec_type.const_zero();
assert!(i8_scalable_vec_zero.is_const());
pub fn print_to_stderr(self)
Sourcepub fn get_name(&self) -> &CStr
pub fn get_name(&self) -> &CStr
Gets the name of a ScalableVectorValue
. If the value is a constant, this will
return an empty string.
pub fn get_type(self) -> ScalableVectorType<'ctx>
pub fn is_null(self) -> bool
pub fn is_undef(self) -> bool
pub fn as_instruction(self) -> Option<InstructionValue<'ctx>>
pub fn const_extract_element( self, index: IntValue<'ctx>, ) -> BasicValueEnum<'ctx>
pub fn const_insert_element<BV: BasicValue<'ctx>>( self, index: IntValue<'ctx>, value: BV, ) -> BasicValueEnum<'ctx>
pub fn replace_all_uses_with(self, other: ScalableVectorValue<'ctx>)
pub fn get_element_as_constant(self, index: u32) -> BasicValueEnum<'ctx>
pub fn const_shuffle_vector( self, right: ScalableVectorValue<'ctx>, mask: ScalableVectorValue<'ctx>, ) -> ScalableVectorValue<'ctx>
Trait Implementations§
Source§impl<'ctx> AnyValue<'ctx> for ScalableVectorValue<'ctx>
impl<'ctx> AnyValue<'ctx> for ScalableVectorValue<'ctx>
Source§fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>
fn as_any_value_enum(&self) -> AnyValueEnum<'ctx>
Returns an enum containing a typed version of
AnyValue
.Source§fn print_to_string(&self) -> LLVMString
fn print_to_string(&self) -> LLVMString
Prints a value to a
LLVMString
Source§impl AsValueRef for ScalableVectorValue<'_>
impl AsValueRef for ScalableVectorValue<'_>
fn as_value_ref(&self) -> LLVMValueRef
Source§impl<'ctx> BasicValue<'ctx> for ScalableVectorValue<'ctx>
impl<'ctx> BasicValue<'ctx> for ScalableVectorValue<'ctx>
Source§fn 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
.Source§fn 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
fn get_first_use(&self) -> Option<BasicValueUse<'_>>
Source§impl<'ctx> Clone for ScalableVectorValue<'ctx>
impl<'ctx> Clone for ScalableVectorValue<'ctx>
Source§fn clone(&self) -> ScalableVectorValue<'ctx>
fn clone(&self) -> ScalableVectorValue<'ctx>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'ctx> Debug for ScalableVectorValue<'ctx>
impl<'ctx> Debug for ScalableVectorValue<'ctx>
Source§impl Display for ScalableVectorValue<'_>
impl Display for ScalableVectorValue<'_>
Source§impl<'ctx> FloatMathValue<'ctx> for ScalableVectorValue<'ctx>
impl<'ctx> FloatMathValue<'ctx> for ScalableVectorValue<'ctx>
type BaseType = ScalableVectorType<'ctx>
unsafe fn new(value: LLVMValueRef) -> ScalableVectorValue<'ctx>
Source§impl<'ctx> From<ScalableVectorValue<'ctx>> for AnyValueEnum<'ctx>
impl<'ctx> From<ScalableVectorValue<'ctx>> for AnyValueEnum<'ctx>
Source§fn from(value: ScalableVectorValue<'_>) -> AnyValueEnum<'_>
fn from(value: ScalableVectorValue<'_>) -> AnyValueEnum<'_>
Converts to this type from the input type.
Source§impl<'ctx> From<ScalableVectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> From<ScalableVectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>
Source§fn from(value: ScalableVectorValue<'_>) -> BasicMetadataValueEnum<'_>
fn from(value: ScalableVectorValue<'_>) -> BasicMetadataValueEnum<'_>
Converts to this type from the input type.
Source§impl<'ctx> From<ScalableVectorValue<'ctx>> for BasicValueEnum<'ctx>
impl<'ctx> From<ScalableVectorValue<'ctx>> for BasicValueEnum<'ctx>
Source§fn from(value: ScalableVectorValue<'_>) -> BasicValueEnum<'_>
fn from(value: ScalableVectorValue<'_>) -> BasicValueEnum<'_>
Converts to this type from the input type.
Source§impl<'ctx> Hash for ScalableVectorValue<'ctx>
impl<'ctx> Hash for ScalableVectorValue<'ctx>
Source§impl<'ctx> IntMathValue<'ctx> for ScalableVectorValue<'ctx>
impl<'ctx> IntMathValue<'ctx> for ScalableVectorValue<'ctx>
type BaseType = ScalableVectorType<'ctx>
unsafe fn new(value: LLVMValueRef) -> ScalableVectorValue<'ctx>
Source§impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for ScalableVectorValue<'ctx>
impl<'ctx> PartialEq<AnyValueEnum<'ctx>> for ScalableVectorValue<'ctx>
Source§impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for ScalableVectorValue<'ctx>
impl<'ctx> PartialEq<BasicMetadataValueEnum<'ctx>> for ScalableVectorValue<'ctx>
Source§fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
fn eq(&self, other: &BasicMetadataValueEnum<'ctx>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for ScalableVectorValue<'ctx>
impl<'ctx> PartialEq<BasicValueEnum<'ctx>> for ScalableVectorValue<'ctx>
Source§impl<'ctx> PartialEq<ScalableVectorValue<'ctx>> for AnyValueEnum<'ctx>
impl<'ctx> PartialEq<ScalableVectorValue<'ctx>> for AnyValueEnum<'ctx>
Source§impl<'ctx> PartialEq<ScalableVectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>
impl<'ctx> PartialEq<ScalableVectorValue<'ctx>> for BasicMetadataValueEnum<'ctx>
Source§impl<'ctx> PartialEq<ScalableVectorValue<'ctx>> for BasicValueEnum<'ctx>
impl<'ctx> PartialEq<ScalableVectorValue<'ctx>> for BasicValueEnum<'ctx>
Source§impl<'ctx> PartialEq for ScalableVectorValue<'ctx>
impl<'ctx> PartialEq for ScalableVectorValue<'ctx>
Source§impl<'ctx> PointerMathValue<'ctx> for ScalableVectorValue<'ctx>
impl<'ctx> PointerMathValue<'ctx> for ScalableVectorValue<'ctx>
type BaseType = ScalableVectorType<'ctx>
unsafe fn new(value: LLVMValueRef) -> ScalableVectorValue<'ctx>
Source§impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for ScalableVectorValue<'ctx>
impl<'ctx> TryFrom<AnyValueEnum<'ctx>> for ScalableVectorValue<'ctx>
Source§impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for ScalableVectorValue<'ctx>
impl<'ctx> TryFrom<BasicMetadataValueEnum<'ctx>> for ScalableVectorValue<'ctx>
Source§impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for ScalableVectorValue<'ctx>
impl<'ctx> TryFrom<BasicValueEnum<'ctx>> for ScalableVectorValue<'ctx>
Source§impl<'ctx> VectorBaseValue<'ctx> for ScalableVectorValue<'ctx>
impl<'ctx> VectorBaseValue<'ctx> for ScalableVectorValue<'ctx>
unsafe fn new(value: LLVMValueRef) -> ScalableVectorValue<'ctx>
impl<'ctx> Copy for ScalableVectorValue<'ctx>
impl<'ctx> Eq for ScalableVectorValue<'ctx>
impl<'ctx> StructuralPartialEq for ScalableVectorValue<'ctx>
Auto Trait Implementations§
impl<'ctx> Freeze for ScalableVectorValue<'ctx>
impl<'ctx> RefUnwindSafe for ScalableVectorValue<'ctx>
impl<'ctx> !Send for ScalableVectorValue<'ctx>
impl<'ctx> !Sync for ScalableVectorValue<'ctx>
impl<'ctx> Unpin for ScalableVectorValue<'ctx>
impl<'ctx> UnwindSafe for ScalableVectorValue<'ctx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more