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

Method GetExtInstImportId

source/opt/module.cpp:279–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279uint32_t Module::GetExtInstImportId(const char* extstr) {
280 for (auto& ei : ext_inst_imports_)
281 if (!ei.GetInOperand(0).AsString().compare(extstr)) return ei.result_id();
282 return 0;
283}
284
285std::ostream& operator<<(std::ostream& str, const Module& module) {
286 module.ForEachInst([&str](const Instruction* inst) {

Callers 2

AddFoldingRulesMethod · 0.80
AddExtInstImportIdsMethod · 0.80

Calls 2

AsStringMethod · 0.45
result_idMethod · 0.45

Tested by

no test coverage detected