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

Method MakeFreshId

source/diff/diff.cpp:126–129  ·  view source on GitHub ↗

Generate a fresh id in this mapping's domain.

Source from the content-addressed store, hash-verified

124
125 // Generate a fresh id in this mapping's domain.
126 uint32_t MakeFreshId() {
127 id_map_.push_back(0);
128 return static_cast<uint32_t>(id_map_.size()) - 1;
129 }
130
131 private:
132 // Given an id, returns the corresponding id in the other module, or 0 if not

Callers 1

MapUnmatchedIdsMethod · 0.80

Calls 2

push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected