Lines Matching refs:fnLocalVars
677 idset_t fnLocalVars; // set of function local vars
688 fnLocalVars.insert(asId(start+2));
690 if (opCode == spv::OpAccessChain && fnLocalVars.count(asId(start+3)) > 0)
691 fnLocalVars.insert(asId(start+2));
693 if (opCode == spv::OpLoad && fnLocalVars.count(asId(start+3)) > 0) {
705 fnLocalVars.clear();
713 fnLocalVars.insert(asId(start+2));
715 if (opCode == spv::OpStore && fnLocalVars.count(asId(start+1)) > 0) {
735 idset_t fnLocalVars; // candidates for removal (only locals)
751 fnLocalVars.insert(asId(start+2));
756 if ((opCode == spv::OpAccessChain || opCode == spv::OpInBoundsAccessChain) && fnLocalVars.count(asId(start+3)) > 0) {
757 fnLocalVars.erase(asId(start+3));
762 if (opCode == spv::OpLoad && fnLocalVars.count(asId(start+3)) > 0) {
767 fnLocalVars.erase(varId);
773 fnLocalVars.erase(varId);
781 fnLocalVars.erase(varId); // Ignore if crosses flow control
788 if (opCode == spv::OpStore && fnLocalVars.count(asId(start+1)) > 0) {
795 fnLocalVars.erase(varId);
801 fnLocalVars.erase(asId(start+3));
809 fnLocalVars.erase(varId); // Ignore if crosses flow control
821 if (fnLocalVars.count(id) > 0) {
822 fnLocalVars.erase(id);
830 if (opCode == spv::OpLoad && fnLocalVars.count(asId(start+3)) > 0)
853 if ((opCode == spv::OpLoad && fnLocalVars.count(asId(start+3)) > 0) ||
854 (opCode == spv::OpStore && fnLocalVars.count(asId(start+1)) > 0) ||
855 (opCode == spv::OpVariable && fnLocalVars.count(asId(start+2)) > 0)) {