Lines Matching defs:opname
64 opname = inst_html.a["id"]
65 # Ignore the first line, which is just the opname.
66 doc[opname] = inst_html.text.split("\n", 1)[1].strip()
72 opname = inst_html.a["id"]
73 # Ignore the first line, which is just the opname.
74 doc[opname] = inst_html.text.split("\n", 1)[1].strip()
398 """Generates the TableGen definition to map opname to opcode
404 max_len = max([len(inst["opname"]) for inst in instructions])
410 name=inst["opname"],
413 offset=(max_len + 1 - len(inst["opname"])),
420 opcode_list = [decl_fmt_str.format(name=inst["opname"]) for inst in instructions]
450 cap_to_inst[cap].append(inst["opname"])
472 filter(lambda inst: (inst["opname"] in existing_opcodes), instructions)
475 instructions_opnames = [inst["opname"] for inst in instructions]
479 filter(lambda inst: (inst["opname"] in remaining_opcodes), instructions)
535 filter(lambda inst: (inst["opname"] in filter_list), instructions)
691 instruction, opname, doc, existing_info, settings
706 "def SPIRV_{opname}Op : "
731 opname_src = instruction["opname"]
732 if opname.startswith("Op"):
806 opname=opname,
893 # Get opname
896 opname = [
900 assert len(opname) == 1, "more than one ops in the same section!"
901 opname = opname[0]
936 "opname": "Op{}".format(opname),
973 name_op_map = {} # Map from opname to its existing ODS definition
977 opname = info_dict["opname"]
978 name_op_map[opname] = op
979 op_info_dict[opname] = info_dict
980 filter_list.append(opname)
990 for opname in filter_list:
993 fixed_opname = fix_opname(opname)
995 inst for inst in instructions if inst["opname"] == fixed_opname
1001 opname,
1003 op_info_dict.get(opname, {"inst_category": inst_category}),
1009 op_defs.append(name_op_map[opname])