Searched refs:SGV (Results 1 – 4 of 4) sorted by relevance
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | FunctionImportUtils.cpp | 30 const GlobalValue *SGV) { in doImportAsDefinition() argument 35 if (!GlobalsToImport->count(const_cast<GlobalValue *>(SGV))) in doImportAsDefinition() 38 assert(!isa<GlobalAlias>(SGV) && in doImportAsDefinition() 46 const GlobalValue *SGV, ValueInfo VI) { in shouldPromoteLocalToGlobal() argument 47 assert(SGV->hasLocalLinkage()); in shouldPromoteLocalToGlobal() 50 if (isa<GlobalIFunc>(SGV) || in shouldPromoteLocalToGlobal() 51 (isa<GlobalAlias>(SGV) && in shouldPromoteLocalToGlobal() 52 isa<GlobalIFunc>(cast<GlobalAlias>(SGV)->getAliaseeObject()))) in shouldPromoteLocalToGlobal() 61 assert((!GlobalsToImport->count(const_cast<GlobalValue *>(SGV)) || in shouldPromoteLocalToGlobal() 62 !isNonRenamableLocal(*SGV)) && in shouldPromoteLocalToGlobal() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Linker/ |
H A D | IRMover.cpp | 454 GlobalValue *copyGlobalValueProto(const GlobalValue *SGV, bool ForDefinition); 500 bool shouldLink(GlobalValue *DGV, GlobalValue &SGV); 520 GlobalValue *copyIndirectSymbolProto(const GlobalValue *SGV); 585 Value *GlobalValueMaterializer::materialize(Value *SGV) { in materialize() argument 586 return TheIRLinker.materialize(SGV, false); in materialize() 589 Value *LocalValueMaterializer::materialize(Value *SGV) { in materialize() argument 590 return TheIRLinker.materialize(SGV, true); in materialize() 594 auto *SGV = dyn_cast<GlobalValue>(V); in materialize() local 595 if (!SGV) in materialize() 602 if (SGV->getParent() != &DstM && SGV->getParent() != SrcM.get()) in materialize() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | FunctionImportUtils.h | 65 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/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULowerModuleLDSPass.cpp | 264 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 689 cast<Constant>(ModuleScopeReplacement.SGV), in lowerModuleScopeStructVariables() 693 recordLDSAbsoluteAddress(&M, ModuleScopeReplacement.SGV, 0); in lowerModuleScopeStructVariables() 728 markUsedByKernel(&Func, ModuleScopeReplacement.SGV); in lowerModuleScopeStructVariables() 732 return ModuleScopeReplacement.SGV; in lowerModuleScopeStructVariables() 802 markUsedByKernel(&Func, Replacement.SGV); in lowerKernelScopeStructVariables() 1067 GlobalVariable *KernelStruct = Replacement->second.SGV; in runOnModule() 1234 GlobalVariable *SGV = new GlobalVariable( in createLDSVariableReplacement() local [all …]
|