Lines Matching defs:instructions

84       - A list containing all instructions' grammar
94 return spirv["operand_kinds"], spirv["instructions"]
100 return spirv["operand_kinds"], spirv_ext["instructions"]
397 def gen_opcode(instructions):
404 max_len = max([len(inst["opname"]) for inst in instructions])
415 for inst in instructions
420 opcode_list = [decl_fmt_str.format(name=inst["opname"]) for inst in instructions]
426 ' SPIRV_I32EnumAttr<"{name}", "valid SPIR-V instructions", '
434 def map_cap_to_opnames(instructions):
435 """Maps capabilities to instructions enabled by those capabilities
438 - instructions: a list containing a subset of SPIR-V instructions' grammar
441 instructions enabled by the corresponding key
445 for inst in instructions:
455 def gen_instr_coverage_report(path, instructions):
460 - instructions: a list containing all SPIR-V instructions' grammar
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)
510 def update_td_opcodes(path, instructions, filter_list):
515 - instructions: a list containing all SPIR-V instructions' grammar
533 # Generate the opcode for all instructions in SPIR-V
535 filter(lambda inst: (inst["opname"] in filter_list), instructions)
948 path, instructions, docs, filter_list, inst_category, settings
954 - instructions: SPIR-V JSON grammar for all instructions
955 - docs: SPIR-V HTML doc for all instructions
995 inst for inst in instructions if inst["opname"] == fixed_opname
1093 operand_kinds, instructions = get_spirv_grammar_from_json_spec(ext_json_url)
1104 update_td_opcodes(args.base_td_path, instructions, args.new_opcodes)
1112 instructions,
1123 gen_instr_coverage_report(args.base_td_path, instructions)