Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:Alias

32 /// Try to emit a base destructor as an alias to its primary
38 // Producing an alias to a base class ctor/dtor can degrade debug quality
44 // an alias, unless this class owns no members.
117 /// Try to emit a definition as a global alias for another definition.
118 /// If \p InEveryTU is true, we know that an equivalent alias can be produced
126 // The alias will use the linkage of the referent. If we can't
130 // We can't use an alias if the linkage is not valid for one.
145 // Derive the type for the alias.
157 // Instead of creating as alias to a linkonce_odr, replace all of the uses
171 // If we have a weak, non-discardable alias (weak, weak_odr), like an extern
173 // A COFF weak external alias cannot satisfy a normal undefined symbol
189 // Don't create an alias to a linker weak symbol. This avoids producing
191 // output the alias both for weak_odr and linkonce_odr, but that
196 // Create the alias with no name.
197 auto *Alias = llvm::GlobalAlias::create(AliasValueType, 0, Linkage, "",
200 // Switch any previous uses to the alias.
204 Alias->takeName(Entry);
205 Entry->replaceAllUsesWith(Alias);
208 Alias->setName(MangledName);
211 // Finally, set up the alias with its proper name and attributes.
212 setAliasAttributes(cast<NamedDecl>(AliasDecl.getDecl()), Alias);