Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Utils/
DFunctionImportUtils.cpp24 const GlobalValue *SGV, DenseSet<const GlobalValue *> *GlobalsToImport) { in doImportAsDefinition() argument
27 if (auto *GA = dyn_cast<GlobalAlias>(SGV)) { in doImportAsDefinition()
37 if (GlobalsToImport->count(SGV)) in doImportAsDefinition()
44 const GlobalValue *SGV) { in doImportAsDefinition() argument
47 return FunctionImportGlobalProcessing::doImportAsDefinition(SGV, in doImportAsDefinition()
52 const GlobalValue *SGV) { in doPromoteLocalToGlobal() argument
53 assert(SGV->hasLocalLinkage()); in doPromoteLocalToGlobal()
66 auto *GVar = dyn_cast<GlobalVariable>(SGV); in doPromoteLocalToGlobal()
81 std::string FunctionImportGlobalProcessing::getName(const GlobalValue *SGV) { in getName() argument
87 if (SGV->hasLocalLinkage() && in getName()
[all …]
/external/llvm/lib/Linker/
DIRMover.cpp425 GlobalValue *copyGlobalValueProto(const GlobalValue *SGV, bool ForDefinition);
463 bool shouldLink(GlobalValue *DGV, GlobalValue &SGV);
525 Value *GlobalValueMaterializer::materialize(Value *SGV) { in materialize() argument
526 return TheIRLinker.materialize(SGV, false); in materialize()
529 Value *LocalValueMaterializer::materialize(Value *SGV) { in materialize() argument
530 return TheIRLinker.materialize(SGV, true); in materialize()
534 auto *SGV = dyn_cast<GlobalValue>(V); in materialize() local
535 if (!SGV) in materialize()
538 Expected<Constant *> NewProto = linkGlobalValueProto(SGV, ForAlias); in materialize()
571 if (ForAlias && ValueMap.lookup(SGV) == New) in materialize()
[all …]
DLinkModules.cpp117 bool doImportAsDefinition(const GlobalValue *SGV);
129 bool ModuleLinker::doImportAsDefinition(const GlobalValue *SGV) { in doImportAsDefinition() argument
132 return FunctionImportGlobalProcessing::doImportAsDefinition(SGV, in doImportAsDefinition()
/external/llvm/include/llvm/Transforms/Utils/
DFunctionImportUtils.h44 bool doPromoteLocalToGlobal(const GlobalValue *SGV);
53 bool doImportAsDefinition(const GlobalValue *SGV);
58 std::string getName(const GlobalValue *SGV);
70 GlobalValue::LinkageTypes getLinkage(const GlobalValue *SGV);
88 doImportAsDefinition(const GlobalValue *SGV,
/external/swiftshader/third_party/LLVM/lib/Linker/
DLinkModules.cpp616 bool ModuleLinker::linkGlobalProto(GlobalVariable *SGV) { in linkGlobalProto() argument
617 GlobalValue *DGV = getLinkedToGlobal(SGV); in linkGlobalProto()
621 if (DGV->hasAppendingLinkage() || SGV->hasAppendingLinkage()) in linkGlobalProto()
622 return linkAppendingVarProto(cast<GlobalVariable>(DGV), SGV); in linkGlobalProto()
628 if (getLinkageResult(DGV, SGV, NewLinkage, LinkFromSrc)) in linkGlobalProto()
636 if (DGVar->isDeclaration() && SGV->isConstant() && !DGVar->isConstant()) in linkGlobalProto()
643 ValueMap[SGV] = ConstantExpr::getBitCast(DGV,TypeMap.get(SGV->getType())); in linkGlobalProto()
647 DoNotLinkFromSource.insert(SGV); in linkGlobalProto()
657 new GlobalVariable(*DstM, TypeMap.get(SGV->getType()->getElementType()), in linkGlobalProto()
658 SGV->isConstant(), SGV->getLinkage(), /*init*/0, in linkGlobalProto()
[all …]