Searched refs:SGV (Results 1 - 3 of 3) sorted by relevance

/external/llvm/lib/Linker/
H A DLinkModules.cpp69 bool doPromoteLocalToGlobal(const GlobalValue *SGV);
125 /// import SGV as a definition, otherwise import as a declaration.
126 bool doImportAsDefinition(const GlobalValue *SGV);
128 /// Get the name for SGV that should be used in the linked destination
131 std::string getName(const GlobalValue *SGV);
140 /// Get the new linkage for SGV that should be used in the linked destination
143 GlobalValue::LinkageTypes getLinkage(const GlobalValue *SGV);
169 bool ModuleLinker::doImportAsDefinition(const GlobalValue *SGV) { argument
172 auto *GA = dyn_cast<GlobalAlias>(SGV);
188 if (isa<GlobalVariable>(SGV)
199 doPromoteLocalToGlobal(const GlobalValue *SGV) argument
223 getName(const GlobalValue *SGV) argument
237 getLinkage(const GlobalValue *SGV) argument
[all...]
H A DIRMover.cpp432 GlobalValue *copyGlobalValueProto(const GlobalValue *SGV, bool ForDefinition);
480 bool shouldLink(GlobalValue *DGV, GlobalValue &SGV);
614 auto *SGV = dyn_cast<GlobalValue>(V); local
615 if (!SGV)
618 return linkGlobalValueProto(SGV, ForAlias);
733 GlobalValue *IRLinker::copyGlobalValueProto(const GlobalValue *SGV, argument
736 if (auto *SGVar = dyn_cast<GlobalVariable>(SGV)) {
738 } else if (auto *SF = dyn_cast<Function>(SGV)) {
742 NewGV = copyGlobalAliasProto(cast<GlobalAlias>(SGV));
745 DstM, TypeMap.get(SGV
981 useExistingDest(GlobalValue &SGV, GlobalValue *DGV, bool ShouldLink) argument
998 shouldLink(GlobalValue *DGV, GlobalValue &SGV) argument
1026 linkGlobalValueProto(GlobalValue *SGV, bool ForAlias) argument
[all...]
/external/llvm/lib/Transforms/IPO/
H A DFunctionImport.cpp209 GlobalValue *SGV = SrcModule.getNamedValue(CalledFunctionName); local
211 if (!SGV) {
219 SGV = SrcModule.getNamedValue(Split.first);
220 assert(SGV && "Can't find function to import in source module");
222 if (!SGV) {
228 Function *F = dyn_cast<Function>(SGV);
229 if (!F && isa<GlobalAlias>(SGV)) {
230 auto *SGA = dyn_cast<GlobalAlias>(SGV);
239 if (SGV->hasWeakAnyLinkage()) {
242 << (isa<Function>(SGV)
[all...]

Completed in 134 milliseconds