pub struct PrintOperation<'c> { /* private fields */ }
Expand description
A print
operation. Print operation (for testing and debugging).
Prints the source vector (or scalar) to stdout in human readable format (for testing and debugging). No return value.
Example:
%0 = arith.constant 0.0 : f32
%1 = vector.broadcast %0 : f32 to vector<4xf32>
vector.print %1 : vector<4xf32>
when lowered to LLVM, the vector print is unrolled into
elementary printing method calls that at runtime will yield
( 0.0, 0.0, 0.0, 0.0 )
on stdout when linked with a small runtime support library,
which only needs to provide a few printing methods (single
value for all data types, opening/closing bracket, comma,
newline).
Implementations§
Trait Implementations§
source§impl<'c> From<PrintOperation<'c>> for Operation<'c>
impl<'c> From<PrintOperation<'c>> for Operation<'c>
source§fn from(operation: PrintOperation<'c>) -> Self
fn from(operation: PrintOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for PrintOperation<'c>
impl<'c> !Send for PrintOperation<'c>
impl<'c> !Sync for PrintOperation<'c>
impl<'c> Unpin for PrintOperation<'c>
impl<'c> UnwindSafe for PrintOperation<'c>
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