xrcf::dialect::llvm

Struct CallOp

Source
pub struct CallOp { /* private fields */ }
Expand description

llvm.call

`llvm.call` $callee `(` $operands `)` attr-dict `:` `(` type($operands) `)` -> type($results)

Implementations§

Trait Implementations§

Source§

impl Call for CallOp

Source§

fn identifier(&self) -> Option<String>

Source§

fn set_identifier(&mut self, identifier: String)

Source§

fn varargs(&self) -> Option<Shared<dyn Type>>

Source§

fn set_varargs(&mut self, varargs: Option<Shared<dyn Type>>)

Source§

fn display_call_op(&self, f: &mut Formatter<'_>) -> Result

Source§

fn parse_call_op<T: ParserDispatch, O: Call + 'static>( parser: &mut Parser<T>, parent: Option<Shared<Block>>, allow_varargs: bool, ) -> Result<Shared<O>>

Parse a call op such as llvm.call. Read more
Source§

impl Op for CallOp

Source§

fn operation_name() -> OperationName

Source§

fn new(operation: Shared<Operation>) -> Self

Create an new Op from an Operation. Read more
Source§

fn as_any(&self) -> &dyn Any

Source§

fn operation(&self) -> &Shared<Operation>

Source§

fn display(&self, f: &mut Formatter<'_>, _indent: i32) -> Result

Display the operation with the given indentation. Read more
Source§

fn from_operation_arc(operation: Shared<Operation>) -> Self
where Self: Sized,

Create an Op from an Operation wrapped in an Arc. Read more
Source§

fn from_operation(operation: Operation) -> Self
where Self: Sized,

Create an Op from an Operation. Read more
Source§

fn name(&self) -> OperationName

Source§

fn region(&self) -> Option<Shared<Region>>

Source§

fn assignments(&self) -> Result<Values>

Returns the values which this Op assigns to. For most ops, this is the results field of type OpResult. But for some other ops like FuncOp, this can be different.
Source§

fn canonicalize(&self) -> RewriteResult

Source§

fn is_terminator(&self) -> bool

Source§

fn is_func(&self) -> bool

Source§

fn is_const(&self) -> bool

Source§

fn is_pure(&self) -> bool

Source§

fn attribute(&self, key: &str) -> Option<Arc<dyn Attribute>>

Source§

fn insert_before(&self, earlier: Shared<dyn Op>)

Insert earlier before self inside self’s parent block.
Source§

fn insert_after(&self, later: Shared<dyn Op>)

Insert later after self inside self’s parent block.
Source§

fn remove(&self)

Remove the operation from its parent block.
Source§

fn replace(&self, new: Shared<dyn Op>)

Replace self with new by moving the results of the old operation to the results of the specified new op, and pointing the result.defining_op to the new op. In effect, this makes all the uses of the old op refer to the new op instead. Read more
Source§

fn ops(&self) -> Vec<Shared<dyn Op>>

Return ops that are children of this op (inside blocks that are inside the region). Read more
Source§

fn parent_op(&self) -> Option<Shared<dyn Op>>

Source§

fn set_parent(&self, parent: Shared<Block>)

Source§

fn result(&self, index: usize) -> Shared<Value>

Return the result at the given index. Read more
Source§

impl Parse for CallOp

Source§

fn op<T: ParserDispatch>( parser: &mut Parser<T>, parent: Option<Shared<Block>>, ) -> Result<Shared<dyn Op>>

Auto Trait Implementations§

§

impl Freeze for CallOp

§

impl !RefUnwindSafe for CallOp

§

impl !Send for CallOp

§

impl !Sync for CallOp

§

impl Unpin for CallOp

§

impl !UnwindSafe for CallOp

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more