pub struct AddrSpaceCastOp { /* private fields */ }Expand description
Equivalent to LLVM’s AddrSpaceCast opcode: casts a pointer to a pointer in a different address space.
§Operands
| operand | description |
|---|---|
arg | PointerType |
§Result(s):
| result | description |
|---|---|
res | PointerType |
Implementations§
Source§impl AddrSpaceCastOp
impl AddrSpaceCastOp
pub fn get_operand_arg(&self, ctx: &Context) -> Value
Trait Implementations§
Source§impl CastOpInterface for AddrSpaceCastOp
impl CastOpInterface for AddrSpaceCastOp
Source§impl Clone for AddrSpaceCastOp
impl Clone for AddrSpaceCastOp
Source§fn clone(&self) -> AddrSpaceCastOp
fn clone(&self) -> AddrSpaceCastOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Hash for AddrSpaceCastOp
impl Hash for AddrSpaceCastOp
Source§impl OneOpdInterface for AddrSpaceCastOp
impl OneOpdInterface for AddrSpaceCastOp
Source§fn operand_type(&self, ctx: &Context) -> TypeHandle
fn operand_type(&self, ctx: &Context) -> TypeHandle
Get the type of the single operand used by this Op.
Source§impl OneResultInterface for AddrSpaceCastOp
impl OneResultInterface for AddrSpaceCastOp
Source§fn result_type(&self, ctx: &Context) -> TypeHandle
fn result_type(&self, ctx: &Context) -> TypeHandle
Get the type of the single result defined by this Op.
Source§impl Op for AddrSpaceCastOp
impl Op for AddrSpaceCastOp
Source§fn get_operation(&self) -> Ptr<Operation>
fn get_operation(&self) -> Ptr<Operation>
Get the underlying IR Operation
Source§fn get_opid_static() -> OpId
fn get_opid_static() -> OpId
Get this Op’s OpId, without self reference.
Source§fn get_concrete_op_info() -> (fn(Ptr<Operation>) -> OpBox, TypeId)where
Self: Sized,
fn get_concrete_op_info() -> (fn(Ptr<Operation>) -> OpBox, TypeId)where
Self: Sized,
Get details about the concrete Op type.
Source§impl Parsable for AddrSpaceCastOp
impl Parsable for AddrSpaceCastOp
Source§type Arg = Vec<(Identifier, Location)>
type Arg = Vec<(Identifier, Location)>
Type of the argument that must be passed to the parser.
Source§fn parse<'__pliron_parse>(
state_stream: &mut StateStream<'__pliron_parse>,
arg: Self::Arg,
) -> ParseResult<'__pliron_parse, Self::Parsed>
fn parse<'__pliron_parse>( state_stream: &mut StateStream<'__pliron_parse>, arg: Self::Arg, ) -> ParseResult<'__pliron_parse, Self::Parsed>
Define a parser using existing combinators and call
into on [Parser::parse_stream] to get the final ParseResult.
Use state_stream.state as necessary.Source§impl PartialEq for AddrSpaceCastOp
impl PartialEq for AddrSpaceCastOp
Source§fn eq(&self, other: &AddrSpaceCastOp) -> bool
fn eq(&self, other: &AddrSpaceCastOp) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Printable for AddrSpaceCastOp
impl Printable for AddrSpaceCastOp
impl Copy for AddrSpaceCastOp
impl Eq for AddrSpaceCastOp
impl OperandNOfType<0, PointerType> for AddrSpaceCastOp
impl ResultNOfType<0, PointerType> for AddrSpaceCastOp
impl StructuralPartialEq for AddrSpaceCastOp
Auto Trait Implementations§
impl Freeze for AddrSpaceCastOp
impl !RefUnwindSafe for AddrSpaceCastOp
impl Send for AddrSpaceCastOp
impl Sync for AddrSpaceCastOp
impl Unpin for AddrSpaceCastOp
impl UnsafeUnpin for AddrSpaceCastOp
impl !UnwindSafe for AddrSpaceCastOp
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.