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

Declarations

include/llvm/Analysis/MemoryBuiltins.h
   40 class GlobalAlias;
include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
   40 class GlobalAlias;
include/llvm/IR/SymbolTableListTraits.h
   36 class GlobalAlias;
include/llvm/IR/Value.h
   37 class GlobalAlias;
include/llvm/IR/ValueSymbolTable.h
   26 class GlobalAlias;

References

include/llvm/ADT/ilist.h
   41   static void deleteNode(NodeTy *V) { delete V; }
   65   void addNodeToList(NodeTy *) {}
   66   void removeNodeFromList(NodeTy *) {}
   82 struct ilist_node_traits : ilist_alloc_traits<NodeTy>,
   83                            ilist_callback_traits<NodeTy> {};
   89 struct ilist_traits : public ilist_node_traits<NodeTy> {};
   96 template <class T> T &make();
  106   static Yes &test(U *I, decltype(I->getNext(&make<NodeT>())) * = 0);
  136   static Yes &test(U *I, decltype(I->createNode(make<NodeT>())) * = 0);
  144   static const bool value = HasGetNext<TraitsT, NodeT>::value ||
  146                             HasCreateNode<TraitsT, NodeT>::value;
  389     : public iplist_impl<simple_ilist<T, Options...>, ilist_traits<T>> {
  389     : public iplist_impl<simple_ilist<T, Options...>, ilist_traits<T>> {
include/llvm/ADT/ilist_node.h
  150           typename ilist_detail::compute_node_options<T, Options...>::type> {
include/llvm/ADT/ilist_node_options.h
  108   typedef T value_type;
  109   typedef T *pointer;
  110   typedef T &reference;
  111   typedef const T *const_pointer;
  112   typedef const T &const_reference;
  122   typedef node_options<T, extract_sentinel_tracking<Options...>::value,
include/llvm/ADT/simple_ilist.h
   79     : ilist_detail::compute_node_options<T, Options...>::type::list_base_type,
   81           typename ilist_detail::compute_node_options<T, Options...>::type> {
   85       typename ilist_detail::compute_node_options<T, Options...>::type;
include/llvm/Analysis/MemoryBuiltins.h
  267   SizeOffsetType visitGlobalAlias(GlobalAlias &GA);
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
  459     for (auto &A : SrcM.aliases())
  490           return GlobalAlias::create(F->getFunctionType(),
  505     for (auto &A : SrcM.aliases()) {
  506       auto *NewA = cast<GlobalAlias>(VMap[&A]);
  506       auto *NewA = cast<GlobalAlias>(VMap[&A]);
  665       if (auto *A = dyn_cast<GlobalAlias>(V)) {
  665       if (auto *A = dyn_cast<GlobalAlias>(V)) {
include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
  482 GlobalAlias *cloneGlobalAliasDecl(Module &Dst, const GlobalAlias &OrigA,
  482 GlobalAlias *cloneGlobalAliasDecl(Module &Dst, const GlobalAlias &OrigA,
include/llvm/IR/GlobalAlias.h
   28                     public ilist_node<GlobalAlias> {
   35   GlobalAlias(const GlobalAlias &) = delete;
   36   GlobalAlias &operator=(const GlobalAlias &) = delete;
   36   GlobalAlias &operator=(const GlobalAlias &) = delete;
   40   static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
   45   static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
   50   static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
   55   static GlobalAlias *create(LinkageTypes Linkage, const Twine &Name,
   59   static GlobalAlias *create(const Twine &Name, GlobalValue *Aliasee);
include/llvm/IR/Module.h
   75   using AliasListType = SymbolTableList<GlobalAlias>;
  433   GlobalAlias *getNamedAlias(StringRef Name) const;
include/llvm/IR/SymbolTableListTraits.h
   66 class SymbolTableListTraits : public ilist_alloc_traits<ValueSubClass> {
   67   using ListTy = SymbolTableList<ValueSubClass>;
   68   using iterator = typename simple_ilist<ValueSubClass>::iterator;
   70       typename SymbolTableListParentType<ValueSubClass>::type;
   95   void addNodeToList(ValueSubClass *V);
   96   void removeNodeFromList(ValueSubClass *V);
  113     : public iplist_impl<simple_ilist<T>, SymbolTableListTraits<T>> {};
  113     : public iplist_impl<simple_ilist<T>, SymbolTableListTraits<T>> {};
include/llvm/IR/Value.h
  887     return isa<GlobalAlias>(Val) || isa<GlobalIFunc>(Val);
include/llvm/Support/Casting.h
   57   static inline bool doit(const From &Val) {
   58     return To::classof(&Val);
   77     return isa_impl<To, From>::doit(Val);
   92     return isa_impl<To, From>::doit(*Val);
  104   static inline bool doit(const From *Val) {
  106     return isa_impl<To, From>::doit(*Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  165   using ret_type = To &;       // Normal case, return Ty&
  168   using ret_type = const To &; // Normal case, return Ty&
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  218   static typename cast_retty<To, From>::ret_type doit(From &Val) {
  219     return cast_convert_val<To, SimpleFrom,
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  248                                typename cast_retty<X, const Y>::ret_type>::type
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  265   return cast_convert_val<X, Y*,
  266                           typename simplify_type<Y*>::SimpleType>::doit(Val);
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
   91   typedef PointerLikeTypeTraits<T *> NonConst;
   93   static inline const void *getAsVoidPointer(const T *P) {
   96   static inline const T *getFromVoidPointer(const void *P) {
lib/Analysis/AliasAnalysis.cpp
  883   if (isa<GlobalValue>(V) && !isa<GlobalAlias>(V))
lib/Analysis/BasicAliasAnalysis.cpp
  476       if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) {
  476       if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) {
lib/Analysis/ConstantFolding.cpp
  628   if (auto *GA = dyn_cast<GlobalAlias>(C))
  628   if (auto *GA = dyn_cast<GlobalAlias>(C))
lib/Analysis/InlineCost.cpp
 1669     } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) {
 1669     } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) {
lib/Analysis/LazyCallGraph.cpp
  178   for (auto &A : M.aliases()) {
lib/Analysis/MemoryBuiltins.cpp
  597   if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
  597   if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
  756 SizeOffsetType ObjectSizeOffsetVisitor::visitGlobalAlias(GlobalAlias &GA) {
  900              isa<GlobalAlias>(V) ||
lib/Analysis/ModuleSummaryAnalysis.cpp
  328       if (auto *GA = dyn_cast<GlobalAlias>(CalledValue)) {
  613 computeAliasSummary(ModuleSummaryIndex &Index, const GlobalAlias &A,
  764   for (const GlobalAlias &A : M.aliases())
lib/Analysis/ScalarEvolution.cpp
 6149   else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
 6149   else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
lib/Analysis/StackSafetyAnalysis.cpp
  161   explicit FunctionInfo(const GlobalAlias *A);
  188 StackSafetyInfo::FunctionInfo::FunctionInfo(const GlobalAlias *A) : GV(A) {
  437   for (auto &A : M.aliases())
lib/Analysis/ValueTracking.cpp
 1713   if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) {
 1713   if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) {
 3724     } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) {
 3724     } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) {
lib/AsmParser/LLParser.cpp
  888   if(IsAlias && !GlobalAlias::isValidLinkage(Linkage))
  956     GA.reset(GlobalAlias::create(Ty, AddrSpace,
 1002     M->getAliasList().push_back(cast<GlobalAlias>(GA.get()));
lib/Bitcode/Reader/BitcodeReader.cpp
 2266       if (isa<GlobalAlias>(GIS) && C->getType() != GIS->getType())
 3356     NewGA = GlobalAlias::create(Ty, AddrSpace, getDecodedLinkage(Linkage), Name,
lib/Bitcode/Writer/BitcodeWriter.cpp
 1345   for (const GlobalAlias &A : M.aliases()) {
 3858   for (const GlobalAlias &A : M.aliases()) {
 4598   for (const GlobalAlias &A : M.aliases()) {
lib/Bitcode/Writer/ValueEnumerator.cpp
  116   for (const GlobalAlias &A : M.aliases())
  139   for (const GlobalAlias &A : M.aliases())
  297   for (const GlobalAlias &A : M.aliases())
  304   for (const GlobalAlias &A : M.aliases())
  337   for (const GlobalAlias &GA : M.aliases())
  356   for (const GlobalAlias &GA : M.aliases())
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 1333   if (isa<GlobalAlias>(&GIS) && MAI->hasAltEntry() && isa<MCBinaryExpr>(Expr))
 1339   if (auto *GA = dyn_cast<GlobalAlias>(&GIS)) {
 1499   SmallVector<const GlobalAlias *, 16> AliasStack;
 1500   SmallPtrSet<const GlobalAlias *, 16> AliasVisited;
 1501   for (const auto &Alias : M.aliases()) {
 1502     for (const GlobalAlias *Cur = &Alias; Cur;
 1503          Cur = dyn_cast<GlobalAlias>(Cur->getAliasee())) {
 1508     for (const GlobalAlias *AncestorAlias : llvm::reverse(AliasStack))
lib/CodeGen/GlobalMerge.cpp
  549         GlobalAlias *GA = GlobalAlias::create(Tys[StructIdxs[idx]], AddrSpace,
  549         GlobalAlias *GA = GlobalAlias::create(Tys[StructIdxs[idx]], AddrSpace,
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
 1277     if (const auto *GA = dyn_cast<GlobalAlias>(ComdatKey))
 1277     if (const auto *GA = dyn_cast<GlobalAlias>(ComdatKey))
lib/ExecutionEngine/ExecutionEngine.cpp
  905     while (auto *A = dyn_cast<GlobalAlias>(C)) {
lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
   31     } else if (isa<GlobalAlias>(GV)) {
   34       auto &A = cast<GlobalAlias>(GV);
   34       auto &A = cast<GlobalAlias>(GV);
  220     if (isa<GlobalAlias>(GV))
  222           cast<GlobalValue>(cast<GlobalAlias>(GV)->getAliasee()));
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
  353 GlobalAlias* cloneGlobalAliasDecl(Module &Dst, const GlobalAlias &OrigA,
  353 GlobalAlias* cloneGlobalAliasDecl(Module &Dst, const GlobalAlias &OrigA,
  356   auto *NewA = GlobalAlias::create(OrigA.getValueType(),
  356   auto *NewA = GlobalAlias::create(OrigA.getValueType(),
lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp
   32   else if (isa<GlobalAlias>(GV) &&
   33            isa<Function>(cast<GlobalAlias>(GV).getAliasee()))
lib/IR/AsmWriter.cpp
  145   for (const GlobalAlias &A : M->aliases()) {
  300   for (const GlobalAlias &A : M->aliases())
  307   for (const GlobalAlias &A : M->aliases())
  878   if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
  878   if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
  942   for (const GlobalAlias &A : TheModule->aliases()) {
 2635   for (const GlobalAlias &GA : M->aliases())
 3334   if (isa<GlobalAlias>(GIS))
lib/IR/ConstantFold.cpp
 1517   if (!isa<GlobalAlias>(GV1) && !isa<GlobalAlias>(GV2))
 1517   if (!isa<GlobalAlias>(GV1) && !isa<GlobalAlias>(GV2))
 1594       if (!GV->hasExternalWeakLinkage() && !isa<GlobalAlias>(GV) &&
 1825       if (!isa<GlobalAlias>(GV) && !GV->hasExternalWeakLinkage() &&
 1837       if (!isa<GlobalAlias>(GV) && !GV->hasExternalWeakLinkage() &&
lib/IR/Core.cpp
 2202   return wrap(GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(),
 2229   GlobalAlias *Alias = unwrap<GlobalAlias>(GA);
 2229   GlobalAlias *Alias = unwrap<GlobalAlias>(GA);
 2237   GlobalAlias *Alias = unwrap<GlobalAlias>(GA);
 2237   GlobalAlias *Alias = unwrap<GlobalAlias>(GA);
 2245   return wrap(unwrap<GlobalAlias>(Alias)->getAliasee());
 2249   unwrap<GlobalAlias>(Alias)->setAliasee(unwrap<Constant>(Aliasee));
lib/IR/Globals.cpp
   98   if (auto *GA = dyn_cast<GlobalAlias>(this)) {
  166   if (auto *GA = dyn_cast<GlobalAlias>(this)) {
  176   if (auto *GA = dyn_cast<GlobalAlias>(this)) {
  435 findBaseObject(const Constant *C, DenseSet<const GlobalAlias *> &Aliases) {
  438   if (auto *GA = dyn_cast<GlobalAlias>(C))
  468   DenseSet<const GlobalAlias *> Aliases;
  485 GlobalAlias *GlobalAlias::create(Type *Ty, unsigned AddressSpace,
  488   return new GlobalAlias(Ty, AddressSpace, Link, Name, Aliasee, ParentModule);
  491 GlobalAlias *GlobalAlias::create(Type *Ty, unsigned AddressSpace,
  497 GlobalAlias *GlobalAlias::create(Type *Ty, unsigned AddressSpace,
  503 GlobalAlias *GlobalAlias::create(LinkageTypes Link, const Twine &Name,
  510 GlobalAlias *GlobalAlias::create(const Twine &Name, GlobalValue *Aliasee) {
lib/IR/Module.cpp
  239 GlobalAlias *Module::getNamedAlias(StringRef Name) const {
  240   return dyn_cast_or_null<GlobalAlias>(getNamedValue(Name));
  446   for (GlobalAlias &GA : aliases())
lib/IR/SymbolTableListTraitsImpl.h
   95       ValueSubClass &V = *first;
lib/IR/TypeFinder.cpp
   42   for (const auto &A : M.aliases()) {
lib/IR/Value.cpp
  502     } else if (StripKind == PSK_ZeroIndicesAndAliases && isa<GlobalAlias>(V)) {
  503       V = cast<GlobalAlias>(V)->getAliasee();
  591     } else if (auto *GA = dyn_cast<GlobalAlias>(V)) {
lib/IR/Verifier.cpp
  377     for (const GlobalAlias &GA : M.aliases())
  401   void visitGlobalAlias(const GlobalAlias &GA);
  402   void visitAliaseeSubExpr(const GlobalAlias &A, const Constant &C);
  403   void visitAliaseeSubExpr(SmallPtrSetImpl<const GlobalAlias *> &Visited,
  404                            const GlobalAlias &A, const Constant &C);
  716 void Verifier::visitAliaseeSubExpr(const GlobalAlias &GA, const Constant &C) {
  717   SmallPtrSet<const GlobalAlias*, 4> Visited;
  722 void Verifier::visitAliaseeSubExpr(SmallPtrSetImpl<const GlobalAlias*> &Visited,
  723                                    const GlobalAlias &GA, const Constant &C) {
  728     if (const auto *GA2 = dyn_cast<GlobalAlias>(GV)) {
  728     if (const auto *GA2 = dyn_cast<GlobalAlias>(GV)) {
  745     if (const auto *GA2 = dyn_cast<GlobalAlias>(V))
  745     if (const auto *GA2 = dyn_cast<GlobalAlias>(V))
  752 void Verifier::visitGlobalAlias(const GlobalAlias &GA) {
lib/LTO/LTO.cpp
  686   for (auto &GA : M.aliases())
lib/LTO/LTOCodeGenerator.cpp
  406   for (auto &GV : TheModule.aliases())
  456     for (auto &GV : MergedModule->aliases())
lib/LTO/LTOModule.cpp
  455   if (isa<GlobalAlias>(def))
lib/LTO/UpdateCompilerUsed.cpp
   39     for (GlobalAlias &GA : TheModule.aliases())
  104     if (isa<GlobalAlias>(GV)) {
  105       auto *A = cast<GlobalAlias>(&GV);
  105       auto *A = cast<GlobalAlias>(&GV);
lib/Linker/IRMover.cpp
  673   if (isa<GlobalAlias>(SGIS))
  674     GIS = GlobalAlias::create(Ty, SGIS->getType()->getPointerAddressSpace(),
lib/Linker/LinkModules.cpp
  133   if (const auto *GA = dyn_cast_or_null<GlobalAlias>(GVal)) {
  133   if (const auto *GA = dyn_cast_or_null<GlobalAlias>(GVal)) {
  439     auto &Alias = cast<GlobalAlias>(GV);
  439     auto &Alias = cast<GlobalAlias>(GV);
  487     GlobalAlias &GV = *I++;
  511   for (GlobalAlias &GA : SrcM->aliases())
  526   for (GlobalAlias &GA : SrcM->aliases())
lib/Object/IRSymtab.cpp
  289           cast<GlobalAlias>(GV)->getAliasee()->stripPointerCasts());
lib/Object/ModuleSymbolTable.cpp
  201   if (isa<GlobalAlias>(GV))
lib/Target/AMDGPU/AMDGPUAlwaysInlinePass.cpp
   88   std::vector<GlobalAlias*> AliasesToRemove;
   93   for (GlobalAlias &A : M.aliases()) {
  104     for (GlobalAlias* A : AliasesToRemove) {
lib/Target/ARM/ARMISelLowering.cpp
 3415   if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(GV))
 3415   if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(GV))
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
   73     else if (auto *A = dyn_cast<GlobalAlias>(U.getUser()))
   73     else if (auto *A = dyn_cast<GlobalAlias>(U.getUser()))
lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
  146     if (const auto *GA = dyn_cast<GlobalAlias>(GV))
  146     if (const auto *GA = dyn_cast<GlobalAlias>(GV))
lib/Transforms/IPO/FunctionImport.cpp
 1004   for (auto &GV : TheModule.aliases())
 1048 static Function *replaceAliasWithAliasee(Module *SrcModule, GlobalAlias *GA) {
 1143     for (GlobalAlias &GA : SrcModule->aliases()) {
lib/Transforms/IPO/GlobalDCE.cpp
  299   for (GlobalAlias &GA : M.aliases())
  321   for (GlobalAlias &GA : M.aliases()) {
  377   std::vector<GlobalAlias*> DeadAliases;
  378   for (GlobalAlias &GA : M.aliases())
  418   for (GlobalAlias *GA : DeadAliases)
lib/Transforms/IPO/GlobalOpt.cpp
 2685 static bool hasUseOtherThanLLVMUsed(GlobalAlias &GA, const LLVMUsed &U) {
 2712 static bool mayHaveOtherReferences(GlobalAlias &GA, const LLVMUsed &U) {
 2719 static bool hasUsesToReplace(GlobalAlias &GA, const LLVMUsed &U,
 2762     GlobalAlias *J = &*I++;
 2932     for (GlobalAlias &GA : M.aliases())
lib/Transforms/IPO/Internalize.cpp
  163     for (GlobalAlias &GA : M.aliases())
  224   for (auto &GA : M.aliases()) {
lib/Transforms/IPO/LowerTypeTests.cpp
  447                       std::vector<GlobalAlias *> &AliasesToErase);
  646     GlobalAlias *Alias = GlobalAlias::create(
  646     GlobalAlias *Alias = GlobalAlias::create(
  674       ByteArray = GlobalAlias::create(Int8Ty, 0, GlobalValue::PrivateLinkage,
  878     GlobalAlias *GAlias =
  879         GlobalAlias::create(NewTy->getElementType(I * 2), 0, GV->getLinkage(),
  908     GlobalAlias *GA =
  909         GlobalAlias::create(Int8Ty, 0, GlobalValue::ExternalLinkage,
 1046     std::vector<GlobalAlias *> &AliasesToErase) {
 1085       if (auto *A = dyn_cast<GlobalAlias>(U.getUser())) {
 1085       if (auto *A = dyn_cast<GlobalAlias>(U.getUser())) {
 1520           GlobalAlias *JtAlias = GlobalAlias::create(
 1520           GlobalAlias *JtAlias = GlobalAlias::create(
 1536         GlobalAlias *FAlias =
 1537             GlobalAlias::create(F->getValueType(), 0, F->getLinkage(), "",
 1795     std::vector<GlobalAlias *> AliasesToErase;
 1803     for (GlobalAlias *GA : AliasesToErase)
 2159         auto *Alias = GlobalAlias::create("", M.getNamedAlias(Aliasee));
 2159         auto *Alias = GlobalAlias::create("", M.getNamedAlias(Aliasee));
lib/Transforms/IPO/MergeFunctions.cpp
  768   auto *GA = GlobalAlias::create(
  768   auto *GA = GlobalAlias::create(
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  347   for (auto &A : M.aliases()) {
lib/Transforms/IPO/WholeProgramDevirt.cpp
 1242   GlobalAlias *GA = GlobalAlias::create(Int8Ty, 0, GlobalValue::ExternalLinkage,
 1242   GlobalAlias *GA = GlobalAlias::create(Int8Ty, 0, GlobalValue::ExternalLinkage,
 1525   auto Alias = GlobalAlias::create(
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  781     if (GlobalAlias *GA = dyn_cast<GlobalAlias>(P)) {
  781     if (GlobalAlias *GA = dyn_cast<GlobalAlias>(P)) {
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 2343           GlobalAlias::create(GlobalValue::PrivateLinkage, "", NewGlobal);
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  195   bool isIn(const GlobalAlias &GA, StringRef Category) const {
  361   bool isInstrumented(const GlobalAlias *GA);
  607 bool DataFlowSanitizer::isInstrumented(const GlobalAlias *GA) {
  799     GlobalAlias *GA = &*i;
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1315   auto *Alias = GlobalAlias::create(GV->getValueType(), GV->getAddressSpace(),
 1315   auto *Alias = GlobalAlias::create(GV->getValueType(), GV->getAddressSpace(),
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  662     if (dyn_cast<GlobalAlias>(CM.second))
  680   GlobalAlias::create(GlobalValue::WeakAnyLinkage, OrigName, &F);
  703     if (GlobalAlias *GA = dyn_cast<GlobalAlias>(CM.second)) {
  703     if (GlobalAlias *GA = dyn_cast<GlobalAlias>(CM.second)) {
  708       GlobalAlias::create(GlobalValue::WeakAnyLinkage, OrigGAName, GA);
 1456   for (GlobalAlias &GA : M.aliases())
lib/Transforms/ObjCARC/ObjCARCContract.cpp
  704       else if (isa<GlobalAlias>(Arg) &&
  705                !cast<GlobalAlias>(Arg)->isInterposable())
  706         Arg = cast<GlobalAlias>(Arg)->getAliasee();
lib/Transforms/Scalar/SROA.cpp
 1646     } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(Ptr)) {
 1646     } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(Ptr)) {
lib/Transforms/Utils/CanonicalizeAliases.cpp
   43   if (auto *GA = dyn_cast<GlobalAlias>(C)) {
   43   if (auto *GA = dyn_cast<GlobalAlias>(C)) {
   65   for (auto &GA : M.aliases())
lib/Transforms/Utils/CloneModule.cpp
  107     auto *GA = GlobalAlias::create(I->getValueType(),
  107     auto *GA = GlobalAlias::create(I->getValueType(),
  178     GlobalAlias *GA = cast<GlobalAlias>(VMap[&*I]);
  178     GlobalAlias *GA = cast<GlobalAlias>(VMap[&*I]);
lib/Transforms/Utils/Evaluator.cpp
  262   if (auto *Alias = dyn_cast<GlobalAlias>(C))
  262   if (auto *Alias = dyn_cast<GlobalAlias>(C))
lib/Transforms/Utils/FunctionImportUtils.cpp
  132     if (doImportAsDefinition(SGV) && !isa<GlobalAlias>(SGV))
  161     if (doImportAsDefinition(SGV) && !isa<GlobalAlias>(SGV))
  179       if (doImportAsDefinition(SGV) && !isa<GlobalAlias>(SGV))
  296   for (GlobalAlias &GA : M.aliases())
lib/Transforms/Utils/ModuleUtils.cpp
  231     for (GlobalAlias &GA : M.aliases())
  268   for (auto &GA : M->aliases())
lib/Transforms/Utils/NameAnonGlobals.cpp
   77   for (auto &GA : M.aliases())
lib/Transforms/Utils/SplitModule.cpp
  258     for (GlobalAlias &GA : M->aliases())
lib/Transforms/Utils/SymbolRewriter.cpp
  135   if (ValueType *S = (M.*Get)(Source)) {
  179   for (auto &C : (M.*Iterator)()) {
  222     ExplicitRewriteDescriptor<RewriteDescriptor::Type::NamedAlias, GlobalAlias,
  245     PatternRewriteDescriptor<RewriteDescriptor::Type::NamedAlias, GlobalAlias,
tools/bugpoint/CrashDebugger.cpp
  266     for (GlobalAlias &Alias : M->aliases()) {
tools/bugpoint/ExtractFunction.cpp
  184     SmallVector<GlobalAlias *, 1> aliases;
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGCUDANV.cpp
  698     llvm::GlobalAlias::create(llvm::GlobalValue::ExternalLinkage,
tools/clang/lib/CodeGen/CGCXX.cpp
  119   if (!llvm::GlobalAlias::isValidLinkage(Linkage))
  183   auto *Alias = llvm::GlobalAlias::create(AliasValueType, 0, Linkage, "",
  183   auto *Alias = llvm::GlobalAlias::create(AliasValueType, 0, Linkage, "",
tools/clang/lib/CodeGen/CGObjCGNU.cpp
  346   llvm::GlobalAlias *ClassPtrAlias;
  351   llvm::GlobalAlias *MetaClassPtrAlias;
  370   typedef std::pair<std::string, llvm::GlobalAlias*> TypedSelector;
 2319   llvm::GlobalAlias *SelValue = nullptr;
 2329     SelValue = llvm::GlobalAlias::create(
 2556           MetaClassPtrAlias = llvm::GlobalAlias::create(
 2563           ClassPtrAlias = llvm::GlobalAlias::create(
 3656   SmallVector<llvm::GlobalAlias*, 16> selectorAliases;
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1287     auto *GA =
 1288         llvm::GlobalAlias::create(DeclTy, 0, LT, "", Addr, &CGM.getModule());
tools/clang/lib/CodeGen/CodeGenModule.cpp
  239       if (auto *Alias = dyn_cast<llvm::GlobalAlias>(Replacement)) {
  239       if (auto *Alias = dyn_cast<llvm::GlobalAlias>(Replacement)) {
 3015       auto *GA = llvm::GlobalAlias::create(
 3015       auto *GA = llvm::GlobalAlias::create(
 3149     if ((isa<llvm::Function>(Entry) || isa<llvm::GlobalAlias>(Entry)) &&
 4473   auto *GA =
 4474       llvm::GlobalAlias::create(DeclTy, 0, LT, "", Aliasee, &getModule());
 5587       addUsedGlobal(llvm::GlobalAlias::create(Name->getName(), Val));
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 2653         Init = llvm::GlobalAlias::create(Var->getLinkage(), InitFnName.str(),
 2684               cast<llvm::Function>(cast<llvm::GlobalAlias>(Init)->getAliasee());
 3907   if (!llvm::GlobalAlias::isValidLinkage(Linkage))
 3934   auto *Alias = llvm::GlobalAlias::create(Linkage, "", Aliasee);
 3934   auto *Alias = llvm::GlobalAlias::create(Linkage, "", Aliasee);
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 1789                        cast<llvm::GlobalAlias>(VFTable)->getBaseObject())
 1834     VFTable = llvm::GlobalAlias::create(CGM.Int8PtrTy,
tools/lldb/source/Expression/IRExecutionUnit.cpp
  389   for (llvm::GlobalAlias &global_alias : m_module->getAliasList()) {
tools/llvm-extract/llvm-extract.cpp
  155     GlobalAlias *GA = M->getNamedAlias(ExtractAliases[i]);
tools/verify-uselistorder/verify-uselistorder.cpp
  190   for (const GlobalAlias &A : M.aliases())
  201   for (const GlobalAlias &A : M.aliases())
  466   for (GlobalAlias &A : M.aliases())
  477   for (GlobalAlias &A : M.aliases())
unittests/IR/ConstantsTest.cpp
  390   auto *Alias = GlobalAlias::create(IntTy, 0, GlobalValue::ExternalLinkage,
  390   auto *Alias = GlobalAlias::create(IntTy, 0, GlobalValue::ExternalLinkage,
usr/include/c++/7.4.0/type_traits
 1983     { typedef _Up     type; };
utils/unittest/googletest/include/gtest/gtest-printers.h
  407                     T* p, ::std::ostream* os) {
  416     if (IsTrue(ImplicitlyConvertible<T*, const void*>::value)) {