|
tvm
|
Managed reference to AnalyzerObj. More...
#include <analyzer.h>
Public Member Functions | |
| Analyzer () | |
| Construct a fresh analyzer. | |
| Analyzer (ffi::ObjectPtr< AnalyzerObj > n) | |
| Adopt a reference to a non-null analyzer object. | |
| TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (Analyzer, ffi::ObjectRef, AnalyzerObj) | |
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.
|
inline |
Construct a fresh analyzer.
|
inlineexplicit |
Adopt a reference to a non-null analyzer object.
| tvm::sym::Analyzer::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE | ( | Analyzer | , |
| ffi::ObjectRef | , | ||
| AnalyzerObj | |||
| ) |