| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | GlobalIFunc.h | 35 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 D | SymbolTableListTraits.h | 38 class GlobalIFunc; variable 58 DEFINE_SYMBOL_TABLE_PARENT_TYPE(GlobalIFunc, Module) 116 extern template class LLVM_TEMPLATE_ABI SymbolTableListTraits<GlobalIFunc>;
|
| H A D | Module.h | 78 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 D | ValueSymbolTable.h | 28 class GlobalIFunc; variable 45 friend class SymbolTableListTraits<GlobalIFunc>;
|
| H A D | Value.h | 40 class GlobalIFunc; variable 1057 template <> struct isa_impl<GlobalIFunc, Value> { 1072 isa<GlobalIFunc>(Val);
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Globals.cpp | 129 !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 D | Module.cpp | 66 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 D | CloneModule.cpp | 118 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 D | ModuleUtils.cpp | 401 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 D | FunctionImportUtils.cpp | 82 if (isa<GlobalIFunc>(SGV) || in shouldPromoteLocalToGlobal() 84 isa<GlobalIFunc>(cast<GlobalAlias>(SGV)->getAliaseeObject()))) in shouldPromoteLocalToGlobal()
|
| H A D | SplitModule.cpp | 105 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 D | Module.cpp | 32 GlobalIFunc *Module::getNamedIFunc(StringRef Name) const { in getNamedIFunc() 33 return cast_or_null<GlobalIFunc>(Ctx.getValue(LLVMM.getNamedIFunc(Name))); in getNamedIFunc()
|
| H A D | Constant.cpp | 309 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 D | Module.h | 29 class GlobalIFunc; variable 76 LLVM_ABI GlobalIFunc *getNamedIFunc(StringRef Name) const;
|
| H A D | Constant.h | 901 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 D | Values.def | 41 DEF_CONST(GlobalIFunc, GlobalIFunc)
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | GlobalDCE.cpp | 300 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 D | ExtractGV.cpp | 131 for (GlobalIFunc &IF : llvm::make_early_inc_range(M.ifuncs())) { in run()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | ModuleUtils.h | 31 class GlobalIFunc; variable 160 ArrayRef<GlobalIFunc *> IFuncsToLower = {});
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86AsmPrinter.h | 148 void emitMachOIFuncStubBody(Module &M, const GlobalIFunc &GI, 150 void emitMachOIFuncStubHelperBody(Module &M, const GlobalIFunc &GI,
|
| /freebsd/contrib/llvm-project/llvm/lib/Linker/ |
| H A D | IRMover.cpp | 404 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 D | DXILValueEnumerator.cpp | 122 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 D | AsmPrinter.h | 636 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 D | ValueEnumerator.cpp | 114 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 D | ModuleSummaryAnalysis.cpp | 138 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()
|