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

Method GetGlobalValue

source/opt/module.cpp:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72uint32_t Module::GetGlobalValue(spv::Op opcode) const {
73 for (auto& inst : types_values_) {
74 if (inst.opcode() == opcode) return inst.result_id();
75 }
76 return 0;
77}
78
79void Module::AddGlobalValue(spv::Op opcode, uint32_t result_id,
80 uint32_t type_id) {

Callers 1

GetFalseIdMethod · 0.80

Calls 2

opcodeMethod · 0.45
result_idMethod · 0.45

Tested by

no test coverage detected