Home
last modified time | relevance | path

Searched refs:spvtools (Results 1 – 25 of 1154) sorted by relevance

12345678910>>...47

/external/deqp/external/vulkancts/framework/vulkan/
DvkPrograms.cpp120 spvtools::Optimizer optimizer(targetEnv); in optimizeCompiledBinary()
127 …optimizer.RegisterPass(spvtools::CreateInlineExhaustivePass()); // --inline-entry-points-exhaus… in optimizeCompiledBinary()
128 …optimizer.RegisterPass(spvtools::CreateLocalAccessChainConvertPass()); // --convert-local-access-… in optimizeCompiledBinary()
129 …optimizer.RegisterPass(spvtools::CreateLocalSingleBlockLoadStoreElimPass());// --eliminate-local-s… in optimizeCompiledBinary()
130 …optimizer.RegisterPass(spvtools::CreateLocalSingleStoreElimPass()); // --eliminate-local-single-… in optimizeCompiledBinary()
131 optimizer.RegisterPass(spvtools::CreateInsertExtractElimPass()); // --eliminate-insert-extract in optimizeCompiledBinary()
132 …optimizer.RegisterPass(spvtools::CreateAggressiveDCEPass()); // --eliminate-dead-code-aggressive in optimizeCompiledBinary()
133 optimizer.RegisterPass(spvtools::CreateDeadBranchElimPass()); // --eliminate-dead-branches in optimizeCompiledBinary()
134 optimizer.RegisterPass(spvtools::CreateBlockMergePass()); // --merge-blocks in optimizeCompiledBinary()
135 …optimizer.RegisterPass(spvtools::CreateLocalSingleBlockLoadStoreElimPass());// --eliminate-local-s… in optimizeCompiledBinary()
[all …]
/external/deqp-deps/glslang/SPIRV/
DSpvTools.cpp122 spvtools::Optimizer optimizer(target_env); in SpirvToolsLegalize()
160 optimizer.RegisterPass(spvtools::CreatePropagateLineInfoPass()); in SpirvToolsLegalize()
162 optimizer.RegisterPass(spvtools::CreateDeadBranchElimPass()); in SpirvToolsLegalize()
163 optimizer.RegisterPass(spvtools::CreateMergeReturnPass()); in SpirvToolsLegalize()
164 optimizer.RegisterPass(spvtools::CreateInlineExhaustivePass()); in SpirvToolsLegalize()
165 optimizer.RegisterPass(spvtools::CreateEliminateDeadFunctionsPass()); in SpirvToolsLegalize()
166 optimizer.RegisterPass(spvtools::CreateScalarReplacementPass()); in SpirvToolsLegalize()
167 optimizer.RegisterPass(spvtools::CreateLocalAccessChainConvertPass()); in SpirvToolsLegalize()
168 optimizer.RegisterPass(spvtools::CreateLocalSingleBlockLoadStoreElimPass()); in SpirvToolsLegalize()
169 optimizer.RegisterPass(spvtools::CreateLocalSingleStoreElimPass()); in SpirvToolsLegalize()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/tools/opt/
Dopt.cpp54 std::string GetListOfPassesAsString(const spvtools::Optimizer& optimizer) { in GetListOfPassesAsString()
65 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetLegalizationPasses()
71 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetOptimizationPasses()
77 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetSizePasses()
83 spvtools::Optimizer optimizer(SPV_ENV_WEBGPU_0); in GetWebGPUPasses()
406 spvtools::Errorf(opt_diagnostic, nullptr, {}, "Invalid -Oconfig flag %s", in ReadFlagsFromFile()
415 spvtools::Errorf(opt_diagnostic, nullptr, {}, "Could not open file '%s'", in ReadFlagsFromFile()
442 spvtools::Optimizer* optimizer, const char** in_file,
444 spvtools::ValidatorOptions* validator_options,
445 spvtools::OptimizerOptions* optimizer_options);
[all …]
/external/deqp-deps/SPIRV-Tools/tools/opt/
Dopt.cpp54 std::string GetListOfPassesAsString(const spvtools::Optimizer& optimizer) { in GetListOfPassesAsString()
65 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetLegalizationPasses()
71 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetOptimizationPasses()
77 spvtools::Optimizer optimizer(kDefaultEnvironment); in GetSizePasses()
388 spvtools::Errorf(opt_diagnostic, nullptr, {}, "Invalid -Oconfig flag %s", in ReadFlagsFromFile()
397 spvtools::Errorf(opt_diagnostic, nullptr, {}, "Could not open file '%s'", in ReadFlagsFromFile()
424 spvtools::Optimizer* optimizer, const char** in_file,
426 spvtools::ValidatorOptions* validator_options,
427 spvtools::OptimizerOptions* optimizer_options);
436 spvtools::Optimizer* optimizer, const char** in_file, in ParseOconfigFlag()
[all …]
/external/deqp-deps/SPIRV-Tools/tools/comp/
Dmarkv.cpp143 spvtools::comp::MarkvModelType model_type = in main()
144 spvtools::comp::kMarkvModelUnknown; in main()
173 if (model_type != spvtools::comp::kMarkvModelUnknown) in main()
175 model_type = spvtools::comp::kMarkvModelShaderLite; in main()
177 if (model_type != spvtools::comp::kMarkvModelUnknown) in main()
179 model_type = spvtools::comp::kMarkvModelShaderMid; in main()
181 if (model_type != spvtools::comp::kMarkvModelUnknown) in main()
183 model_type = spvtools::comp::kMarkvModelShaderMax; in main()
212 if (model_type == spvtools::comp::kMarkvModelUnknown) in main()
213 model_type = spvtools::comp::kMarkvModelShaderLite; in main()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/tools/comp/
Dmarkv.cpp143 spvtools::comp::MarkvModelType model_type = in main()
144 spvtools::comp::kMarkvModelUnknown; in main()
173 if (model_type != spvtools::comp::kMarkvModelUnknown) in main()
175 model_type = spvtools::comp::kMarkvModelShaderLite; in main()
177 if (model_type != spvtools::comp::kMarkvModelUnknown) in main()
179 model_type = spvtools::comp::kMarkvModelShaderMid; in main()
181 if (model_type != spvtools::comp::kMarkvModelUnknown) in main()
183 model_type = spvtools::comp::kMarkvModelShaderMax; in main()
212 if (model_type == spvtools::comp::kMarkvModelUnknown) in main()
213 model_type = spvtools::comp::kMarkvModelShaderLite; in main()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/tools/reduce/
Dreduce.cpp37 using namespace spvtools::reduce;
109 spvtools::ReducerOptions* reducer_options) { in ParseFlags()
116 spvtools::Logf(ReduceDiagnostic, SPV_MSG_INFO, nullptr, {}, "%s\n", in ParseFlags()
129 const auto split_flag = spvtools::utils::SplitFlagArgs(cur_arg); in ParseFlags()
147 spvtools::Error(ReduceDiagnostic, nullptr, {}, in ParseFlags()
154 spvtools::Error(ReduceDiagnostic, nullptr, {}, "No input file specified"); in ParseFlags()
159 spvtools::Error(ReduceDiagnostic, nullptr, {}, in ParseFlags()
176 spvtools::ReducerOptions reducer_options; in main()
210 spvtools::MakeUnique<RemoveOpNameInstructionReductionPass>(target_env)); in main()
212 spvtools::MakeUnique<OperandToUndefReductionPass>(target_env)); in main()
[all …]
/external/deqp-deps/SPIRV-Tools/test/opt/
Dfunction_utils.h23 inline spvtools::opt::Function* GetFunction(spvtools::opt::Module* module, in GetFunction()
25 for (spvtools::opt::Function& f : *module) { in GetFunction()
33 inline const spvtools::opt::Function* GetFunction( in GetFunction()
34 const spvtools::opt::Module* module, uint32_t id) { in GetFunction()
35 for (const spvtools::opt::Function& f : *module) { in GetFunction()
43 inline const spvtools::opt::BasicBlock* GetBasicBlock( in GetBasicBlock()
44 const spvtools::opt::Function* fn, uint32_t id) { in GetBasicBlock()
45 for (const spvtools::opt::BasicBlock& bb : *fn) { in GetBasicBlock()
Dfunction_test.cpp26 namespace spvtools { namespace
61 spvtools::BuildModule(SPV_ENV_UNIVERSAL_1_1, nullptr, text, in TEST()
95 spvtools::BuildModule(SPV_ENV_UNIVERSAL_1_1, nullptr, text, in TEST()
131 spvtools::BuildModule(SPV_ENV_UNIVERSAL_1_1, nullptr, text, in TEST()
165 spvtools::BuildModule(SPV_ENV_UNIVERSAL_1_1, nullptr, text, in TEST()
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
Dfunction_utils.h23 inline spvtools::opt::Function* GetFunction(spvtools::opt::Module* module, in GetFunction()
25 for (spvtools::opt::Function& f : *module) { in GetFunction()
33 inline const spvtools::opt::Function* GetFunction( in GetFunction()
34 const spvtools::opt::Module* module, uint32_t id) { in GetFunction()
35 for (const spvtools::opt::Function& f : *module) { in GetFunction()
43 inline const spvtools::opt::BasicBlock* GetBasicBlock( in GetBasicBlock()
44 const spvtools::opt::Function* fn, uint32_t id) { in GetBasicBlock()
45 for (const spvtools::opt::BasicBlock& bb : *fn) { in GetBasicBlock()
/external/deqp-deps/SPIRV-Tools/tools/reduce/
Dreduce.cpp36 using namespace spvtools::reduce;
108 spvtools::ReducerOptions* reducer_options) { in ParseFlags()
115 spvtools::Logf(ReduceDiagnostic, SPV_MSG_INFO, nullptr, {}, "%s\n", in ParseFlags()
128 const auto split_flag = spvtools::utils::SplitFlagArgs(cur_arg); in ParseFlags()
146 spvtools::Error(ReduceDiagnostic, nullptr, {}, in ParseFlags()
153 spvtools::Error(ReduceDiagnostic, nullptr, {}, "No input file specified"); in ParseFlags()
158 spvtools::Error(ReduceDiagnostic, nullptr, {}, in ParseFlags()
175 spvtools::ReducerOptions reducer_options; in main()
209 spvtools::MakeUnique<RemoveOpNameInstructionReductionPass>(target_env)); in main()
211 spvtools::MakeUnique<OperandToConstReductionPass>(target_env)); in main()
[all …]
/external/deqp-deps/SPIRV-Tools/source/
Ddisassemble.cpp47 Disassembler(const spvtools::AssemblyGrammar& grammar, uint32_t options, in Disassembler()
48 spvtools::NameMapper name_mapper) in Disassembler()
80 using out_stream = spvtools::out_stream;
92 if (color_) out_.get() << spvtools::clr::reset{print_}; in ResetColor()
96 if (color_) out_.get() << spvtools::clr::grey{print_}; in SetGrey()
100 if (color_) out_.get() << spvtools::clr::blue{print_}; in SetBlue()
104 if (color_) out_.get() << spvtools::clr::yellow{print_}; in SetYellow()
108 if (color_) out_.get() << spvtools::clr::red{print_}; in SetRed()
112 if (color_) out_.get() << spvtools::clr::green{print_}; in SetGreen()
115 const spvtools::AssemblyGrammar& grammar_;
[all …]
Dtext.cpp162 spv_result_t encodeImmediate(spvtools::AssemblyContext* context, in encodeImmediate()
166 if (!spvtools::utils::ParseNumber(text + 1, &parse_result)) { in encodeImmediate()
187 spv_result_t spvTextEncodeOperand(const spvtools::AssemblyGrammar& grammar, in spvTextEncodeOperand()
188 spvtools::AssemblyContext* context, in spvTextEncodeOperand()
283 spvtools::IdType expected_type = { in spvTextEncodeOperand()
284 32, false, spvtools::IdTypeClass::kScalarIntegerType}; in spvTextEncodeOperand()
295 textValue, error_code_for_literals, spvtools::kUnknownType, in spvTextEncodeOperand()
303 spvtools::IdType expected_type = spvtools::kUnknownType; in spvTextEncodeOperand()
313 if (!spvtools::isScalarFloating(expected_type) && in spvTextEncodeOperand()
314 !spvtools::isScalarIntegral(expected_type)) { in spvTextEncodeOperand()
[all …]
Dtext_handler.cpp33 namespace spvtools { namespace
160 if (spvtools::utils::ParseNumber(textValue, &id)) { in spvNamedIdAssignOrGet()
188 return spvtools::advance(text_, &current_position_); in advance()
194 return spvtools::getWord(text_, next_position, word); in getWord()
198 return spvtools::startsWithOp(text_, &current_position_); in startsWithOp()
203 if (spvtools::advance(text_, &pos)) return false; in isStartOfNewInst()
204 if (spvtools::startsWithOp(text_, &pos)) return true; in isStartOfNewInst()
208 if (spvtools::getWord(text_, &pos, &word)) return false; in isStartOfNewInst()
211 if (spvtools::advance(text_, &pos)) return false; in isStartOfNewInst()
212 if (spvtools::getWord(text_, &pos, &word)) return false; in isStartOfNewInst()
[all …]
Dparsed_operand.cpp22 namespace spvtools { namespace
44 *out << spvtools::utils::FloatProxy<spvtools::utils::Float16>( in EmitNumericLiteral()
48 *out << spvtools::utils::FloatProxy<float>(word); in EmitNumericLiteral()
67 *out << spvtools::utils::FloatProxy<double>(bits); in EmitNumericLiteral()
/external/swiftshader/third_party/SPIRV-Tools/source/
Ddisassemble.cpp47 Disassembler(const spvtools::AssemblyGrammar& grammar, uint32_t options, in Disassembler()
48 spvtools::NameMapper name_mapper) in Disassembler()
80 using out_stream = spvtools::out_stream;
92 if (color_) out_.get() << spvtools::clr::reset{print_}; in ResetColor()
96 if (color_) out_.get() << spvtools::clr::grey{print_}; in SetGrey()
100 if (color_) out_.get() << spvtools::clr::blue{print_}; in SetBlue()
104 if (color_) out_.get() << spvtools::clr::yellow{print_}; in SetYellow()
108 if (color_) out_.get() << spvtools::clr::red{print_}; in SetRed()
112 if (color_) out_.get() << spvtools::clr::green{print_}; in SetGreen()
115 const spvtools::AssemblyGrammar& grammar_;
[all …]
Dtext.cpp162 spv_result_t encodeImmediate(spvtools::AssemblyContext* context, in encodeImmediate()
166 if (!spvtools::utils::ParseNumber(text + 1, &parse_result)) { in encodeImmediate()
187 spv_result_t spvTextEncodeOperand(const spvtools::AssemblyGrammar& grammar, in spvTextEncodeOperand()
188 spvtools::AssemblyContext* context, in spvTextEncodeOperand()
283 spvtools::IdType expected_type = { in spvTextEncodeOperand()
284 32, false, spvtools::IdTypeClass::kScalarIntegerType}; in spvTextEncodeOperand()
295 textValue, error_code_for_literals, spvtools::kUnknownType, in spvTextEncodeOperand()
303 spvtools::IdType expected_type = spvtools::kUnknownType; in spvTextEncodeOperand()
313 if (!spvtools::isScalarFloating(expected_type) && in spvTextEncodeOperand()
314 !spvtools::isScalarIntegral(expected_type)) { in spvTextEncodeOperand()
[all …]
Dtext_handler.cpp33 namespace spvtools { namespace
160 if (spvtools::utils::ParseNumber(textValue, &id)) { in spvNamedIdAssignOrGet()
188 return spvtools::advance(text_, &current_position_); in advance()
194 return spvtools::getWord(text_, next_position, word); in getWord()
198 return spvtools::startsWithOp(text_, &current_position_); in startsWithOp()
203 if (spvtools::advance(text_, &pos)) return false; in isStartOfNewInst()
204 if (spvtools::startsWithOp(text_, &pos)) return true; in isStartOfNewInst()
208 if (spvtools::getWord(text_, &pos, &word)) return false; in isStartOfNewInst()
211 if (spvtools::advance(text_, &pos)) return false; in isStartOfNewInst()
212 if (spvtools::getWord(text_, &pos, &word)) return false; in isStartOfNewInst()
[all …]
Dparsed_operand.cpp22 namespace spvtools { namespace
44 *out << spvtools::utils::FloatProxy<spvtools::utils::Float16>( in EmitNumericLiteral()
48 *out << spvtools::utils::FloatProxy<float>(word); in EmitNumericLiteral()
67 *out << spvtools::utils::FloatProxy<double>(bits); in EmitNumericLiteral()
/external/deqp-deps/SPIRV-Tools/test/link/
Dlinker_fixture.h36 assemble_options_(spvtools::SpirvTools::kDefaultAssembleOption), in LinkerTest()
37 disassemble_options_(spvtools::SpirvTools::kDefaultDisassembleOption) { in LinkerTest()
72 spvtools::LinkerOptions options = spvtools::LinkerOptions()) {
80 return spvtools::Link(context_, binaries, linked_binary, options);
87 spvtools::LinkerOptions options = spvtools::LinkerOptions()) {
89 return spvtools::Link(context_, binaries, linked_binary, options);
115 spvtools::Context context_;
116 spvtools::SpirvTools
/external/swiftshader/third_party/SPIRV-Tools/test/link/
Dlinker_fixture.h36 assemble_options_(spvtools::SpirvTools::kDefaultAssembleOption), in LinkerTest()
37 disassemble_options_(spvtools::SpirvTools::kDefaultDisassembleOption) { in LinkerTest()
72 spvtools::LinkerOptions options = spvtools::LinkerOptions()) {
80 return spvtools::Link(context_, binaries, linked_binary, options);
87 spvtools::LinkerOptions options = spvtools::LinkerOptions()) {
89 return spvtools::Link(context_, binaries, linked_binary, options);
115 spvtools::Context context_;
116 spvtools::SpirvTools
/external/swiftshader/third_party/SPIRV-Tools/examples/cpp-interface/
Dmain.cpp39 spvtools::SpirvTools core(SPV_ENV_VULKAN_1_0); in main()
40 spvtools::Optimizer opt(SPV_ENV_VULKAN_1_0); in main()
53 opt.RegisterPass(spvtools::CreateSetSpecConstantDefaultValuePass({{1, "42"}})) in main()
54 .RegisterPass(spvtools::CreateFreezeSpecConstantValuePass()) in main()
55 .RegisterPass(spvtools::CreateUnifyConstantPass()) in main()
56 .RegisterPass(spvtools::CreateStripDebugInfoPass()); in main()
/external/deqp-deps/SPIRV-Tools/examples/cpp-interface/
Dmain.cpp39 spvtools::SpirvTools core(SPV_ENV_VULKAN_1_0); in main()
40 spvtools::Optimizer opt(SPV_ENV_VULKAN_1_0); in main()
53 opt.RegisterPass(spvtools::CreateSetSpecConstantDefaultValuePass({{1, "42"}})) in main()
54 .RegisterPass(spvtools::CreateFreezeSpecConstantValuePass()) in main()
55 .RegisterPass(spvtools::CreateUnifyConstantPass()) in main()
56 .RegisterPass(spvtools::CreateStripDebugInfoPass()); in main()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dlog.h59 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
67 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
78 namespace spvtools {
160 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
169 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
178 spvtools::Logf(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
196 spvtools::Log(consumer, SPV_MSG_DEBUG, __FILE__, {__LINE__, 0, 0}, \
202 spvtools::Logf(consumer, SPV_MSG_DEBUG, __FILE__, {__LINE__, 0, 0}, \
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dlog.h59 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
67 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
78 namespace spvtools {
160 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
169 spvtools::Log(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
178 spvtools::Logf(consumer, SPV_MSG_INTERNAL_ERROR, __FILE__, \
196 spvtools::Log(consumer, SPV_MSG_DEBUG, __FILE__, {__LINE__, 0, 0}, \
202 spvtools::Logf(consumer, SPV_MSG_DEBUG, __FILE__, {__LINE__, 0, 0}, \

12345678910>>...47