MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / parse

Method parse

source/binary.cpp:256–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254};
255
256spv_result_t Parser::parse(const uint32_t* words, size_t num_words,
257 spv_diagnostic* diagnostic_arg) {
258 _ = State(words, num_words, diagnostic_arg);
259
260 const spv_result_t result = parseModule();
261
262 // Clear the module state. The tables might be big.
263 _ = State();
264
265 return result;
266}
267
268spv_result_t Parser::parseModule() {
269 if (!_.words) return diagnostic() << "Missing module.";

Callers 1

Calls 1

StateClass · 0.70

Tested by

no test coverage detected