Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DGlobalIFunc.h35 class GlobalIFunc final : public GlobalObject, public ilist_node<GlobalIFunc> {
36 friend class SymbolTableListTraits<GlobalIFunc>;
40 GlobalIFunc(Type *Ty, unsigned AddressSpace, LinkageTypes Linkage,
44 GlobalIFunc(const GlobalIFunc &) = delete;
45 GlobalIFunc &operator=(const GlobalIFunc &) = delete;
49 LLVM_ABI static GlobalIFunc *create(Type *Ty, unsigned AddressSpace,
60 void copyAttributesFrom(const GlobalIFunc *Src) { in copyAttributesFrom()
83 static_cast<const GlobalIFunc *>(this)->getResolverFunction()); in getResolverFunction()
105 struct OperandTraits<GlobalIFunc>
106 : public FixedNumOperandTraits<GlobalIFunc, 1> {};
[all …]
H A DSymbolTableListTraits.h38 class GlobalIFunc; variable
58 DEFINE_SYMBOL_TABLE_PARENT_TYPE(GlobalIFunc, Module)
116 extern template class LLVM_TEMPLATE_ABI SymbolTableListTraits<GlobalIFunc>;
H A DModule.h78 using IFuncListType = SymbolTableList<GlobalIFunc>;
480 GlobalIFunc *getNamedIFunc(StringRef Name) const;
613 void removeIFunc(GlobalIFunc *IFunc) { IFuncList.remove(IFunc); } in removeIFunc()
615 void eraseIFunc(GlobalIFunc *IFunc) { IFuncList.erase(IFunc); } in eraseIFunc()
617 void insertIFunc(GlobalIFunc *IFunc) { IFuncList.push_back(IFunc); } in insertIFunc()
648 static IFuncListType Module::*getSublistAccess(GlobalIFunc*) { in getSublistAccess() argument
651 friend class llvm::SymbolTableListTraits<llvm::GlobalIFunc>;
H A DValueSymbolTable.h28 class GlobalIFunc; variable
45 friend class SymbolTableListTraits<GlobalIFunc>;
H A DValue.h40 class GlobalIFunc; variable
1057 template <> struct isa_impl<GlobalIFunc, Value> {
1072 isa<GlobalIFunc>(Val);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DGlobals.cpp129 !isa<GlobalIFunc>(this) && !isDeduplicateComdat(getComdat()); in canBenefitFromLocalAlias()
209 if (isa<GlobalIFunc>(this)) in getComdat()
326 assert(isa<GlobalAlias>(this) || isa<GlobalIFunc>(this)); in isDeclaration()
631 GlobalIFunc::GlobalIFunc(Type *Ty, unsigned AddressSpace, LinkageTypes Link, in GlobalIFunc() function in GlobalIFunc
641 GlobalIFunc *GlobalIFunc::create(Type *Ty, unsigned AddressSpace, in create()
644 return new GlobalIFunc(Ty, AddressSpace, Link, Name, Resolver, ParentModule); in create()
647 void GlobalIFunc::removeFromParent() { getParent()->removeIFunc(this); } in removeFromParent()
649 void GlobalIFunc::eraseFromParent() { getParent()->eraseIFunc(this); } in eraseFromParent()
651 const Function *GlobalIFunc::getResolverFunction() const { in getResolverFunction()
655 void GlobalIFunc::applyAlongResolverPath( in applyAlongResolverPath()
H A DModule.cpp66 template class LLVM_EXPORT_TEMPLATE llvm::SymbolTableListTraits<GlobalIFunc>;
288 GlobalIFunc *Module::getNamedIFunc(StringRef Name) const { in getNamedIFunc()
289 return dyn_cast_or_null<GlobalIFunc>(getNamedValue(Name)); in getNamedIFunc()
571 for (GlobalIFunc &GIF : ifuncs()) in dropAllReferences()
/freebsd/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()
176 for (const GlobalIFunc &I : M.ifuncs()) { in CloneModule()
177 GlobalIFunc *GI = cast<GlobalIFunc>(VMap[&I]); in CloneModule()
H A DModuleUtils.cpp401 Module &M, ArrayRef<GlobalIFunc *> FilteredIFuncsToLower) { in lowerGlobalIFuncUsersAsGlobalCtor()
402 SmallVector<GlobalIFunc *, 32> AllIFuncs; in lowerGlobalIFuncUsersAsGlobalCtor()
403 ArrayRef<GlobalIFunc *> IFuncsToLower = FilteredIFuncsToLower; in lowerGlobalIFuncUsersAsGlobalCtor()
405 for (GlobalIFunc &GI : M.ifuncs()) in lowerGlobalIFuncUsersAsGlobalCtor()
439 for (GlobalIFunc *GI : IFuncsToLower) { in lowerGlobalIFuncUsersAsGlobalCtor()
H A DFunctionImportUtils.cpp82 if (isa<GlobalIFunc>(SGV) || in shouldPromoteLocalToGlobal()
84 isa<GlobalIFunc>(cast<GlobalAlias>(SGV)->getAliaseeObject()))) in shouldPromoteLocalToGlobal()
H A DSplitModule.cpp105 if (const auto *GI = dyn_cast_or_null<GlobalIFunc>(GO)) in getGVPartitioningRoot()
249 for (GlobalIFunc &GIF : M.ifuncs()) in SplitModule()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DModule.cpp32 GlobalIFunc *Module::getNamedIFunc(StringRef Name) const { in getNamedIFunc()
33 return cast_or_null<GlobalIFunc>(Ctx.getValue(LLVMM.getNamedIFunc(Name))); in getNamedIFunc()
H A DConstant.cpp309 GlobalIFunc, llvm::GlobalIFunc, GlobalObject, llvm::GlobalObject>;
317 void GlobalIFunc::setResolver(Constant *Resolver) { in setResolver()
320 GenericSetter<&GlobalIFunc::getResolver, &GlobalIFunc::setResolver>>( in setResolver()
322 cast<llvm::GlobalIFunc>(Val)->setResolver( in setResolver()
326 Constant *GlobalIFunc::getResolver() const { in getResolver()
327 return Ctx.getOrCreateConstant(cast<llvm::GlobalIFunc>(Val)->getResolver()); in getResolver()
330 Function *GlobalIFunc::getResolverFunction() { in getResolverFunction()
332 cast<llvm::GlobalIFunc>(Val)->getResolverFunction())); in getResolverFunction()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DModule.h29 class GlobalIFunc; variable
76 LLVM_ABI GlobalIFunc *getNamedIFunc(StringRef Name) const;
H A DConstant.h901 case ClassID::GlobalIFunc: in classof()
974 case ClassID::GlobalIFunc: in classof()
1067 GlobalIFunc, llvm::GlobalIFunc, GlobalObject, llvm::GlobalObject>;
1075 class GlobalIFunc final
1076 : public GlobalWithNodeAPI<GlobalIFunc, llvm::GlobalIFunc, GlobalObject,
1078 GlobalIFunc(llvm::GlobalObject *C, Context &Ctx) in GlobalIFunc() function
1079 : GlobalWithNodeAPI(ClassID::GlobalIFunc, C, Ctx) {} in GlobalIFunc()
1085 return From->getSubclassID() == ClassID::GlobalIFunc; in classof()
1101 return const_cast<GlobalIFunc *>(this)->getResolverFunction(); in getResolverFunction()
1105 return llvm::GlobalIFunc::isValidLinkage(L); in isValidLinkage()
[all …]
H A DValues.def41 DEF_CONST(GlobalIFunc, GlobalIFunc)
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalDCE.cpp300 for (GlobalIFunc &GIF : M.ifuncs()) { in run()
354 std::vector<GlobalIFunc*> DeadIFuncs; in run()
355 for (GlobalIFunc &GIF : M.ifuncs()) in run()
401 for (GlobalIFunc *GIF : DeadIFuncs) in run()
H A DExtractGV.cpp131 for (GlobalIFunc &IF : llvm::make_early_inc_range(M.ifuncs())) { in run()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DModuleUtils.h31 class GlobalIFunc; variable
160 ArrayRef<GlobalIFunc *> IFuncsToLower = {});
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86AsmPrinter.h148 void emitMachOIFuncStubBody(Module &M, const GlobalIFunc &GI,
150 void emitMachOIFuncStubHelperBody(Module &M, const GlobalIFunc &GI,
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp404 void linkIFuncResolver(GlobalIFunc &Dst, GlobalIFunc &Src);
526 } else if (auto *GI = dyn_cast<GlobalIFunc>(New)) { in materialize()
615 if (auto *GI = dyn_cast<GlobalIFunc>(SGV)) { in copyIndirectSymbolProto()
616 auto *DGI = GlobalIFunc::create(Ty, SGV->getAddressSpace(), in copyIndirectSymbolProto()
1048 void IRLinker::linkIFuncResolver(GlobalIFunc &Dst, GlobalIFunc &Src) { in linkIFuncResolver()
1063 linkIFuncResolver(cast<GlobalIFunc>(Dst), cast<GlobalIFunc>(Src)); in linkGlobalValueBody()
/freebsd/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/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DAsmPrinter.h636 virtual void emitMachOIFuncStubBody(Module &M, const GlobalIFunc &GI, in emitMachOIFuncStubBody()
642 virtual void emitMachOIFuncStubHelperBody(Module &M, const GlobalIFunc &GI, in emitMachOIFuncStubHelperBody()
948 void emitGlobalIFunc(Module &M, const GlobalIFunc &GI);
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.cpp114 for (const GlobalIFunc &I : reverse(M.ifuncs())) in orderModule()
318 for (const GlobalIFunc &I : M.ifuncs()) in predictUseListOrder()
325 for (const GlobalIFunc &I : M.ifuncs()) in predictUseListOrder()
365 for (const GlobalIFunc &GIF : M.ifuncs()) { in ValueEnumerator()
386 for (const GlobalIFunc &GIF : M.ifuncs()) in ValueEnumerator()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp138 if (auto *GI = dyn_cast_if_present<GlobalIFunc>(GV); in findRefEdges()
474 if (auto *GI = dyn_cast_if_present<GlobalIFunc>(CalledValue)) in computeFunctionSummary()
908 if (isa<GlobalIFunc>(Aliasee)) in computeAliasSummary()
1080 for (const GlobalIFunc &I : M.ifuncs()) { in buildModuleSummaryIndex()

123