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

Method IsDefined

source/diff/diff.cpp:229–231  ·  view source on GitHub ↗

Return true if id is mapped to any instruction, false otherwise.

Source from the content-addressed store, hash-verified

227
228 // Return true if id is mapped to any instruction, false otherwise.
229 bool IsDefined(uint32_t id) {
230 return id < inst_map_.size() && inst_map_[id] != nullptr;
231 }
232
233 void MapIdsToInstruction(
234 opt::IteratorRange<opt::Module::const_inst_iterator> section);

Callers 1

OutputMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected