Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:Alias

225       if (auto *Alias = dyn_cast<llvm::GlobalAlias>(Replacement)) {
226 NewF = dyn_cast<llvm::Function>(Alias->getAliasee());
290 auto *Alias = cast<llvm::GlobalAlias>(Entry);
291 const llvm::GlobalValue *GV = getAliasedGlobal(*Alias);
300 llvm::Constant *Aliasee = Alias->getAliasee();
314 // We have to handle alias to weak aliases in here. LLVM itself disallows
316 // compatibility with gcc we implement it by just pointing the alias
324 GA->getAliasee(), Alias->getType());
325 Alias->setAliasee(Aliasee);
335 auto *Alias = cast<llvm::GlobalAlias>(Entry);
336 Alias->replaceAllUsesWith(llvm::UndefValue::get(Alias->getType()));
337 Alias->eraseFromParent();
1434 assert(AA && "No alias?");
1471 // If this is an alias definition (which otherwise looks like a declaration)
2732 assert(AA && "Not an alias?");
2741 // If there is a definition in the module, then it wins over the alias.
2742 // This is dubious, but allow it to be safe. Just ignore the alias.
2762 // Create the new alias itself, but don't set a name yet.
2775 // by the alias, as in:
2778 // int test6() __attribute__((alias("test7")));
2780 // Remove it and replace uses of it with the alias.
2790 // Set attributes which are particular to an alias; this is a
3747 /// as 'used', but has internal linkage, create an alias from the unmangled