• Home
  • Raw
  • Download

Lines Matching refs:asId

70             offset += asId(word + 4); break;  in asOpCodeHash()
387 if (idPosR.find(asId(start+1)) == idPosR.end()) in stripDeadRefs()
428 typeId = asId(word++); in buildLocalMaps()
432 const spv::Id resultId = asId(word++); in buildLocalMaps()
447 const spv::Id target = asId(start+1); in buildLocalMaps()
452 ++fnCalls[asId(start + 3)]; in buildLocalMaps()
454 entryPoint = asId(start + 2); in buildLocalMaps()
462 fnRes = asId(start + 2); in buildLocalMaps()
476 assert(asId(start + 2) != spv::NoResult); in buildLocalMaps()
479 assert(asId(start + 1) != spv::NoResult); in buildLocalMaps()
535 idFn(asId(word++)); in processInstruction()
540 idFn(asId(word++)); in processInstruction()
551 idFn(asId(word++)); // ID in processInstruction()
579 idBuffer[idBufferPos] = asId(word); in processInstruction()
581 idFn(asId(word++)); in processInstruction()
586 idFn(asId(word++)); in processInstruction()
612 idFn(asId(word++)); // label in processInstruction()
748 fnId = asId(start + 2); in mapFnBodies()
756 const spv::Id resId = asId(word); in mapFnBodies()
793 fnId = asId(start + 2); in mapFnBodies()
853 fnLocalVars.insert(asId(start+2)); in forwardLoadStores()
855 if (opCode == spv::OpAccessChain && fnLocalVars.count(asId(start+3)) > 0) in forwardLoadStores()
856 fnLocalVars.insert(asId(start+2)); in forwardLoadStores()
858 if (opCode == spv::OpLoad && fnLocalVars.count(asId(start+3)) > 0) { in forwardLoadStores()
859 idMap[asId(start+2)] = asId(start+3); in forwardLoadStores()
881 fnLocalVars.insert(asId(start+2)); in forwardLoadStores()
883 if (opCode == spv::OpStore && fnLocalVars.count(asId(start+1)) > 0) { in forwardLoadStores()
884 idMap[asId(start+2)] = asId(start+1); in forwardLoadStores()
925 fnLocalVars.insert(asId(start+2)); in optLoadStore()
930 …::OpAccessChain || opCode == spv::OpInBoundsAccessChain) && fnLocalVars.count(asId(start+3)) > 0) { in optLoadStore()
931 fnLocalVars.erase(asId(start+3)); in optLoadStore()
932 idMap.erase(asId(start+3)); in optLoadStore()
936 if (opCode == spv::OpLoad && fnLocalVars.count(asId(start+3)) > 0) { in optLoadStore()
937 const spv::Id varId = asId(start+3); in optLoadStore()
962 if (opCode == spv::OpStore && fnLocalVars.count(asId(start+1)) > 0) { in optLoadStore()
963 const spv::Id varId = asId(start+1); in optLoadStore()
966 idMap[varId] = asId(start+2); in optLoadStore()
975 fnLocalVars.erase(asId(start+3)); in optLoadStore()
976 idMap.erase(asId(start+3)); in optLoadStore()
1007 if (opCode == spv::OpLoad && fnLocalVars.count(asId(start+3)) > 0) in optLoadStore()
1008 idMap[asId(start+2)] = idMap[asId(start+3)]; in optLoadStore()
1033 if ((opCode == spv::OpLoad && fnLocalVars.count(asId(start+3)) > 0) || in optLoadStore()
1034 (opCode == spv::OpStore && fnLocalVars.count(asId(start+1)) > 0) || in optLoadStore()
1035 (opCode == spv::OpVariable && fnLocalVars.count(asId(start+2)) > 0)) { in optLoadStore()
1082 const auto call_it = fnCalls.find(asId(start + 3)); in dceFuncs()
1115 ++varUseCount[asId(start+2)]; in dceVars()
1120 ++varUseCount[asId(start+i)]; in dceVars()
1138 id = asId(start+2); in dceVars()
1140 id = asId(start+1); in dceVars()
1221 if (!matchType(globalTypes, asId(typeStart+x), gdata[x])) in matchType()