Home
last modified time | relevance | path

Searched refs:NumUses (Results 1 – 25 of 59) sorted by relevance

123

/external/angle/third_party/vulkan-deps/spirv-tools/src/source/reduce/
Dremove_unused_instruction_reduction_opportunity_finder.cpp39 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
47 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
55 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
63 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
98 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
Dremove_function_reduction_opportunity_finder.cpp35 if (context->get_def_use_mgr()->NumUses(function.result_id()) > 0) { in GetAvailableOpportunities()
/external/swiftshader/third_party/SPIRV-Tools/source/reduce/
Dremove_unused_instruction_reduction_opportunity_finder.cpp39 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
47 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
55 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
63 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
98 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
Dremove_function_reduction_opportunity_finder.cpp35 if (context->get_def_use_mgr()->NumUses(function.result_id()) > 0) { in GetAvailableOpportunities()
/external/deqp-deps/SPIRV-Tools/source/reduce/
Dremove_unused_instruction_reduction_opportunity_finder.cpp39 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
47 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
55 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
63 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
98 if (context->get_def_use_mgr()->NumUses(&inst) > 0) { in GetAvailableOpportunities()
Dremove_function_reduction_opportunity_finder.cpp35 if (context->get_def_use_mgr()->NumUses(function.result_id()) > 0) { in GetAvailableOpportunities()
/external/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp334 unsigned NumUses = 0; in maximizeConstantsInRange() local
338 NumUses += ConstCand->Uses.size(); in maximizeConstantsInRange()
342 return NumUses; in maximizeConstantsInRange()
351 NumUses += ConstCand->Uses.size(); in maximizeConstantsInRange()
382 return NumUses; in maximizeConstantsInRange()
390 unsigned NumUses = maximizeConstantsInRange(S, E, MaxCostItr); in findAndMakeBaseConstant() local
393 if (NumUses <= 1) in findAndMakeBaseConstant()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DLocalizer.cpp66 unsigned NumUses = 0; in shouldLocalize() local
68 for (; UI != UE && NumUses < MaxUses; ++UI) { in shouldLocalize()
69 NumUses++; in shouldLocalize()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Ddef_use_manager.h188 uint32_t NumUses(const Instruction* def) const;
189 uint32_t NumUses(uint32_t id) const;
Ddef_use_manager.cpp200 uint32_t DefUseManager::NumUses(const Instruction* def) const { in NumUses() function in spvtools::opt::analysis::DefUseManager
206 uint32_t DefUseManager::NumUses(uint32_t id) const { in NumUses() function in spvtools::opt::analysis::DefUseManager
207 return NumUses(GetDef(id)); in NumUses()
/external/deqp-deps/SPIRV-Tools/source/opt/
Ddef_use_manager.h188 uint32_t NumUses(const Instruction* def) const;
189 uint32_t NumUses(uint32_t id) const;
Ddef_use_manager.cpp200 uint32_t DefUseManager::NumUses(const Instruction* def) const { in NumUses() function in spvtools::opt::analysis::DefUseManager
206 uint32_t DefUseManager::NumUses(uint32_t id) const { in NumUses() function in spvtools::opt::analysis::DefUseManager
207 return NumUses(GetDef(id)); in NumUses()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/
Ddef_use_manager.h188 uint32_t NumUses(const Instruction* def) const;
189 uint32_t NumUses(uint32_t id) const;
Ddef_use_manager.cpp200 uint32_t DefUseManager::NumUses(const Instruction* def) const { in NumUses() function in spvtools::opt::analysis::DefUseManager
206 uint32_t DefUseManager::NumUses(uint32_t id) const { in NumUses() function in spvtools::opt::analysis::DefUseManager
207 return NumUses(GetDef(id)); in NumUses()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp558 unsigned NumUses = 0; in maximizeConstantsInRange() local
565 NumUses += ConstCand->Uses.size(); in maximizeConstantsInRange()
569 return NumUses; in maximizeConstantsInRange()
578 NumUses += ConstCand->Uses.size(); in maximizeConstantsInRange()
610 return NumUses; in maximizeConstantsInRange()
619 unsigned NumUses = maximizeConstantsInRange(S, E, MaxCostItr); in findAndMakeBaseConstant() local
622 if (NumUses <= 1) in findAndMakeBaseConstant()
DLoopStrengthReduce.cpp2616 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in FindUseWithSimilarFormula() local
4277 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in GenerateAllReuseFormulae() local
4284 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in GenerateAllReuseFormulae() local
4295 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in GenerateAllReuseFormulae() local
4325 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in FilterOutUndesirableDedicatedRegisters() local
4438 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in NarrowSearchSpaceByDetectingSupersets() local
4505 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in NarrowSearchSpaceByCollapsingUnrolledCode() local
4550 --NumUses; in NarrowSearchSpaceByCollapsingUnrolledCode()
4602 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in NarrowSearchSpaceByFilterFormulaWithSameScaledReg() local
4616 FARegNum += (NumUses - UsedByIndices.count() + 1); in NarrowSearchSpaceByFilterFormulaWithSameScaledReg()
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp562 unsigned NumUses = 0; in maximizeConstantsInRange() local
569 NumUses += ConstCand->Uses.size(); in maximizeConstantsInRange()
573 return NumUses; in maximizeConstantsInRange()
582 NumUses += ConstCand->Uses.size(); in maximizeConstantsInRange()
615 return NumUses; in maximizeConstantsInRange()
624 unsigned NumUses = maximizeConstantsInRange(S, E, MaxCostItr); in findAndMakeBaseConstant() local
627 if (NumUses <= 1) in findAndMakeBaseConstant()
DLoopStrengthReduce.cpp2611 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in FindUseWithSimilarFormula() local
4282 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in GenerateAllReuseFormulae() local
4289 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in GenerateAllReuseFormulae() local
4300 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in GenerateAllReuseFormulae() local
4330 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in FilterOutUndesirableDedicatedRegisters() local
4443 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in NarrowSearchSpaceByDetectingSupersets() local
4510 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in NarrowSearchSpaceByCollapsingUnrolledCode() local
4555 --NumUses; in NarrowSearchSpaceByCollapsingUnrolledCode()
4607 for (size_t LUIdx = 0, NumUses = Uses.size(); LUIdx != NumUses; ++LUIdx) { in NarrowSearchSpaceByFilterFormulaWithSameScaledReg() local
4621 FARegNum += (NumUses - UsedByIndices.count() + 1); in NarrowSearchSpaceByFilterFormulaWithSameScaledReg()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
Ddef_use_test.cpp42 uint32_t NumUses(const std::unique_ptr<IRContext>& context, uint32_t id) { in NumUses() function
1300 EXPECT_EQ(2u, NumUses(context, 6)); in TEST()
1305 EXPECT_EQ(6u, NumUses(context, 7)); in TEST()
1314 EXPECT_EQ(1u, NumUses(context, id)); in TEST()
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/opt/
Ddef_use_test.cpp42 uint32_t NumUses(const std::unique_ptr<IRContext>& context, uint32_t id) { in NumUses() function
1300 EXPECT_EQ(2u, NumUses(context, 6)); in TEST()
1305 EXPECT_EQ(6u, NumUses(context, 7)); in TEST()
1314 EXPECT_EQ(1u, NumUses(context, id)); in TEST()
/external/deqp-deps/SPIRV-Tools/test/opt/
Ddef_use_test.cpp42 uint32_t NumUses(const std::unique_ptr<IRContext>& context, uint32_t id) { in NumUses() function
1300 EXPECT_EQ(2u, NumUses(context, 6)); in TEST()
1305 EXPECT_EQ(6u, NumUses(context, 7)); in TEST()
1314 EXPECT_EQ(1u, NumUses(context, id)); in TEST()
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/fuzz/
Dtransformation_composite_construct_test.cpp157 uint32_t num_uses_of_41_before = context->get_def_use_mgr()->NumUses(41); in TEST()
158 uint32_t num_uses_of_45_before = context->get_def_use_mgr()->NumUses(45); in TEST()
159 uint32_t num_uses_of_27_before = context->get_def_use_mgr()->NumUses(27); in TEST()
165 ASSERT_EQ(num_uses_of_41_before + 1, context->get_def_use_mgr()->NumUses(41)); in TEST()
166 ASSERT_EQ(num_uses_of_45_before + 1, context->get_def_use_mgr()->NumUses(45)); in TEST()
167 ASSERT_EQ(num_uses_of_27_before + 1, context->get_def_use_mgr()->NumUses(27)); in TEST()
Dtransformation_swap_conditional_branch_operands_test.cpp101 ASSERT_EQ(1, context->get_def_use_mgr()->NumUses(26)); in TEST()
Dtransformation_composite_extract_test.cpp148 uint32_t num_uses_of_100_before = context->get_def_use_mgr()->NumUses(100); in TEST()
157 context->get_def_use_mgr()->NumUses(100)); in TEST()
/external/llvm-project/llvm/lib/Transforms/IPO/
DOpenMPOpt.cpp296 unsigned NumUses = 0; in collectUses() local
298 return NumUses; in collectUses()
311 ++NumUses; in collectUses()
315 ++NumUses; in collectUses()
318 return NumUses; in collectUses()
370 unsigned NumUses = collectUses(RFI); \ in initializeRuntimeFunctions()
371 (void)NumUses; \ in initializeRuntimeFunctions()
376 dbgs() << TAG << "-> got " << NumUses << " uses in " \ in initializeRuntimeFunctions()

123