|
tvm
|
Managed reference to an IRBuilderNode. More...
#include <base.h>
Public Member Functions | |
| IRBuilder () | |
| Creates an IRBuilder. More... | |
| TVM_DEFINE_MUTABLE_NOTNULLABLE_OBJECT_REF_METHODS (IRBuilder, ObjectRef, IRBuilderNode) | |
| void | EnterWithScope () |
Puts the current IRBuilder into a thread-local scope, which can be retrieved using IRBuilder::Current(). More... | |
| void | ExitWithScope () |
| Exit the RAII scope. More... | |
Public Member Functions inherited from tvm::runtime::ObjectRef | |
| ObjectRef ()=default | |
| default constructor More... | |
| ObjectRef (ObjectPtr< Object > data) | |
| Constructor from existing object ptr. More... | |
| bool | same_as (const ObjectRef &other) const |
| Comparator. More... | |
| bool | operator== (const ObjectRef &other) const |
| Comparator. More... | |
| bool | operator!= (const ObjectRef &other) const |
| Comparator. More... | |
| bool | operator< (const ObjectRef &other) const |
| Comparator. More... | |
| bool | defined () const |
| const Object * | get () const |
| const Object * | operator-> () const |
| bool | unique () const |
| int | use_count () const |
| template<typename ObjectType > | |
| const ObjectType * | as () const |
| Try to downcast the internal Object to a raw pointer of a corresponding type. More... | |
Static Public Member Functions | |
| static IRBuilder | Current () |
| Get the current IRBuilder in the current thread-local scope. More... | |
| template<class TObjectRef > | |
| static TObjectRef | Name (String name, TObjectRef obj) |
Give a string name to the obj More... | |
Additional Inherited Members | |
Public Types inherited from tvm::runtime::ObjectRef | |
| using | ContainerType = Object |
| type indicate the container type. More... | |
Static Public Attributes inherited from tvm::runtime::ObjectRef | |
| static constexpr bool | _type_is_nullable = true |
Protected Member Functions inherited from tvm::runtime::ObjectRef | |
| Object * | get_mutable () const |
Static Protected Member Functions inherited from tvm::runtime::ObjectRef | |
| template<typename T > | |
| static T | DowncastNoCheck (ObjectRef ref) |
| Internal helper function downcast a ref without check. More... | |
| static void | FFIClearAfterMove (ObjectRef *ref) |
| Clear the object ref data field without DecRef after we successfully moved the field. More... | |
| template<typename ObjectType > | |
| static ObjectPtr< ObjectType > | GetDataPtr (const ObjectRef &ref) |
| Internal helper function get data_ as ObjectPtr of ObjectType. More... | |
Protected Attributes inherited from tvm::runtime::ObjectRef | |
| ObjectPtr< Object > | data_ |
| Internal pointer that backs the reference. More... | |
Managed reference to an IRBuilderNode.
| tvm::script::ir_builder::IRBuilder::IRBuilder | ( | ) |
Creates an IRBuilder.
|
static |
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.
|
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_DEFINE_MUTABLE_NOTNULLABLE_OBJECT_REF_METHODS | ( | IRBuilder | , |
| ObjectRef | , | ||
| IRBuilderNode | |||
| ) |
1.8.13