tvm
Public Member Functions | List of all members
tvm::arith::Analyzer Class Reference

Managed reference to AnalyzerObj. More...

#include <analyzer.h>

Inheritance diagram for tvm::arith::Analyzer:
Collaboration diagram for tvm::arith::Analyzer:

Public Member Functions

 Analyzer ()
 Default-construct a fresh analyzer (allocates an AnalyzerObj). More...
 
 Analyzer (ffi::ObjectPtr< AnalyzerObj > n)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Analyzer, ffi::ObjectRef, AnalyzerObj)
 

Detailed Description

Managed reference to AnalyzerObj.

Analyzer is a lightweight, reference-counted handle around a heap-allocated AnalyzerObj. Because it is now a first-class FFI object, an Analyzer can be passed across the tvm-ffi boundary (e.g. handed from Python into a C++ pass) and shared, so that accumulated bindings/constraints persist across calls. Copying an Analyzer copies the handle, and both handles share the same mutable AnalyzerObj state. This is not a deep copy of analyzer facts or caches.

See also
AnalyzerObj

Constructor & Destructor Documentation

◆ Analyzer() [1/2]

tvm::arith::Analyzer::Analyzer ( )
inline

Default-construct a fresh analyzer (allocates an AnalyzerObj).

◆ Analyzer() [2/2]

tvm::arith::Analyzer::Analyzer ( ffi::ObjectPtr< AnalyzerObj n)
inlineexplicit

Member Function Documentation

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::arith::Analyzer::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( Analyzer  ,
ffi::ObjectRef  ,
AnalyzerObj   
)

The documentation for this class was generated from the following file: