pub struct Cast(/* private fields */);
Implementations§
Source§impl Cast
impl Cast
Sourcepub fn new_ranked<T: NamedMemorySpace>(
t: &MemRef,
source: &Value,
loc: &Location,
) -> Self
pub fn new_ranked<T: NamedMemorySpace>( t: &MemRef, source: &Value, loc: &Location, ) -> Self
TODO: The following properties (1 and 2) are not checked by this constructor [1]: a. Both are ranked memref types with the same element type, address space, and rank and: 1. Both have the same layout or both have compatible strided layouts. 2. The individual sizes (resp. offset and strides in the case of strided memrefs) may convert constant dimensions to dynamic dimensions and vice-versa. [1]: https://mlir.llvm.org/docs/Dialects/MemRef/#memrefcast-memrefcastop
pub fn new_unranked<T: NamedMemorySpace>( t: &UnrankedMemRef, source: &Value, loc: &Location, ) -> Self
pub fn from(op: MlirOperation) -> Self
pub fn get(&self) -> &MlirOperation
pub fn get_mut(&mut self) -> &mut MlirOperation
pub fn get_result(&self) -> Value
Trait Implementations§
Source§impl IOperation for Cast
impl IOperation for Cast
fn get(&self) -> &MlirOperation
fn get_dialect(&self) -> Dialect
fn get_effects(&self) -> MemoryEffectList
fn get_interfaces(&self) -> &'static [Interface]
fn get_mut(&mut self) -> &mut MlirOperation
fn get_name(&self) -> &'static str
fn get_op(&self) -> OpRef
fn get_traits(&self) -> &'static [Trait]
fn as_operation(&self) -> Operation ⓘ
Auto Trait Implementations§
impl Freeze for Cast
impl RefUnwindSafe for Cast
impl !Send for Cast
impl !Sync for Cast
impl Unpin for Cast
impl UnwindSafe for Cast
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