/third_party/glslang/SPIRV/ |
D | SpvTools.cpp | 180 spvtools::Optimizer optimizer(target_env); in SpirvToolsTransform() local 181 optimizer.SetMessageConsumer(OptimizerMesssageConsumer); in SpirvToolsTransform() 188 optimizer.RegisterPass(spvtools::CreateStripDebugInfoPass()); in SpirvToolsTransform() 190 optimizer.RegisterPass(spvtools::CreateWrapOpKillPass()); in SpirvToolsTransform() 191 optimizer.RegisterPass(spvtools::CreateDeadBranchElimPass()); in SpirvToolsTransform() 192 optimizer.RegisterPass(spvtools::CreateMergeReturnPass()); in SpirvToolsTransform() 193 optimizer.RegisterPass(spvtools::CreateInlineExhaustivePass()); in SpirvToolsTransform() 194 optimizer.RegisterPass(spvtools::CreateEliminateDeadFunctionsPass()); in SpirvToolsTransform() 195 optimizer.RegisterPass(spvtools::CreateScalarReplacementPass()); in SpirvToolsTransform() 196 optimizer.RegisterPass(spvtools::CreateLocalAccessChainConvertPass()); in SpirvToolsTransform() [all …]
|
/third_party/flutter/skia/third_party/externals/spirv-tools/tools/opt/ |
D | opt.cpp | 86 spvtools::Optimizer optimizer(target_env); in main() local 87 optimizer.SetMessageConsumer([](spv_message_level_t level, const char* source, in main() 111 optimizer.RegisterPass(CreateStripDebugInfoPass()); in main() 124 optimizer.RegisterPass( in main() 133 optimizer.RegisterPass(CreateFreezeSpecConstantValuePass()); in main() 135 optimizer.RegisterPass(CreateInlinePass()); in main() 137 optimizer.RegisterPass(CreateLocalAccessChainConvertPass()); in main() 139 optimizer.RegisterPass(CreateAggressiveDCEPass()); in main() 141 optimizer.RegisterPass(CreateInsertExtractElimPass()); in main() 143 optimizer.RegisterPass(CreateLocalSingleBlockLoadStoreElimPass()); in main() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/opt/ |
D | opt.cpp | 54 std::string GetListOfPassesAsString(const spvtools::Optimizer& optimizer) { in GetListOfPassesAsString() argument 56 for (const auto& name : optimizer.GetPassNames()) { in GetListOfPassesAsString() 65 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetLegalizationPasses() local 66 optimizer.RegisterLegalizationPasses(); in GetLegalizationPasses() 67 return GetListOfPassesAsString(optimizer); in GetLegalizationPasses() 71 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetOptimizationPasses() local 72 optimizer.RegisterPerformancePasses(); in GetOptimizationPasses() 73 return GetListOfPassesAsString(optimizer); in GetOptimizationPasses() 77 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetSizePasses() local 78 optimizer.RegisterSizePasses(); in GetSizePasses() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/tools/opt/ |
D | opt.cpp | 54 std::string GetListOfPassesAsString(const spvtools::Optimizer& optimizer) { in GetListOfPassesAsString() argument 56 for (const auto& name : optimizer.GetPassNames()) { in GetListOfPassesAsString() 65 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetLegalizationPasses() local 66 optimizer.RegisterLegalizationPasses(); in GetLegalizationPasses() 67 return GetListOfPassesAsString(optimizer); in GetLegalizationPasses() 71 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetOptimizationPasses() local 72 optimizer.RegisterPerformancePasses(); in GetOptimizationPasses() 73 return GetListOfPassesAsString(optimizer); in GetOptimizationPasses() 77 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetSizePasses() local 78 optimizer.RegisterSizePasses(); in GetSizePasses() [all …]
|
/third_party/spirv-tools/tools/opt/ |
D | opt.cpp | 54 std::string GetListOfPassesAsString(const spvtools::Optimizer& optimizer) { in GetListOfPassesAsString() argument 56 for (const auto& name : optimizer.GetPassNames()) { in GetListOfPassesAsString() 65 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetLegalizationPasses() local 66 optimizer.RegisterLegalizationPasses(); in GetLegalizationPasses() 67 return GetListOfPassesAsString(optimizer); in GetLegalizationPasses() 71 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetOptimizationPasses() local 72 optimizer.RegisterPerformancePasses(); in GetOptimizationPasses() 73 return GetListOfPassesAsString(optimizer); in GetOptimizationPasses() 77 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetSizePasses() local 78 optimizer.RegisterSizePasses(); in GetSizePasses() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/test/opt/ |
D | compact_ids_test.cpp | 159 spvtools::Optimizer optimizer(env); in TEST() local 160 optimizer.RegisterPass(CreateCompactIdsPass()); in TEST() 162 optimizer.RegisterPass(CreateInlineExhaustivePass()); in TEST() 165 optimizer.Run(binary.data(), binary.size(), &binary); in TEST() 203 spvtools::Optimizer optimizer(env); in TEST() local 204 optimizer.RegisterPass(CreateCompactIdsPass()); in TEST() 206 optimizer.RegisterPass(CreateInlineExhaustivePass()); in TEST() 209 optimizer.Run(binary.data(), binary.size(), &binary); in TEST()
|
D | strip_reflect_info_test.cpp | 55 spvtools::Optimizer optimizer(SPV_ENV_UNIVERSAL_1_1); in TEST_F() local 56 optimizer.RegisterPass(spvtools::CreateStripReflectInfoPass()); in TEST_F() 58 optimizer.Run(binary_in.data(), binary_in.size(), &binary_out); in TEST_F()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
D | compact_ids_test.cpp | 159 spvtools::Optimizer optimizer(env); in TEST() local 160 optimizer.RegisterPass(CreateCompactIdsPass()); in TEST() 162 optimizer.RegisterPass(CreateInlineExhaustivePass()); in TEST() 165 optimizer.Run(binary.data(), binary.size(), &binary); in TEST() 203 spvtools::Optimizer optimizer(env); in TEST() local 204 optimizer.RegisterPass(CreateCompactIdsPass()); in TEST() 206 optimizer.RegisterPass(CreateInlineExhaustivePass()); in TEST() 209 optimizer.Run(binary.data(), binary.size(), &binary); in TEST()
|
D | strip_reflect_info_test.cpp | 55 spvtools::Optimizer optimizer(SPV_ENV_UNIVERSAL_1_1); in TEST_F() local 56 optimizer.RegisterPass(spvtools::CreateStripReflectInfoPass()); in TEST_F() 58 optimizer.Run(binary_in.data(), binary_in.size(), &binary_out); in TEST_F()
|
/third_party/spirv-tools/test/opt/ |
D | compact_ids_test.cpp | 159 spvtools::Optimizer optimizer(env); in TEST() local 160 optimizer.RegisterPass(CreateCompactIdsPass()); in TEST() 162 optimizer.RegisterPass(CreateInlineExhaustivePass()); in TEST() 165 optimizer.Run(binary.data(), binary.size(), &binary); in TEST() 203 spvtools::Optimizer optimizer(env); in TEST() local 204 optimizer.RegisterPass(CreateCompactIdsPass()); in TEST() 206 optimizer.RegisterPass(CreateInlineExhaustivePass()); in TEST() 209 optimizer.Run(binary.data(), binary.size(), &binary); in TEST()
|
D | strip_reflect_info_test.cpp | 55 spvtools::Optimizer optimizer(SPV_ENV_UNIVERSAL_1_1); in TEST_F() local 56 optimizer.RegisterPass(spvtools::CreateStripReflectInfoPass()); in TEST_F() 58 optimizer.Run(binary_in.data(), binary_in.size(), &binary_out); in TEST_F()
|
D | strip_nonsemantic_info_test.cpp | 53 spvtools::Optimizer optimizer(SPV_ENV_UNIVERSAL_1_1); in TEST_F() local 54 optimizer.RegisterPass(spvtools::CreateStripNonSemanticInfoPass()); in TEST_F() 56 optimizer.Run(binary_in.data(), binary_in.size(), &binary_out); in TEST_F()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzzers/ |
D | spvtools_opt_legalization_fuzzer.cpp | 27 spvtools::Optimizer optimizer(random_gen.GetTargetEnv()); in LLVMFuzzerTestOneInput() local 28 optimizer.SetMessageConsumer([](spv_message_level_t, const char*, in LLVMFuzzerTestOneInput() 40 optimizer.RegisterLegalizationPasses(); in LLVMFuzzerTestOneInput() 41 optimizer.Run(input.data(), input.size(), &input); in LLVMFuzzerTestOneInput()
|
D | spvtools_opt_size_fuzzer.cpp | 27 spvtools::Optimizer optimizer(random_gen.GetTargetEnv()); in LLVMFuzzerTestOneInput() local 28 optimizer.SetMessageConsumer([](spv_message_level_t, const char*, in LLVMFuzzerTestOneInput() 40 optimizer.RegisterSizePasses(); in LLVMFuzzerTestOneInput() 41 optimizer.Run(input.data(), input.size(), &input); in LLVMFuzzerTestOneInput()
|
D | spvtools_opt_performance_fuzzer.cpp | 27 spvtools::Optimizer optimizer(random_gen.GetTargetEnv()); in LLVMFuzzerTestOneInput() local 28 optimizer.SetMessageConsumer([](spv_message_level_t, const char*, in LLVMFuzzerTestOneInput() 40 optimizer.RegisterPerformancePasses(); in LLVMFuzzerTestOneInput() 41 optimizer.Run(input.data(), input.size(), &input); in LLVMFuzzerTestOneInput()
|
/third_party/skia/third_party/externals/spirv-tools/test/fuzzers/ |
D | spvtools_opt_performance_fuzzer.cpp | 27 spvtools::Optimizer optimizer(random_gen.GetTargetEnv()); in LLVMFuzzerTestOneInput() local 28 optimizer.SetMessageConsumer([](spv_message_level_t, const char*, in LLVMFuzzerTestOneInput() 40 optimizer.RegisterPerformancePasses(); in LLVMFuzzerTestOneInput() 41 optimizer.Run(input.data(), input.size(), &input); in LLVMFuzzerTestOneInput()
|
D | spvtools_opt_size_fuzzer.cpp | 27 spvtools::Optimizer optimizer(random_gen.GetTargetEnv()); in LLVMFuzzerTestOneInput() local 28 optimizer.SetMessageConsumer([](spv_message_level_t, const char*, in LLVMFuzzerTestOneInput() 40 optimizer.RegisterSizePasses(); in LLVMFuzzerTestOneInput() 41 optimizer.Run(input.data(), input.size(), &input); in LLVMFuzzerTestOneInput()
|
D | spvtools_opt_legalization_fuzzer.cpp | 27 spvtools::Optimizer optimizer(random_gen.GetTargetEnv()); in LLVMFuzzerTestOneInput() local 28 optimizer.SetMessageConsumer([](spv_message_level_t, const char*, in LLVMFuzzerTestOneInput() 40 optimizer.RegisterLegalizationPasses(); in LLVMFuzzerTestOneInput() 41 optimizer.Run(input.data(), input.size(), &input); in LLVMFuzzerTestOneInput()
|
/third_party/skia/third_party/externals/tint/fuzzers/tint_spirv_tools_fuzzer/ |
D | spirv_opt_mutator.cc | 114 spvtools::Optimizer optimizer(target_env_); in Mutate() local 115 optimizer.SetMessageConsumer(util::GetBufferMessageConsumer(&errors_)); in Mutate() 116 optimizer.SetValidateAfterAll(validate_after_each_opt_); in Mutate() 117 optimizer.RegisterPassesFromFlags(passes); in Mutate() 118 if (!optimizer.Run(binary.data(), binary.size(), &optimized_binary_)) { in Mutate()
|
/third_party/spirv-tools/test/fuzzers/ |
D | spvtools_opt_fuzzer_common.cpp | 32 spvtools::Optimizer optimizer(target_env); in OptFuzzerTestOneInput() local 33 optimizer.SetMessageConsumer([](spv_message_level_t, const char*, in OptFuzzerTestOneInput() 77 register_passes(optimizer); in OptFuzzerTestOneInput() 78 optimizer.Run(input.data(), input.size(), &input, optimizer_options); in OptFuzzerTestOneInput()
|
D | spvtools_opt_size_fuzzer.cpp | 24 data, size, [](spvtools::Optimizer& optimizer) -> void { in LLVMFuzzerTestOneInput() argument 25 optimizer.RegisterSizePasses(); in LLVMFuzzerTestOneInput()
|
D | spvtools_opt_legalization_fuzzer.cpp | 24 data, size, [](spvtools::Optimizer& optimizer) -> void { in LLVMFuzzerTestOneInput() argument 25 optimizer.RegisterLegalizationPasses(); in LLVMFuzzerTestOneInput()
|
D | spvtools_opt_performance_fuzzer.cpp | 24 data, size, [](spvtools::Optimizer& optimizer) -> void { in LLVMFuzzerTestOneInput() argument 25 optimizer.RegisterPerformancePasses(); in LLVMFuzzerTestOneInput()
|
/third_party/skia/third_party/externals/swiftshader/tests/regres/cov/ |
D | optimization.go | 35 o := optimizer{} 45 type optimizer struct{} struct 49 func (o *optimizer) createGroups(f *treeFile) { argument 140 func (o *optimizer) invertForCommon(tc *TestCoverage, t *Test) { argument
|
/third_party/skia/third_party/externals/jinja2/ |
D | optimizer.py | 18 optimizer = Optimizer(environment) 19 return optimizer.visit(node)
|