Ok, I think I understand. I think I'd prefer if we kept two names for each variable, one for internal indexing and the other to be printed out in RDEF, rather than having that special exception if `tpf.c`, but I think I can tolerate it. I might become more vocal about it, though, if in the future the practice of prepending a variable name with a `<tag>` were to become more frequent.
I like the idea of keeping two names for each variable. I would call them `var->name` and `var->display_name`.
I'd still ask for adding some kind of `is_separeted_resource` flag to `hlsl_ir_var` rather than parsing the variable name in 9/9.
I agree with this too.