Enum cubecl_core::ir::Variable
source · pub enum Variable {
Show 32 variants
Rank,
GlobalInputArray {
id: u16,
item: Item,
},
GlobalScalar {
id: u16,
elem: Elem,
},
GlobalOutputArray {
id: u16,
item: Item,
},
Local {
id: u16,
item: Item,
depth: u8,
},
LocalScalar {
id: u16,
elem: Elem,
depth: u8,
},
ConstantScalar(ConstantScalarValue),
SharedMemory {
id: u16,
item: Item,
length: u32,
},
LocalArray {
id: u16,
item: Item,
depth: u8,
length: u32,
},
Matrix {
id: u16,
mat: Matrix,
depth: u8,
},
Slice {
id: u16,
item: Item,
depth: u8,
},
UnitPos,
UnitPosX,
UnitPosY,
UnitPosZ,
CubePos,
CubePosX,
CubePosY,
CubePosZ,
CubeDim,
CubeDimX,
CubeDimY,
CubeDimZ,
CubeCount,
CubeCountX,
CubeCountY,
CubeCountZ,
SubcubeDim,
AbsolutePos,
AbsolutePosX,
AbsolutePosY,
AbsolutePosZ,
}
Variants§
Rank
GlobalInputArray
GlobalScalar
GlobalOutputArray
Local
LocalScalar
ConstantScalar(ConstantScalarValue)
LocalArray
Matrix
Slice
UnitPos
UnitPosX
UnitPosY
UnitPosZ
CubePos
CubePosX
CubePosY
CubePosZ
CubeDim
CubeDimX
CubeDimY
CubeDimZ
CubeCount
CubeCountX
CubeCountY
CubeCountZ
SubcubeDim
AbsolutePos
AbsolutePosX
AbsolutePosY
AbsolutePosZ
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Variable
impl<'de> Deserialize<'de> for Variable
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ExpandElement> for Variable
impl From<ExpandElement> for Variable
source§fn from(value: ExpandElement) -> Self
fn from(value: ExpandElement) -> Self
Converts to this type from the input type.
impl Copy for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)