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

Function spvOpcodeString

source/opcode.cpp:90–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90const char* spvOpcodeString(const uint32_t opcode) {
91 const spvtools::InstructionDesc* desc = nullptr;
92 if (SPV_SUCCESS !=
93 spvtools::LookupOpcode(static_cast<spv::Op>(opcode), &desc)) {
94 assert(0 && "Unreachable!");
95 return "unknown";
96 }
97 return desc->name().data();
98}
99
100const char* spvOpcodeString(const spv::Op opcode) {
101 return spvOpcodeString(static_cast<uint32_t>(opcode));

Callers 15

EmitInstructionImplMethod · 0.85
DumpIdMapMethod · 0.85
ValidateUniquenessFunction · 0.85
ValidateTypeVectorFunction · 0.85
ValidateTensorDimFunction · 0.85
ValidateTypeTensorViewNVFunction · 0.85
ValidateTypeBufferEXTFunction · 0.85

Calls 3

LookupOpcodeFunction · 0.85
dataMethod · 0.45
nameMethod · 0.45

Tested by 1

GetErrorStringFunction · 0.68