pub struct VectorScaleOperation<'c> { /* private fields */ }
Expand description
A vscale
operation. Load vector scale size.
The vscale
op returns the scale of the scalable vectors, a positive
integer value that is constant at runtime but unknown at compile-time.
The scale of the vector indicates the multiplicity of the vectors and
vector operations. For example, a vector<[4]xi32>
is equivalent to
vscale
consecutive vector<4xi32>
; and an operation on a
vector<[4]xi32>
is equivalent to performing that operation vscale
times, once on each <4xi32>
segment of the scalable vector. The vscale
op can be used to calculate the step in vector-length agnostic (VLA) loops.
Right now we only support one contiguous set of scalable dimensions, all of
them grouped and scaled with the value returned by ‘vscale’.
Implementations§
source§impl<'c> VectorScaleOperation<'c>
impl<'c> VectorScaleOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> VectorScaleOperationBuilder<'c, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> VectorScaleOperationBuilder<'c, Unset>
Creates a builder.