Lines Matching refs:name
31 // directly. It relies on OpName instructions and friendly-name disassembling
60 // to this code builder will be assigned with a global name through OpName
61 // instruction. The name is extracted from the definition instruction.
65 // Note that the name must not be used on more than one defined IDs and
66 // friendly-name disassembling must be enabled so that OpName instructions will
192 // Adds a given name to the Name section with OpName. If the given name has
206 // as an ID defining instruction. The ID name used in the instruction will be
210 std::string name = GetResultIDName(line);
211 if (!name.empty()) {
212 AddOpNameIfNotExist(name);
217 // Adds an OpDecorate SpecId instruction for the given ID name.
226 // Extracts the ID name from a SPIR-V assembly instruction string. If the
228 // name of the result ID in string. If the instruction does not have result
231 std::string name;
234 name = inst_str.substr(0, assign_sign);
235 name.erase(remove_if(name.begin(), name.end(),
237 name.end());
239 return name;