Home
last modified time | relevance | path

Searched refs:GlobalAlias (Results 1 – 25 of 59) sorted by relevance

123

/external/llvm/include/llvm/IR/
DGlobalAlias.h29 class GlobalAlias : public GlobalValue, public ilist_node<GlobalAlias> {
30 friend class SymbolTableListTraits<GlobalAlias, Module>;
31 void operator=(const GlobalAlias &) = delete;
32 GlobalAlias(const GlobalAlias &) = delete;
36 GlobalAlias(Type *Ty, unsigned AddressSpace, LinkageTypes Linkage,
47 static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
52 static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
57 static GlobalAlias *create(Type *Ty, unsigned AddressSpace,
62 static GlobalAlias *create(LinkageTypes Linkage, const Twine &Name,
66 static GlobalAlias *create(const Twine &Name, GlobalValue *Aliasee);
[all …]
DModule.h70 template<> struct ilist_traits<GlobalAlias>
71 : public SymbolTableListTraits<GlobalAlias, Module> {
73 GlobalAlias *createSentinel() const {
74 return static_cast<GlobalAlias*>(&Sentinel);
76 static void destroySentinel(GlobalAlias*) {}
78 GlobalAlias *provideInitialHead() const { return createSentinel(); }
79 GlobalAlias *ensureHead(GlobalAlias*) const { return createSentinel(); }
80 static void noteHead(GlobalAlias*, GlobalAlias*) {}
82 mutable ilist_node<GlobalAlias> Sentinel;
123 typedef iplist<GlobalAlias> AliasListType;
[all …]
DValueSymbolTable.h41 friend class SymbolTableListTraits<GlobalAlias, Module>;
DValue.h33 class GlobalAlias; variable
664 template <> struct isa_impl<GlobalAlias, Value> {
672 return isa<GlobalObject>(Val) || isa<GlobalAlias>(Val);
/external/llvm/lib/IR/
DGlobals.cpp60 if (auto *GA = dyn_cast<GlobalAlias>(this)) { in getAlignment()
103 if (auto *GA = dyn_cast<GlobalAlias>(this)) { in getSection()
113 if (auto *GA = dyn_cast<GlobalAlias>(this)) { in getComdat()
134 assert(isa<GlobalAlias>(this)); in isDeclaration()
244 GlobalAlias::GlobalAlias(Type *Ty, unsigned AddressSpace, LinkageTypes Link, in GlobalAlias() function in GlobalAlias
255 GlobalAlias *GlobalAlias::create(Type *Ty, unsigned AddressSpace, in create()
258 return new GlobalAlias(Ty, AddressSpace, Link, Name, Aliasee, ParentModule); in create()
261 GlobalAlias *GlobalAlias::create(Type *Ty, unsigned AddressSpace, in create()
267 GlobalAlias *GlobalAlias::create(Type *Ty, unsigned AddressSpace, in create()
273 GlobalAlias *GlobalAlias::create(LinkageTypes Link, const Twine &Name, in create()
[all …]
DModule.cpp42 template class llvm::SymbolTableListTraits<GlobalAlias, Module>;
246 GlobalAlias *Module::getNamedAlias(StringRef Name) const { in getNamedAlias()
247 return dyn_cast_or_null<GlobalAlias>(getNamedValue(Name)); in getNamedAlias()
454 for (GlobalAlias &GA : aliases()) in dropAllReferences()
DValue.cpp413 } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) { in stripPointerCastsAndOffsets()
465 } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) { in stripAndAccumulateInBoundsConstantOffsets()
DVerifier.cpp287 void visitGlobalAlias(const GlobalAlias &GA);
288 void visitAliaseeSubExpr(const GlobalAlias &A, const Constant &C);
289 void visitAliaseeSubExpr(SmallPtrSetImpl<const GlobalAlias *> &Visited,
290 const GlobalAlias &A, const Constant &C);
507 isa<GlobalAlias>(V), in visitGlobalVariable()
549 void Verifier::visitAliaseeSubExpr(const GlobalAlias &GA, const Constant &C) { in visitAliaseeSubExpr()
550 SmallPtrSet<const GlobalAlias*, 4> Visited; in visitAliaseeSubExpr()
555 void Verifier::visitAliaseeSubExpr(SmallPtrSetImpl<const GlobalAlias*> &Visited, in visitAliaseeSubExpr()
556 const GlobalAlias &GA, const Constant &C) { in visitAliaseeSubExpr()
560 if (const auto *GA2 = dyn_cast<GlobalAlias>(GV)) { in visitAliaseeSubExpr()
[all …]
DAsmWriter.cpp97 for (const GlobalAlias &A : M->aliases()) { in orderModule()
252 for (const GlobalAlias &A : M->aliases()) in predictUseListOrder()
257 for (const GlobalAlias &A : M->aliases()) in predictUseListOrder()
681 if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) in createSlotTracker()
895 (isa<GlobalAlias>(V) ? 'A' : 'o'))) << "]\n"); in CreateModuleSlot()
1976 void printAlias(const GlobalAlias *GV);
2350 void AssemblyWriter::printAlias(const GlobalAlias *GA) { in printAlias()
3151 W.printAlias(cast<GlobalAlias>(GV)); in print()
/external/llvm/lib/ExecutionEngine/Orc/
DCloneSubModule.cpp65 GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(), in CloneSubModule()
90 GlobalAlias *GA = cast<GlobalAlias>(VMap[I]); in CloneSubModule()
/external/llvm/lib/Transforms/Utils/
DCloneModule.cpp73 GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(), in CloneModule()
110 GlobalAlias *GA = cast<GlobalAlias>(VMap[I]); in CloneModule()
DSymbolRewriter.cpp201 llvm::GlobalAlias,
227 llvm::GlobalAlias,
/external/llvm/lib/Transforms/IPO/
DGlobalDCE.cpp90 for (GlobalAlias &GA : M.aliases()) in runOnModule()
152 std::vector<GlobalAlias*> DeadAliases; in runOnModule()
215 } else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(G)) { in GlobalIsNeeded()
DLowerBitSets.cpp361 GlobalAlias *Alias = GlobalAlias::create( in allocateByteArrays()
404 ByteArray = GlobalAlias::create(BAI->ByteArray->getValueType(), 0, in createBitSetTest()
556 GlobalAlias *GAlias = GlobalAlias::create( in buildBitSetsFromGlobals()
/external/llvm/test/Transforms/DeadStoreElimination/
D2011-09-06-MemCpy.ll34 %struct.iplist.12 = type { %struct.ilist_traits.11, %struct.GlobalAlias* }
36 %struct.ilist_node.10 = type { %struct.ilist_half_node.9, %struct.GlobalAlias* }
37 %struct.ilist_half_node.9 = type { %struct.GlobalAlias* }
38 %struct.GlobalAlias = type { %struct.GlobalValue, %struct.ilist_node.10 }
/external/llvm/lib/Linker/
DLinkModules.cpp499 void linkAliasBody(GlobalAlias &Dst, GlobalAlias &Src);
575 static GlobalAlias *copyGlobalAliasProto(TypeMapTy &TypeMap, Module &DstM, in copyGlobalAliasProto()
576 const GlobalAlias *SGA) { in copyGlobalAliasProto()
580 return GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(), in copyGlobalAliasProto()
592 NewGV = copyGlobalAliasProto(TypeMap, DstM, cast<GlobalAlias>(SGV)); in copyGlobalValueProto()
618 if (const auto *GA = dyn_cast_or_null<GlobalAlias>(GVal)) { in getComdatLeader()
1216 void ModuleLinker::linkAliasBody(GlobalAlias &Dst, GlobalAlias &Src) { in linkAliasBody()
1232 linkAliasBody(cast<GlobalAlias>(*Dst), cast<GlobalAlias>(Src)); in linkGlobalValueBody()
1582 for (GlobalAlias &Src : SrcM->aliases()) { in run()
/external/llvm/tools/gold/
Dgold-plugin.cpp268 if (auto *GA = dyn_cast<GlobalAlias>(&GV)) in getBaseObject()
442 std::vector<GlobalAlias *> &KeptAliases) { in keepGlobalValue()
445 if (auto *GA = dyn_cast<GlobalAlias>(&GV)) in keepGlobalValue()
484 auto &Alias = cast<GlobalAlias>(GV); in drop()
613 std::vector<GlobalAlias *> KeptAliases; in getModuleForFile()
704 for (GlobalAlias *GA : KeptAliases) { in getModuleForFile()
/external/llvm/tools/verify-uselistorder/
Dverify-uselistorder.cpp192 for (const GlobalAlias &A : M.aliases()) in ValueMapping()
201 for (const GlobalAlias &A : M.aliases()) in ValueMapping()
461 for (GlobalAlias &A : M.aliases()) in changeUseLists()
470 for (GlobalAlias &A : M.aliases()) in changeUseLists()
/external/clang/lib/CodeGen/
DCGCXX.cpp124 if (!llvm::GlobalAlias::isValidLinkage(Linkage)) in TryEmitDefinitionAsAlias()
185 auto *Alias = llvm::GlobalAlias::create(AliasType->getElementType(), 0, in TryEmitDefinitionAsAlias()
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp607 else if (isa<GlobalAlias>(Arg) && in runOnFunction()
608 !cast<GlobalAlias>(Arg)->mayBeOverridden()) in runOnFunction()
609 Arg = cast<GlobalAlias>(Arg)->getAliasee(); in runOnFunction()
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp410 if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) in compute()
530 SizeOffsetType ObjectSizeOffsetVisitor::visitGlobalAlias(GlobalAlias &GA) { in visitGlobalAlias()
643 isa<GlobalAlias>(V) || in compute_()
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.cpp86 for (const GlobalAlias &A : M.aliases()) in orderModule()
109 for (const GlobalAlias &A : M.aliases()) in orderModule()
265 for (const GlobalAlias &A : M.aliases()) in predictUseListOrder()
270 for (const GlobalAlias &A : M.aliases()) in predictUseListOrder()
/external/llvm/unittests/IR/
DConstantsTest.cpp347 auto *Alias = GlobalAlias::create(IntTy, 0, GlobalValue::ExternalLinkage, in TEST()
365 ASSERT_EQ(unwrap<GlobalAlias>(AliasRef)->getAliasee(), Aliasee); in TEST()
/external/llvm/include/llvm/Analysis/
DMemoryBuiltins.h193 SizeOffsetType visitGlobalAlias(GlobalAlias &GA);
/external/llvm/tools/llvm-extract/
Dllvm-extract.cpp126 GlobalAlias *GA = M->getNamedAlias(ExtractAliases[i]); in main()

123