Home
last modified time | relevance | path

Searched refs:GlobalIFunc (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DGlobalIFunc.h34 class GlobalIFunc final : public GlobalObject, public ilist_node<GlobalIFunc> {
35 friend class SymbolTableListTraits<GlobalIFunc>;
37 GlobalIFunc(Type *Ty, unsigned AddressSpace, LinkageTypes Linkage,
41 GlobalIFunc(const GlobalIFunc &) = delete;
42 GlobalIFunc &operator=(const GlobalIFunc &) = delete;
46 static GlobalIFunc *create(Type *Ty, unsigned AddressSpace,
57 void copyAttributesFrom(const GlobalIFunc *Src) { in copyAttributesFrom()
80 static_cast<const GlobalIFunc *>(this)->getResolverFunction()); in getResolverFunction()
105 struct OperandTraits<GlobalIFunc>
106 : public FixedNumOperandTraits<GlobalIFunc, 1> {};
[all …]
H A DValueSymbolTable.h27 class GlobalIFunc; variable
43 friend class SymbolTableListTraits<GlobalIFunc>;
H A DModule.h76 using IFuncListType = SymbolTableList<GlobalIFunc>;
486 GlobalIFunc *getNamedIFunc(StringRef Name) const;
617 void removeIFunc(GlobalIFunc *IFunc) { IFuncList.remove(IFunc); } in removeIFunc()
619 void eraseIFunc(GlobalIFunc *IFunc) { IFuncList.erase(IFunc); } in eraseIFunc()
621 void insertIFunc(GlobalIFunc *IFunc) { IFuncList.push_back(IFunc); } in insertIFunc()
652 static IFuncListType Module::*getSublistAccess(GlobalIFunc*) { in getSublistAccess() argument
655 friend class llvm::SymbolTableListTraits<llvm::GlobalIFunc>;
H A DSymbolTableListTraits.h37 class GlobalIFunc; variable
57 DEFINE_SYMBOL_TABLE_PARENT_TYPE(GlobalIFunc, Module)
H A DValue.h39 class GlobalIFunc; variable
1031 template <> struct isa_impl<GlobalIFunc, Value> {
1046 isa<GlobalIFunc>(Val);
H A DValue.def78 HANDLE_GLOBAL_VALUE(GlobalIFunc)
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DGlobals.cpp116 !isa<GlobalIFunc>(this) && !isDeduplicateComdat(getComdat()); in canBenefitFromLocalAlias()
192 if (isa<GlobalIFunc>(this)) in getComdat()
284 assert(isa<GlobalAlias>(this) || isa<GlobalIFunc>(this)); in isDeclaration()
565 GlobalIFunc::GlobalIFunc(Type *Ty, unsigned AddressSpace, LinkageTypes Link, in GlobalIFunc() function in GlobalIFunc
575 GlobalIFunc *GlobalIFunc::create(Type *Ty, unsigned AddressSpace, in create()
578 return new GlobalIFunc(Ty, AddressSpace, Link, Name, Resolver, ParentModule); in create()
581 void GlobalIFunc::removeFromParent() { getParent()->removeIFunc(this); } in removeFromParent()
583 void GlobalIFunc::eraseFromParent() { getParent()->eraseIFunc(this); } in eraseFromParent()
585 const Function *GlobalIFunc::getResolverFunction() const { in getResolverFunction()
589 void GlobalIFunc::applyAlongResolverPath( in applyAlongResolverPath()
H A DModule.cpp66 template class llvm::SymbolTableListTraits<GlobalIFunc>;
232 GlobalIFunc *Module::getNamedIFunc(StringRef Name) const { in getNamedIFunc()
233 return dyn_cast_or_null<GlobalIFunc>(getNamedValue(Name)); in getNamedIFunc()
530 for (GlobalIFunc &GIF : ifuncs()) in dropAllReferences()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCloneModule.cpp118 for (const GlobalIFunc &I : M.ifuncs()) { in CloneModule()
121 GlobalIFunc::create(I.getValueType(), I.getAddressSpace(), in CloneModule()
202 for (const GlobalIFunc &I : M.ifuncs()) { in CloneModule()
203 GlobalIFunc *GI = cast<GlobalIFunc>(VMap[&I]); in CloneModule()
H A DModuleUtils.cpp355 Module &M, ArrayRef<GlobalIFunc *> FilteredIFuncsToLower) { in lowerGlobalIFuncUsersAsGlobalCtor()
356 SmallVector<GlobalIFunc *, 32> AllIFuncs; in lowerGlobalIFuncUsersAsGlobalCtor()
357 ArrayRef<GlobalIFunc *> IFuncsToLower = FilteredIFuncsToLower; in lowerGlobalIFuncUsersAsGlobalCtor()
359 for (GlobalIFunc &GI : M.ifuncs()) in lowerGlobalIFuncUsersAsGlobalCtor()
393 for (GlobalIFunc *GI : IFuncsToLower) { in lowerGlobalIFuncUsersAsGlobalCtor()
H A DFunctionImportUtils.cpp50 if (isa<GlobalIFunc>(SGV) || in shouldPromoteLocalToGlobal()
52 isa<GlobalIFunc>(cast<GlobalAlias>(SGV)->getAliaseeObject()))) in shouldPromoteLocalToGlobal()
H A DSplitModule.cpp94 if (const auto *GI = dyn_cast_or_null<GlobalIFunc>(GO)) in getGVPartitioningRoot()
262 for (GlobalIFunc &GIF : M.ifuncs()) in SplitModule()
H A DValueMapper.cpp938 else if (auto *GI = dyn_cast<GlobalIFunc>(GV)) in flush()
1139 assert((isa<GlobalAlias>(GV) || isa<GlobalIFunc>(GV)) && in scheduleMapAliasOrIFunc()
1264 void ValueMapper::scheduleMapGlobalIFunc(GlobalIFunc &GI, Constant &Resolver, in scheduleMapGlobalIFunc()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DModuleUtils.h30 class GlobalIFunc; variable
144 Module &M, ArrayRef<GlobalIFunc *> IFuncsToLower = {});
H A DValueMapper.h195 void scheduleMapGlobalIFunc(GlobalIFunc &GI, Constant &Resolver,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalDCE.cpp303 for (GlobalIFunc &GIF : M.ifuncs()) { in run()
357 std::vector<GlobalIFunc*> DeadIFuncs; in run()
358 for (GlobalIFunc &GIF : M.ifuncs()) in run()
404 for (GlobalIFunc *GIF : DeadIFuncs) in run()
H A DExtractGV.cpp132 for (GlobalIFunc &IF : llvm::make_early_inc_range(M.ifuncs())) { in run()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86AsmPrinter.h124 void emitMachOIFuncStubBody(Module &M, const GlobalIFunc &GI,
126 void emitMachOIFuncStubHelperBody(Module &M, const GlobalIFunc &GI,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp508 void linkIFuncResolver(GlobalIFunc &Dst, GlobalIFunc &Src);
626 } else if (auto *GI = dyn_cast<GlobalIFunc>(New)) { in materialize()
715 if (auto *GI = dyn_cast<GlobalIFunc>(SGV)) { in copyIndirectSymbolProto()
716 auto *DGI = GlobalIFunc::create(Ty, SGV->getAddressSpace(), in copyIndirectSymbolProto()
1155 void IRLinker::linkIFuncResolver(GlobalIFunc &Dst, GlobalIFunc &Src) { in linkIFuncResolver()
1170 linkIFuncResolver(cast<GlobalIFunc>(Dst), cast<GlobalIFunc>(Src)); in linkGlobalValueBody()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILValueEnumerator.cpp122 for (const GlobalIFunc &I : M.ifuncs()) in orderModule()
172 for (const GlobalIFunc &I : M.ifuncs()) in orderModule()
343 for (const GlobalIFunc &I : M.ifuncs()) in predictUseListOrder()
350 for (const GlobalIFunc &I : M.ifuncs()) in predictUseListOrder()
387 for (const GlobalIFunc &GIF : M.ifuncs()) { in ValueEnumerator()
407 for (const GlobalIFunc &GIF : M.ifuncs()) in ValueEnumerator()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DAsmPrinter.h606 virtual void emitMachOIFuncStubBody(Module &M, const GlobalIFunc &GI, in emitMachOIFuncStubBody()
612 virtual void emitMachOIFuncStubHelperBody(Module &M, const GlobalIFunc &GI, in emitMachOIFuncStubHelperBody()
901 void emitGlobalIFunc(Module &M, const GlobalIFunc &GI);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.cpp114 for (const GlobalIFunc &I : reverse(M.ifuncs())) in orderModule()
301 for (const GlobalIFunc &I : M.ifuncs()) in predictUseListOrder()
308 for (const GlobalIFunc &I : M.ifuncs()) in predictUseListOrder()
348 for (const GlobalIFunc &GIF : M.ifuncs()) { in ValueEnumerator()
369 for (const GlobalIFunc &GIF : M.ifuncs()) in ValueEnumerator()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Object/
H A DIRSymtab.cpp304 if (isa<GlobalIFunc>(GV)) in addSymbol()
305 GO = cast<GlobalIFunc>(GV)->getResolverFunction(); in addSymbol()
H A DModuleSymbolTable.cpp218 if (isa<Function>(GO) || isa<GlobalIFunc>(GO)) in getSymbolFlags()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp430 if (auto *GI = dyn_cast_if_present<GlobalIFunc>(CalledValue)) in computeFunctionSummary()
785 if (isa<GlobalIFunc>(Aliasee)) in computeAliasSummary()
954 for (const GlobalIFunc &I : M.ifuncs()) { in buildModuleSummaryIndex()

12