A couple of thoughts...
- We should have a common facility that represents a scope in which names need
to be unique. Conceptually it could be a set of "known" strings (that are
presumed used), and something (like a private counter) to generate a unique
suffix. The use would be `new_name = GenerateName("foo")`. If `foo` had
already been generated, `new_name` would be set to `"foo4"` (for example).
This should not produce global variables (or any IR objects), just names.
- This RFC still doesn't settle the question whether "name_hint" is a final
name or not. I'm open to requiring that global symbols are given final names
from the beginning, not hints.
--
Reply to this email directly or view it on GitHub:
https://github.com/apache/tvm-rfcs/pull/84#issuecomment-1171508847
You are receiving this because you are subscribed to this thread.
Message ID: <apache/tvm-rfcs/pull/84/[email protected]>