[llvm] generate a name of an unnamed global variable for Instruction Selection (PR #78293)

Vyacheslav Levytskyy via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 07:23:48 PST 2024


VyacheslavLevytskyy wrote:

JFYI. Just for reference purposes, I will attach here an alternative way to fix the issue with unnamed global variables (option #1 from the corresponding issue description -- as adding a special case of empty name in Instruction Selection for global variables). However, this would eventually generate something of a kind of `OpDecorate %7 LinkageAttributes ""` with an empty string used as a globally unique identifier that of course doesn't look good at all.

[unnamed_globals.patch](https://github.com/llvm/llvm-project/files/13952207/unnamed_globals.patch)


https://github.com/llvm/llvm-project/pull/78293


More information about the llvm-commits mailing list