Lines Matching refs:optimizer
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()
79 return GetListOfPassesAsString(optimizer); in GetSizePasses()
561 spvtools::Optimizer* optimizer, const char** in_file,
574 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag() argument
601 ParseFlags(static_cast<int>(flags.size()), new_argv, optimizer, in_file, in ParseOconfigFlag()
656 spvtools::Optimizer* optimizer, const char** in_file, in ParseFlags() argument
689 ParseOconfigFlag(argv[0], cur_arg, optimizer, in_file, out_file, in ParseFlags()
697 optimizer->SetPrintAll(&std::cerr); in ParseFlags()
703 optimizer->SetTimeReport(&std::cerr); in ParseFlags()
733 optimizer->SetTargetEnv(target_env); in ParseFlags()
735 optimizer->SetValidateAfterAll(true); in ParseFlags()
770 if (!optimizer->RegisterPassesFromFlags(pass_flags)) { in ParseFlags()
785 spvtools::Optimizer optimizer(target_env); in main() local
786 optimizer.SetMessageConsumer(spvtools::utils::CLIMessageConsumer); in main()
790 OptStatus status = ParseFlags(argc, argv, &optimizer, &in_file, &out_file, in main()
811 optimizer.Run(binary.data(), binary.size(), &binary, optimizer_options); in main()