-
[Arith] Make Analyzer a tvm-ffi Object (#19675)
发布于
2026-06-08 14:13:56 +00:00 This PR makes
arith::Analyzera first-class tvm-ffi object.The implementation splits the previous concrete
Analyzerclass into:AnalyzerObj, the mutable object node that owns analyzer state,
sub-analyzers, caches, and bindingsAnalyzer, a reference-countedObjectRefhandle that can be passed
across the tvm-ffi boundary
This allows Python and C++ to share the same analyzer instance, so
bindings, constraints, and cached facts can persist across FFI calls.Public APIs that accept an analyzer now use
const arith::Analyzer&,
while internal helper APIs that only borrow the object continue to use
AnalyzerObj*.
Co-authored-by: Ubospica ubospica@gmail.com
下载附件