Lines Matching refs:Id
129 unsigned spirvbin_t::typeSizeInWords(spv::Id id) const
147 unsigned spirvbin_t::idTypeSizeInWords(spv::Id id) const
250 const auto op_fn_nop = [](spv::Id&) { };
255 const spv::Id spirvbin_t::unmapped = spv::Id(-10000);
256 const spv::Id spirvbin_t::unused = spv::Id(-10001);
259 spv::Id spirvbin_t::nextUnusedId(spv::Id id)
267 spv::Id spirvbin_t::localId(spv::Id id, spv::Id newId)
333 [this](spv::Id& id) {
349 spv::Id unusedId = 1; // can't use 0: that's NoResult
352 for (spv::Id id = 0; id < idMapL.size(); ++id) {
435 spv::Id fnRes = spv::NoResult;
437 // build local Id and name maps
441 spv::Id typeId = spv::NoResult;
448 const spv::Id resultId = asId(word++);
463 const spv::Id target = asId(start+1);
502 [this](spv::Id& id) { localId(id, unmapped); }
577 spv::Id idBuffer[idBufferSize];
747 spv::Id fnId = spv::NoResult;
779 const spv::Id resId = asId(word);
850 [&](spv::Id& id) {
897 [&](spv::Id& id) { if (idMap.find(id) != idMap.end()) id = idMap[id]; }
928 [&](spv::Id& id) { if (idMap.find(id) != idMap.end()) id = idMap[id]; }
968 const spv::Id varId = asId(start+3);
994 const spv::Id varId = asId(start+1);
1025 [&](spv::Id& id) {
1054 spv::Id id = idPair.first;
1075 [&](spv::Id& id) {
1140 std::unordered_map<spv::Id, int> varUseCount;
1158 [&](spv::Id& id) { if (varUseCount[id]) ++varUseCount[id]; }
1167 spv::Id id = spv::NoResult;
1190 std::unordered_map<spv::Id, int> typeUseCount;
1202 [&](spv::Id& id) { if (isType[id]) ++typeUseCount[id]; }
1210 const spv::Id typeId = asTypeConstId(typeStart);
1224 bool spirvbin_t::matchType(const spirvbin_t::globaltypes_t& globalTypes, spv::Id lt, spv::Id gt) const
1283 spv::Id spirvbin_t::findType(const spirvbin_t::globaltypes_t& globalTypes, spv::Id lt) const
1294 // Return start position in SPV of given Id. error if not found.
1295 unsigned spirvbin_t::idPos(spv::Id id) const
1405 const spv::Id resId = asTypeConstId(typeStart);