Managed reference to an IRBuilderObj.
More...
#include <base.h>
|
| 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 IRBuilderObj.
- See also
- IRBuilderObj
◆ IRBuilder()
| tvm::script::ir_builder::IRBuilder::IRBuilder |
( |
| ) |
|
◆ Current()
| static IRBuilder tvm::script::ir_builder::IRBuilder::Current |
( |
| ) |
|
|
static |
◆ EnterWithScope()
| void tvm::script::ir_builder::IRBuilder::EnterWithScope |
( |
| ) |
|
Puts the current IRBuilder into a thread-local scope, which can be retrieved using IRBuilder::Current().
{
}
RAII wrapper function to enter and exit a context object similar to python's with syntax.
Definition with_context.h:59
Managed reference to an IRBuilderObj.
Definition base.h:194
- See also
- IRBuilder::Current
-
IRBuilder::ExitWithScope
-
tvm::support::With
◆ ExitWithScope()
| void tvm::script::ir_builder::IRBuilder::ExitWithScope |
( |
| ) |
|
◆ IsInScope()
| static bool tvm::script::ir_builder::IRBuilder::IsInScope |
( |
| ) |
|
|
static |
See if the current thread-local scope has an IRBuilder.
◆ Name()
template<class TObjectRef >
| TObjectRef tvm::script::ir_builder::IRBuilder::Name |
( |
ffi::String |
name, |
|
|
TObjectRef |
obj |
|
) |
| |
|
inlinestatic |
Give a string name to the obj
- Template Parameters
-
| TObjectRef | The type of the object to name. |
- Parameters
-
| name | The name to give to the object. |
| obj | The object to name. |
◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()
| tvm::script::ir_builder::IRBuilder::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE |
( |
IRBuilder |
, |
|
|
ffi::ObjectRef |
, |
|
|
IRBuilderObj |
|
|
) |
| |
The documentation for this class was generated from the following file:
- include/tvm/script/ir_builder/base.h