pub struct LoadOp { /* private fields */ }Expand description
Equivalent to LLVM’s Load opcode.
§Operands
| operand | description |
|---|---|
addr | PointerType |
§Result(s):
| result | description |
|---|---|
res | sized LLVM type |
Implementations§
Source§impl LoadOp
impl LoadOp
pub fn get_operand_address(&self, ctx: &Context) -> Value
Trait Implementations§
Source§impl AlignableOpInterface for LoadOp
impl AlignableOpInterface for LoadOp
impl Copy for LoadOp
impl Eq for LoadOp
Source§impl OneOpdInterface for LoadOp
impl OneOpdInterface for LoadOp
§fn get_operand(&self, ctx: &Context) -> Value
fn get_operand(&self, ctx: &Context) -> Value
Get the single operand used by this [Op].
§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 LoadOp
impl OneResultInterface for LoadOp
§fn get_result(&self, ctx: &Context) -> Value
fn get_result(&self, ctx: &Context) -> Value
Get the single result defined by this [Op].
§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 LoadOp
impl Op for LoadOp
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.
§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.
impl OperandNOfType<0, PointerType> for LoadOp
Source§impl Parsable for LoadOp
impl Parsable for LoadOp
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 Printable for LoadOp
impl Printable for LoadOp
Source§impl PromotableOpInterface for LoadOp
impl PromotableOpInterface for LoadOp
Source§fn promotion_kind(
&self,
ctx: &Context,
alloc_info: &AllocInfo,
) -> PromotableOpKind
fn promotion_kind( &self, ctx: &Context, alloc_info: &AllocInfo, ) -> PromotableOpKind
Get the kind of register promotion for this operation for
alloc_info. Read moreimpl StructuralPartialEq for LoadOp
Source§impl VolatilityOpInterface for LoadOp
impl VolatilityOpInterface for LoadOp
Source§fn is_volatile(&self, ctx: &Context) -> boolwhere
Self: Sized,
fn is_volatile(&self, ctx: &Context) -> boolwhere
Self: Sized,
Return whether this [Op] is volatile.
Source§fn set_volatile(&self, ctx: &Context, is_volatile: bool)where
Self: Sized,
fn set_volatile(&self, ctx: &Context, is_volatile: bool)where
Self: Sized,
Set whether this [Op] is volatile.
Auto Trait Implementations§
impl !RefUnwindSafe for LoadOp
impl !UnwindSafe for LoadOp
impl Freeze for LoadOp
impl Send for LoadOp
impl Sync for LoadOp
impl Unpin for LoadOp
impl UnsafeUnpin for LoadOp
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.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.