Home
last modified time | relevance | path

Searched refs:Aliasee (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DGlobals.cpp535 const Twine &Name, Constant *Aliasee, in GlobalAlias() argument
539 setAliasee(Aliasee); in GlobalAlias()
546 Constant *Aliasee, Module *ParentModule) { in create() argument
547 return new GlobalAlias(Ty, AddressSpace, Link, Name, Aliasee, ParentModule); in create()
558 GlobalValue *Aliasee) { in create() argument
559 return create(Ty, AddressSpace, Linkage, Name, Aliasee, Aliasee->getParent()); in create()
563 GlobalValue *Aliasee) { in create() argument
564 return create(Aliasee->getValueType(), Aliasee->getAddressSpace(), Link, Name, in create()
565 Aliasee); in create()
568 GlobalAlias *GlobalAlias::create(const Twine &Name, GlobalValue *Aliasee) { in create() argument
[all …]
H A DTypeFinder.cpp47 if (const Value *Aliasee = A.getAliasee()) in run() local
48 incorporateValue(Aliasee); in run()
H A DVerifier.cpp977 const Constant *Aliasee = GA.getAliasee(); in visitGlobalAlias() local
978 Check(Aliasee, "Aliasee cannot be NULL!", &GA); in visitGlobalAlias()
979 Check(GA.getType() == Aliasee->getType(), in visitGlobalAlias()
982 Check(isa<GlobalValue>(Aliasee) || isa<ConstantExpr>(Aliasee), in visitGlobalAlias()
985 visitAliaseeSubExpr(GA, *Aliasee); in visitGlobalAlias()
H A DCore.cpp2328 unsigned AddrSpace, LLVMValueRef Aliasee, in LLVMAddAlias2() argument
2332 unwrap<Constant>(Aliasee), unwrap(M))); in LLVMAddAlias2()
2376 void LLVMAliasSetAliasee(LLVMValueRef Alias, LLVMValueRef Aliasee) { in LLVMAliasSetAliasee() argument
2377 unwrap<GlobalAlias>(Alias)->setAliasee(unwrap<Constant>(Aliasee)); in LLVMAliasSetAliasee()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DGlobalAlias.h32 const Twine &Name, Constant *Aliasee, Module *Parent);
42 Constant *Aliasee, Module *Parent);
44 // Without the Aliasee.
49 // The module is taken from the Aliasee.
52 GlobalValue *Aliasee);
54 // Type, Parent and AddressSpace taken from the Aliasee.
56 GlobalValue *Aliasee);
58 // Linkage, Type, Parent and AddressSpace taken from the Aliasee.
59 static GlobalAlias *create(const Twine &Name, GlobalValue *Aliasee);
83 void setAliasee(Constant *Aliasee);
[all...]
H A DModuleSummaryIndex.h652 void setAliasee(ValueInfo &AliaseeVI, GlobalValueSummary *Aliasee) {
654 AliaseeSummary = Aliasee;
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DRecordStreamer.cpp151 const MCSymbol *Aliasee = Symver.first; in flushSymverDirectives()
156 RecordStreamer::State state = getSymbolState(Aliasee); in flushSymverDirectives() local
184 const GlobalValue *GV = M.getNamedValue(Aliasee->getName()); in flushSymverDirectives()
186 auto MI = MangledNameMap.find(Aliasee->getName()); in flushSymverDirectives()
219 const MCExpr *Value = MCSymbolRefExpr::create(Aliasee, getContext()); in flushSymverDirectives()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DCompileOnDemandLayer.cpp39 Constant *Aliasee = A.getAliasee(); in extractSubModule() local
41 assert(Aliasee->hasName() && "Anonymous aliasee"); in extractSubModule()
44 if (isa<Function>(Aliasee)) { in extractSubModule()
45 auto *F = cloneFunctionDecl(*A.getParent(), *cast<Function>(Aliasee)); in extractSubModule()
49 } else if (isa<GlobalVariable>(Aliasee)) { in extractSubModule()
51 *cast<GlobalVariable>(Aliasee)); in extractSubModule()
H A DSpeculation.cpp29 auto It = Maps.insert({I.first, {I.second.Aliasee, SrcJD}}); in trackImpls()
H A DLazyReexports.cpp189 SourceJD, Alias.second.Aliasee, in materialize()
H A DDebugUtils.cpp279 OS << " " << *KV.first << ": " << KV.second.Aliasee << " " in operator <<()
H A DCore.cpp402 if (&SrcJD == &TgtJD && (QueryAliases.count(KV.second.Aliasee) || in materialize()
403 RequestedAliases.count(KV.second.Aliasee))) in materialize()
407 QuerySymbols.add(KV.second.Aliasee, in materialize()
453 if (SrcJDDeps.count(AliasInfo.Aliasee)) in materialize()
454 QueryInfo->SDGs.push_back({{Alias}, {{&SrcJD, {AliasInfo.Aliasee}}}}); in materialize()
463 Result->count(KV.second.Aliasee)) && in materialize()
469 ResolutionMap[KV.first] = {(*Result)[KV.second.Aliasee].getAddress(), in materialize()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXX.cpp142 auto *Aliasee = cast<llvm::GlobalValue>(GetAddrOfGlobal(TargetDecl)); in TryEmitBaseDestructorAsAlias() local
154 addReplacement(MangledName, Aliasee); in TryEmitBaseDestructorAsAlias()
171 if (Aliasee->isDeclarationForLinker()) in TryEmitBaseDestructorAsAlias()
183 Aliasee, &getModule()); in TryEmitBaseDestructorAsAlias()
H A DCodeGenModule.cpp691 llvm::Constant *Aliasee = in checkAliases() local
696 if (auto CE = dyn_cast<llvm::ConstantExpr>(Aliasee)) in checkAliases()
699 AliaseeGV = cast<llvm::GlobalValue>(Aliasee); in checkAliases()
717 Aliasee = llvm::ConstantExpr::getPointerBitCastOrAddrSpaceCast( in checkAliases()
721 cast<llvm::GlobalIFunc>(Alias)->setResolver(Aliasee); in checkAliases()
723 cast<llvm::GlobalAlias>(Alias)->setAliasee(Aliasee); in checkAliases()
729 cast<llvm::Function>(Aliasee)->addFnAttr( in checkAliases()
3691 llvm::Constant *Aliasee; in GetWeakRefReference() local
3693 Aliasee = GetOrCreateLLVMFunction(AA->getAliasee(), DeclTy, in GetWeakRefReference()
3697 Aliasee = GetOrCreateLLVMGlobal(AA->getAliasee(), DeclTy, LangAS::Default, in GetWeakRefReference()
[all …]
H A DItaniumCXXABI.cpp4650 auto *Aliasee = cast<llvm::GlobalValue>(CGM.GetAddrOfGlobal(TargetDecl)); in emitConstructorDestructorAlias() local
4653 auto *Alias = llvm::GlobalAlias::create(Linkage, "", Aliasee); in emitConstructorDestructorAlias()
4660 assert(Entry->getType() == Aliasee->getType() && in emitConstructorDestructorAlias()
4695 auto *Aliasee = CGM.GetAddrOfGlobal(BaseDecl); in emitCXXStructor() local
4696 CGM.addReplacement(MangledName, Aliasee); in emitCXXStructor()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DValueMapper.h194 void scheduleMapGlobalAlias(GlobalAlias &GA, Constant &Aliasee,
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DWinCOFFObjectWriter.cpp362 const MCSymbol &Aliasee = SymRef->getSymbol(); in getLinkedSymbol() local
363 if (Aliasee.isUndefined() || Aliasee.isExternal()) in getLinkedSymbol()
364 return GetOrCreateCOFFSymbol(&Aliasee); in getLinkedSymbol()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DCore.h388 SymbolAliasMapEntry(SymbolStringPtr Aliasee, JITSymbolFlags AliasFlags) in SymbolAliasMapEntry()
389 : Aliasee(std::move(Aliasee)), AliasFlags(AliasFlags) {} in SymbolAliasMapEntry()
391 SymbolStringPtr Aliasee; member
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp858 const GlobalObject *Aliasee = A.getAliaseeObject(); in computeAliasSummary() local
859 if (isa<GlobalIFunc>(Aliasee)) in computeAliasSummary()
867 auto AliaseeVI = Index.getValueInfo(Aliasee->getGUID()); in computeAliasSummary()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp2246 Constant *Aliasee = GA.getAliasee(); in hasUsesToReplace() local
2247 GlobalValue *Target = cast<GlobalValue>(Aliasee->stripPointerCasts()); in hasUsesToReplace()
2285 Constant *Aliasee = J.getAliasee(); in OptimizeGlobalAliases() local
2286 GlobalValue *Target = dyn_cast<GlobalValue>(Aliasee->stripPointerCasts()); in OptimizeGlobalAliases()
2303 J.replaceAllUsesWith(Aliasee); in OptimizeGlobalAliases()
H A DLowerTypeTests.cpp2390 StringRef Aliasee = cast<MDString>(AliasMD->getOperand(1))->getString(); in lower() local
2392 if (!ExportedFunctions.count(Aliasee) || in lower()
2393 ExportedFunctions[Aliasee].Linkage != CFL_Definition || in lower()
2394 !M.getNamedAlias(Aliasee)) in lower()
2409 auto *Alias = GlobalAlias::create("", M.getNamedAlias(Aliasee)); in lower()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCAsmPrinter.cpp3095 const GlobalObject *Aliasee = Alias.getAliaseeObject(); in doInitialization() local
3096 if (!Aliasee) in doInitialization()
3100 if (Aliasee->hasCommonLinkage()) { in doInitialization()
3104 " is invalid because " + Aliasee->getName() + in doInitialization()
3118 GOAliasMap[Aliasee].push_back(&Alias); in doInitialization()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp1273 void ValueMapper::scheduleMapGlobalAlias(GlobalAlias &GA, Constant &Aliasee, in scheduleMapGlobalAlias() argument
1275 getAsMapper(pImpl)->scheduleMapAliasOrIFunc(GA, Aliasee, MCID); in scheduleMapGlobalAlias()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp1735 Constant *Aliasee = ConstantExpr::getIntToPtr( in instrumentGlobal() local
1741 GV->getLinkage(), "", Aliasee, &M); in instrumentGlobal()
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DCore.h2678 unsigned AddrSpace, LLVMValueRef Aliasee,
2729 void LLVMAliasSetAliasee(LLVMValueRef Alias, LLVMValueRef Aliasee);

12