A frame that represents the Function containing TIR statements.
More...
#include <frame.h>
|
| using | AttrValidator = std::function< void(const FunctionFrameObj *, const ffi::Any &)> |
| | Register validation for an extension-owned function attribute.
|
| |
|
| ffi::Optional< ffi::String > | name |
| | The name of the block.
|
| |
| ffi::Array< tvm::Var > | args |
| | Function parameters.
|
| |
| bool | is_private |
| | Whether the Function is annotated as private.
|
| |
| ffi::Optional< Type > | ret_type |
| | The return type of the function.
|
| |
| ffi::Map< ffi::String, Any > | attrs |
| | Additional attributes storing the meta-data.
|
| |
| bool | persistent |
| | Whether it is a persistent kernel.
|
| |
| bool | is_declaration {false} |
| | Whether this frame declares a bodyless signature.
|
| |
| ffi::Optional< tvm::tirx::Function > | function |
| | Finalized function and its module identity.
|
| |
| ffi::Optional< GlobalVar > | global_var |
| |
| ffi::Array< tvm::Stmt > | stmts |
| | The statements within this frame.
|
| |
| std::vector< ffi::TypedFunction< void()> > | callbacks |
| | A list of callbacks used when exiting the frame.
|
| |
| Location | loc = UnknownLoc() |
| | Source context retained until this frame constructs its result.
|
| |
A frame that represents the Function containing TIR statements.
- See also
- FunctionFrame
◆ AttrValidator
Register validation for an extension-owned function attribute.
◆ ExitWithScope()
| void tvm::script::ir_builder::tirx::FunctionFrameObj::ExitWithScope |
( |
| ) |
|
|
finalvirtual |
◆ FinalizeFunction()
◆ RegisterAttrValidator()
| static void tvm::script::ir_builder::tirx::FunctionFrameObj::RegisterAttrValidator |
( |
ffi::String |
key, |
|
|
AttrValidator |
validator |
|
) |
| |
|
static |
◆ RegisterReflection()
| static void tvm::script::ir_builder::tirx::FunctionFrameObj::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO()
◆ ValidateAttrs()
| void tvm::script::ir_builder::tirx::FunctionFrameObj::ValidateAttrs |
( |
| ) |
const |
◆ args
| ffi::Array<tvm::Var> tvm::script::ir_builder::tirx::FunctionFrameObj::args |
◆ attrs
| ffi::Map<ffi::String, Any> tvm::script::ir_builder::tirx::FunctionFrameObj::attrs |
Additional attributes storing the meta-data.
◆ function
Finalized function and its module identity.
◆ global_var
| ffi::Optional<GlobalVar> tvm::script::ir_builder::tirx::FunctionFrameObj::global_var |
◆ is_declaration
| bool tvm::script::ir_builder::tirx::FunctionFrameObj::is_declaration {false} |
Whether this frame declares a bodyless signature.
◆ is_private
| bool tvm::script::ir_builder::tirx::FunctionFrameObj::is_private |
Whether the Function is annotated as private.
◆ name
| ffi::Optional<ffi::String> tvm::script::ir_builder::tirx::FunctionFrameObj::name |
◆ persistent
| bool tvm::script::ir_builder::tirx::FunctionFrameObj::persistent |
Whether it is a persistent kernel.
◆ ret_type
| ffi::Optional<Type> tvm::script::ir_builder::tirx::FunctionFrameObj::ret_type |
The return type of the function.
The documentation for this class was generated from the following file:
- include/tvm/tirx/script/ir_builder/frame.h