Home
last modified time | relevance | path

Searched refs:instPos (Results 1 – 1 of 1) sorted by relevance

/third_party/glslang/SPIRV/
DSPVRemapper.cpp728 std::vector<unsigned> instPos; in mapFnBodies() local
729 instPos.reserve(unsigned(spv.size()) / 16); // initial estimate; can grow if needed. in mapFnBodies()
733 [&](spv::Op, unsigned start) { instPos.push_back(start); return true; }, in mapFnBodies()
746 for (unsigned entry = 0; entry < unsigned(instPos.size()); ++entry) { in mapFnBodies()
747 const unsigned start = instPos[entry]; in mapFnBodies()
763 if (asOpCode(instPos[i]) == spv::OpFunction) in mapFnBodies()
765 … hashval = hashval * 30103 + asOpCodeHash(instPos[i]); // 30103 = semiarbitrary prime in mapFnBodies()
769 if (asOpCode(instPos[i]) == spv::OpFunctionEnd) in mapFnBodies()
771 … hashval = hashval * 30103 + asOpCodeHash(instPos[i]); // 30103 = semiarbitrary prime in mapFnBodies()