Lunderberg opened a new pull request, #11970: URL: https://github.com/apache/tvm/pull/11970
This PR factors extracts functionality of `BufferDomainTouched` out into `IRVisitorWithAnalyzer` and `IntSetAnalyzer`. It is broken up into the following sequence of changes, each in a separate commit for ease of review. - Allow binding of `Var` in `IntSetAnalyzer`, similar to the other four subanalyzers in `arith::Analyzer`. - Updated `IRVisitorWithAnalyzer` to mimic `IRMutatorWithAnalyzer`, to allow subclassing when implementing other visitors. - Moved `IRVisitorWithAnalyzer` to `tvm::arith` namespace. This is in keeping with its location in `src/arith` directory, and further mimics `IRMutatorWithAnalyzer` - Updated `BufferDomainTouched` to use `IRVisitorWithAnalyzer`. This used the earlier changes to allow subclasses of `IRVisitorWithAnalyzer`, and to expose binding/constraints to `IntSetAnalyzer`. All tests of `BufferDomainTouched` in `test_arith_domain_touched.py` and all tests of `DomainTouchedAccessMap` in `test_tir_te_extern_primfunc.py` are all passing locally. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
