Lines Matching refs:GlobalValue
49 SetVector<GlobalValue *> &PromoteExtra) { in promoteInternals()
56 GlobalValue *ImportGV = nullptr; in promoteInternals()
76 ExportGV.setLinkage(GlobalValue::ExternalLinkage); in promoteInternals()
77 ExportGV.setVisibility(GlobalValue::HiddenVisibility); in promoteInternals()
81 ImportGV->setVisibility(GlobalValue::HiddenVisibility); in promoteInternals()
193 Function::Create(EmptyFT, GlobalValue::ExternalLinkage, in simplifyExternals()
222 function_ref<bool(const GlobalValue *)> ShouldKeepDefinition) { in filterModule()
223 std::vector<GlobalValue *> V; in filterModule()
224 for (GlobalValue &GV : M->global_values()) in filterModule()
228 for (GlobalValue *GV : V) in filterModule()
236 if (isa<GlobalValue>(C)) in forEachVirtualFunction()
246 SmallVector<GlobalValue *, 4> Used, NewUsed; in cloneUsedGlobalVariables()
353 auto MustEmitToMergedModule = [](const GlobalValue *GV) { in splitAndWriteThinLTOBitcode()
361 CloneModule(M, VMap, [&](const GlobalValue *GV) -> bool { in splitAndWriteThinLTOBitcode()
387 F.setLinkage(GlobalValue::AvailableExternallyLinkage); in splitAndWriteThinLTOBitcode()
391 SetVector<GlobalValue *> CfiFunctions; in splitAndWriteThinLTOBitcode()
398 filterModule(&M, [&](const GlobalValue *GV) { in splitAndWriteThinLTOBitcode()