Home
last modified time | relevance | path

Searched refs:SGV (Results 1 – 4 of 4) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionImportUtils.cpp30 const GlobalValue *SGV) { in doImportAsDefinition() argument
50 if (isa<GlobalIFunc>(SGV) || in shouldPromoteLocalToGlobal()
51 (isa<GlobalAlias>(SGV) && in shouldPromoteLocalToGlobal()
121 SGV->getName(), in getPromotedName()
135 return SGV->getLinkage(); in getLinkage()
140 return SGV->getLinkage(); in getLinkage()
149 if (doImportAsDefinition(SGV) && !isa<GlobalAlias>(SGV)) in getLinkage()
152 return SGV->getLinkage(); in getLinkage()
160 return SGV->getLinkage(); in getLinkage()
178 if (doImportAsDefinition(SGV) && !isa<GlobalAlias>(SGV)) in getLinkage()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp593 auto *SGV = dyn_cast<GlobalValue>(V); in materialize() local
594 if (!SGV) in materialize()
601 if (SGV->getParent() != &DstM && SGV->getParent() != SrcM.get()) in materialize()
747 SGV->getThreadLocalMode(), SGV->getAddressSpace()); in copyGlobalValueProto()
751 NewGV->setLinkage(SGV->getLinkage()); in copyGlobalValueProto()
752 else if (SGV->hasExternalWeakLinkage()) in copyGlobalValueProto()
757 if (isa<GlobalVariable>(SGV) || SGV->isDeclaration()) { in copyGlobalValueProto()
805 for (GlobalValue &SGV : *SrcM) in computeTypeMapping()
999 if (ValuesToLink.count(&SGV) || SGV.hasLocalLinkage()) in shouldLink()
1027 auto I = ValueMap.find(SGV); in linkGlobalValueProto()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DFunctionImportUtils.h65 bool shouldPromoteLocalToGlobal(const GlobalValue *SGV, ValueInfo VI);
81 bool doImportAsDefinition(const GlobalValue *SGV);
85 std::string getPromotedName(const GlobalValue *SGV);
98 GlobalValue::LinkageTypes getLinkage(const GlobalValue *SGV, bool DoPromote);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerModuleLDSPass.cpp274 static void markUsedByKernel(Function *Func, GlobalVariable *SGV) { in markUsedByKernel() argument
302 Builder.CreateConstInBoundsGEP1_32(SGV->getValueType(), SGV, 0)}; in markUsedByKernel()
466 GlobalVariable *SGV = nullptr; member
858 recordLDSAbsoluteAddress(&M, ModuleScopeReplacement.SGV, 0); in lowerModuleScopeStructVariables()
893 markUsedByKernel(&Func, ModuleScopeReplacement.SGV); in lowerModuleScopeStructVariables()
897 return ModuleScopeReplacement.SGV; in lowerModuleScopeStructVariables()
967 markUsedByKernel(&Func, Replacement.SGV); in lowerKernelScopeStructVariables()
1277 GlobalVariable *KernelStruct = Replacement->second.SGV; in runOnModule()
1444 GlobalVariable *SGV = new GlobalVariable( in createLDSVariableReplacement() local
1448 SGV->setAlignment(StructAlign); in createLDSVariableReplacement()
[all …]