Lines Matching defs:Alias
205 if (auto *Alias = dyn_cast<llvm::GlobalAlias>(Replacement)) {
206 NewF = dyn_cast<llvm::Function>(Alias->getAliasee());
257 auto *Alias = cast<llvm::GlobalAlias>(Entry);
258 const llvm::GlobalValue *GV = getAliasedGlobal(*Alias);
267 llvm::Constant *Aliasee = Alias->getAliasee();
281 // We have to handle alias to weak aliases in here. LLVM itself disallows
283 // compatibility with gcc we implement it by just pointing the alias
291 GA->getAliasee(), Alias->getType());
292 Alias->setAliasee(Aliasee);
304 auto *Alias = cast<llvm::GlobalAlias>(Entry);
305 Alias->replaceAllUsesWith(llvm::UndefValue::get(Alias->getType()));
306 Alias->eraseFromParent();
1181 assert(AA && "No alias?");
1216 // If this is an alias definition (which otherwise looks like a declaration)
2341 assert(AA && "Not an alias?");
2345 // If there is a definition in the module, then it wins over the alias.
2346 // This is dubious, but allow it to be safe. Just ignore the alias.
2366 // Create the new alias itself, but don't set a name yet.
2380 // by the alias, as in:
2383 // int test6() __attribute__((alias("test7")));
2385 // Remove it and replace uses of it with the alias.
2395 // Set attributes which are particular to an alias; this is a
3259 /// as 'used', but has internal linkage, create an alias from the unmangled