Hzfengsy commented on a change in pull request #8875:
URL: https://github.com/apache/tvm/pull/8875#discussion_r697968712



##########
File path: src/tir/analysis/block_access_region_detector.cc
##########
@@ -285,7 +285,39 @@ Array<Array<BufferRegion>> GetBlockAccessRegion(const 
Block& block,
   return {detector.CollectReads(), detector.CollectWrites(), 
detector.CollectOpaques()};
 }
 
-TVM_REGISTER_GLOBAL("tir.analysis.get_block_access_region").set_body_typed(GetBlockAccessRegion);
+Array<Array<BufferRegion>> GetBlockReadWriteRegion(Block block, Map<Var, 
Buffer> buffer_var_map) {

Review comment:
       ```suggestion
   Array<Array<BufferRegion>> GetBlockReadWriteRegion(const Block& block, const 
Map<Var, Buffer>& buffer_var_map) {
   ```




-- 
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]


Reply via email to