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

Method EmitHeaderGenerator

source/disassemble.cpp:652–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652void InstructionDisassembler::EmitHeaderGenerator(uint32_t generator) {
653 const char* generator_tool =
654 spvGeneratorStr(SPV_GENERATOR_TOOL_PART(generator));
655 stream_ << "; Generator: " << generator_tool;
656 // For unknown tools, print the numeric tool value.
657 if (0 == strcmp("Unknown", generator_tool)) {
658 stream_ << "(" << SPV_GENERATOR_TOOL_PART(generator) << ")";
659 }
660 // Print the miscellaneous part of the generator word on the same
661 // line as the tool name.
662 stream_ << "; " << SPV_GENERATOR_MISC_PART(generator) << "\n";
663}
664
665void InstructionDisassembler::EmitHeaderIdBound(uint32_t id_bound) {
666 stream_ << "; Bound: " << id_bound << "\n";

Callers 2

HandleHeaderMethod · 0.80
OutputMethod · 0.80

Calls 1

spvGeneratorStrFunction · 0.85

Tested by

no test coverage detected