pub struct LayoutTransform {
pub target: MemoryLayout,
}Expand description
Assigns a target memory layout to all tensor-typed global variables that do not already have a layout annotation.
This pass propagates the target layout uniformly. A more advanced version could perform per-tensor analysis to minimize conversion overhead.
Fields§
§target: MemoryLayoutThe target layout to assign.
Trait Implementations§
Source§impl Debug for LayoutTransform
impl Debug for LayoutTransform
Auto Trait Implementations§
impl Freeze for LayoutTransform
impl RefUnwindSafe for LayoutTransform
impl Send for LayoutTransform
impl Sync for LayoutTransform
impl Unpin for LayoutTransform
impl UnsafeUnpin for LayoutTransform
impl UnwindSafe for LayoutTransform
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