pub trait CallOpInterface: Op {
// Required methods
fn callee(&self, ctx: &Context) -> CallOpCallable;
fn args(&self, ctx: &Context) -> Vec<Value>;
// Provided methods
fn callee_type(&self, ctx: &Context) -> Ptr<TypeObj> { ... }
fn set_callee_type(&self, ctx: &mut Context, callee_ty: Ptr<TypeObj>) { ... }
}Expand description
A call-like op: Transfers control from one function to another. See MLIR’s CallOpInterface.
§Attribute(s):
| Name | Static Name Identifier | Type |
|---|---|---|
| callee_type | ATTR_KEY_CALLEE_TYPE | TypeAttr |
Required Methods§
Sourcefn callee(&self, ctx: &Context) -> CallOpCallable
fn callee(&self, ctx: &Context) -> CallOpCallable
Get the function that this call op is calling
- A symbol if this is a direct call
- A value if this is an indirect call
Provided Methods§
Sourcefn callee_type(&self, ctx: &Context) -> Ptr<TypeObj>
fn callee_type(&self, ctx: &Context) -> Ptr<TypeObj>
Type of the callee
Sourcefn set_callee_type(&self, ctx: &mut Context, callee_ty: Ptr<TypeObj>)
fn set_callee_type(&self, ctx: &mut Context, callee_ty: Ptr<TypeObj>)
Set callee type