pub struct RawBufferStoreOperation<'c> { /* private fields */ }
Expand description
A raw_buffer_store
operation. Raw Buffer Store, exposing GCN features.
The amdgpu.raw_buffer_store
op is a wrapper around the buffer store
intrinsics available on AMD GPUs, including extensions in newer GPUs.
The store index is computed as in memref.store
with the addition of
indexOffset
(which is included for uniformity with atomics and may be useful
when writing vectorized code) and sgprOffset
(which is added after bounds
checks and implicitly includes the offset of the memref type if non-zero).
All index components are in terms of the elements of the memref, not bytes,
and are scaled up appropriately.
Out of bounds stores are ignored in hardware. Wthether a vector write that includes some in-bounds and soeme out-of-bounds components is partically completed is chipset-dependent.
See amdgpu.raw_buffer_load
for a description of how the underlying
instruction is constructed.
Implementations§
source§impl<'c> RawBufferStoreOperation<'c>
impl<'c> RawBufferStoreOperation<'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>
) -> RawBufferStoreOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> RawBufferStoreOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.