|
tvm
|
Managed reference to an IRBuilderNode. More...
#include <base.h>
Public Member Functions | |
| IRBuilder () | |
| Creates an IRBuilder. | |
| TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (IRBuilder, ffi::ObjectRef, IRBuilderNode) | |
| void | EnterWithScope () |
Puts the current IRBuilder into a thread-local scope, which can be retrieved using IRBuilder::Current(). | |
| void | ExitWithScope () |
| Exit the RAII scope. | |
Static Public Member Functions | |
| static IRBuilder | Current () |
| Get the current IRBuilder in the current thread-local scope. | |
| static bool | IsInScope () |
| See if the current thread-local scope has an IRBuilder. | |
| template<class TObjectRef > | |
| static TObjectRef | Name (ffi::String name, TObjectRef obj) |
Give a string name to the obj | |
Managed reference to an IRBuilderNode.
| tvm::script::ir_builder::IRBuilder::IRBuilder | ( | ) |
Creates an IRBuilder.
Get the current IRBuilder in the current thread-local scope.
| void tvm::script::ir_builder::IRBuilder::EnterWithScope | ( | ) |
Puts the current IRBuilder into a thread-local scope, which can be retrieved using IRBuilder::Current().
| void tvm::script::ir_builder::IRBuilder::ExitWithScope | ( | ) |
Exit the RAII scope.
See if the current thread-local scope has an IRBuilder.
|
inlinestatic |
Give a string name to the obj
| TObjectRef | The type of the object to name. |
| name | The name to give to the object. |
| obj | The object to name. |
| tvm::script::ir_builder::IRBuilder::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE | ( | IRBuilder | , |
| ffi::ObjectRef | , | ||
| IRBuilderNode | |||
| ) |