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

Method MapIds

source/diff/diff.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 IdMap(size_t id_bound) { id_map_.resize(id_bound, 0); }
76
77 void MapIds(uint32_t from, uint32_t to) {
78 assert(from != 0);
79 assert(to != 0);
80 assert(from < id_map_.size());
81 assert(id_map_[from] == 0);
82
83 id_map_[from] = to;
84 }
85
86 uint32_t MappedId(uint32_t from) const {
87 assert(from != 0);

Callers 9

MapIdsMethod · 0.45
MatchIdsMethod · 0.45
MatchFunctionParamIdsMethod · 0.45
MatchEntryPointIdsMethod · 0.45
MatchFunctionsMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected