guberti commented on code in PR #13752:
URL: https://github.com/apache/tvm/pull/13752#discussion_r1101023183


##########
src/target/source/codegen_c.cc:
##########
@@ -631,8 +632,10 @@ void CodeGenC::PrintVecBinaryOp(const std::string& op, 
DataType t, PrimExpr lhs,
   }
 }
 
+NameSupply global_name_supply = NameSupply("");
 void CodeGenC::VisitStmt_(const AllocateConstNode* op) {
-  std::string symbol_name = op->buffer_var->name_hint;
+  std::string symbol_name = 
global_name_supply->FreshName(op->buffer_var->name_hint);

Review Comment:
   Unfortunately, just calling 
`name_supply_->FreshName(op->buffer_var->name_hint);` does not work - we need 
to have a global name generator.



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