reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Transforms/IPO/MergeFunctions.cpp
  801   if (F->isInterposable()) {
  807     if (!canCreateThunkFor(F) &&
  808         (!canCreateAliasFor(F) || !canCreateAliasFor(G)))
  812     Function *NewF = Function::Create(F->getFunctionType(), F->getLinkage(),
  812     Function *NewF = Function::Create(F->getFunctionType(), F->getLinkage(),
  813                                       F->getAddressSpace(), "", F->getParent());
  813                                       F->getAddressSpace(), "", F->getParent());
  814     NewF->copyAttributesFrom(F);
  815     NewF->takeName(F);
  816     removeUsers(F);
  817     F->replaceAllUsesWith(NewF);
  821     writeThunkOrAlias(F, G);
  822     writeThunkOrAlias(F, NewF);
  824     F->setAlignment(MaxAlignment);
  825     F->setLinkage(GlobalValue::PrivateLinkage);
  837         Constant *BitcastF = ConstantExpr::getBitCast(F, G->getType());
  843         replaceDirectCallers(G, F);
  856     if (writeThunkOrAlias(F, G)) {