Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionImportUtils.cpp62 const GlobalValue *SGV) { in doImportAsDefinition() argument
67 if (!GlobalsToImport->count(const_cast<GlobalValue *>(SGV))) in doImportAsDefinition()
70 assert(!isa<GlobalAlias>(SGV) && in doImportAsDefinition()
78 const GlobalValue *SGV, ValueInfo VI) { in shouldPromoteLocalToGlobal() argument
79 assert(SGV->hasLocalLinkage()); in shouldPromoteLocalToGlobal()
82 if (isa<GlobalIFunc>(SGV) || in shouldPromoteLocalToGlobal()
83 (isa<GlobalAlias>(SGV) && in shouldPromoteLocalToGlobal()
84 isa<GlobalIFunc>(cast<GlobalAlias>(SGV)->getAliaseeObject()))) in shouldPromoteLocalToGlobal()
93 assert((!GlobalsToImport->count(const_cast<GlobalValue *>(SGV)) || in shouldPromoteLocalToGlobal()
94 !isNonRenamableLocal(*SGV)) && in shouldPromoteLocalToGlobal()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DIRMover.cpp349 GlobalValue *copyGlobalValueProto(const GlobalValue *SGV, bool ForDefinition);
395 bool shouldLink(GlobalValue *DGV, GlobalValue &SGV);
415 GlobalValue *copyIndirectSymbolProto(const GlobalValue *SGV);
480 Value *GlobalValueMaterializer::materialize(Value *SGV) { in materialize() argument
481 return TheIRLinker.materialize(SGV, false); in materialize()
484 Value *LocalValueMaterializer::materialize(Value *SGV) { in materialize() argument
485 return TheIRLinker.materialize(SGV, true); in materialize()
489 auto *SGV = dyn_cast<GlobalValue>(V); in materialize() local
490 if (!SGV) in materialize()
494 if (SGV->getParent() == &DstM) in materialize()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DFunctionImportUtils.h66 bool shouldPromoteLocalToGlobal(const GlobalValue *SGV, ValueInfo VI);
82 bool doImportAsDefinition(const GlobalValue *SGV);
86 std::string getPromotedName(const GlobalValue *SGV);
99 GlobalValue::LinkageTypes getLinkage(const GlobalValue *SGV, bool DoPromote);
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerModuleLDSPass.cpp264 static void markUsedByKernel(Function *Func, GlobalVariable *SGV) { in markUsedByKernel() argument
292 Builder.CreateConstInBoundsGEP1_32(SGV->getValueType(), SGV, 0)}; in markUsedByKernel()
302 GlobalVariable *SGV = nullptr; member
687 cast<Constant>(ModuleScopeReplacement.SGV), in lowerModuleScopeStructVariables()
691 recordLDSAbsoluteAddress(&M, ModuleScopeReplacement.SGV, 0); in lowerModuleScopeStructVariables()
726 markUsedByKernel(&Func, ModuleScopeReplacement.SGV); in lowerModuleScopeStructVariables()
730 return ModuleScopeReplacement.SGV; in lowerModuleScopeStructVariables()
800 markUsedByKernel(&Func, Replacement.SGV); in lowerKernelScopeStructVariables()
1189 GlobalVariable *KernelStruct = Replacement->second.SGV; in runOnModule()
1361 GlobalVariable *SGV = new GlobalVariable( in createLDSVariableReplacement() local
[all …]
H A DAMDGPUSwLowerLDS.cpp331 static void markUsedByKernel(Function *Func, GlobalVariable *SGV) { in markUsedByKernel() argument
339 Builder.CreateConstInBoundsGEP1_32(SGV->getValueType(), SGV, 0)}; in markUsedByKernel()