Class IRBuilder#
Defined in File base.h
Inheritance Relationships#
Base Type#
public ffi::ObjectRef
Class Documentation#
-
class IRBuilder : public ffi::ObjectRef#
Managed reference to an IRBuilderObj.
See also
Public Types
-
using ContainerType = IRBuilderObj#
Public Functions
-
inline explicit IRBuilder(::tvm::ffi::UnsafeInit tag)#
-
inline __PtrType operator->() const#
-
inline __PtrType get() const#
-
void EnterWithScope()#
Puts the current IRBuilder into a thread-local scope, which can be retrieved using
IRBuilder::Current().IRBuilder builder; { With<IRBuilder> _(builder); // IRBuilder::Current() == builder } // IRBuilder::Current() == nullptr
See also
See also
See also
tvm::support::With
-
void ExitWithScope()#
Exit the RAII scope.
See also
See also
See also
tvm::support::With
Public Static Functions
-
static IRBuilder Current()#
Get the current IRBuilder in the current thread-local scope.
See also
See also
See also
tvm::support::With
- Returns:
The current IRBuilder.
-
template<class TObjectRef>
static inline TObjectRef Name(ffi::String name, TObjectRef obj)# 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.
-
using ContainerType = IRBuilderObj#