[quote="mbs-octoml, post:6, topic:12944"] (While doing this we could also ensure names begin in GlobalVar form instead of String form, since the latter causes multiple GlobalVars to be created with the same name [/quote]
Indeed the `name_hint` field in GlobalVar is supposed to work for that purpose(a hint rather than a fixed name). In TIR and likely broadly, we use `global_symbol` attr to indicate the externally enforced name(which can not change) and that name can be referenced externally and we cannot change it during compilation. > Followup on @areusch 's point merge the IRModules so that mangling transforms > are applied globally Agreed, alternatively, we still allow user to separate modules, where cross module interaction are done through a fixed `global_symbol`, which is less ideal but needed sometime. The encouraged path is to always hold as much as possible internally. --- [Visit Topic](https://discuss.tvm.apache.org/t/pre-rfc-name-mangling-in-irmodules/12944/7) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/8340f45323841fb43f1b3b174dbe9adc3e5c6c946efaf47cf77a6e1cccb6df9b).