parameters: (json_grammar, set_name, operand_kind_prefix="")
return_statement: return '{}\n\n{}'.format(caps_arrays, '\n'.join(insts))
docstring: Returns the info table containing all SPIR-V extended instructions,
      sorted by opcode, and prefixed by capability arrays.
  
      Arguments:
        - inst_table: a list containing all SPIR-V instructions.
        - set_name: the name of the extended instruction set.
        - operand_kind_prefix: the prefix, if any, to add to the front
          of operand kind names.
docstring_summary: Returns the info table containing all SPIR-V extended instructions,
      sorted by opcode, and prefixed by capability arrays.
docstring_tokens: Returns the info table containing all SPIR - V extended instructions sorted by opcode and prefixed by capability arrays .
function: def generate_extended_instruction_table(json_grammar, set_name, operand_kind_prefix=""):
      """Returns the info table containing all SPIR-V extended instructions,
      sorted by opcode, and prefixed by capability arrays.
  
      Arguments:
        - inst_table: a list containing all SPIR-V instructions.
        - set_name: the name of the extended instruction set.
        - operand_kind_prefix: the prefix, if any, to add to the front
          of operand kind names.
      """
      if operand_kind_prefix:
          prefix_operand_kind_names(operand_kind_prefix, json_grammar)
  
      inst_table = json_grammar["instructions"]
      set_name = set_name.replace(".", "_")
  
      inst_table = sorted(inst_table, key=lambda k: k['opcode'])
      caps = [inst.get('capabilities', []) for inst in inst_table]
      caps_arrays = generate_capability_arrays(caps)
      insts = [generate_instruction(inst, True) for inst in inst_table]
      insts = ['static const spv_ext_inst_desc_t {}_entries[] = {{\n'
               '  {}\n}};'.format(set_name, ',\n  '.join(insts))]
  
      return '{}\n\n{}'.format(caps_arrays, '\n'.join(insts))
function_tokens: def generate_extended_instruction_table ( json_grammar , set_name , operand_kind_prefix = "" ) : if operand_kind_prefix : prefix_operand_kind_names ( operand_kind_prefix , json_grammar ) inst_table = json_grammar [ "instructions" ] set_name = set_name . replace ( "." , "_" ) inst_table = sorted ( inst_table , key = lambda k : k [ 'opcode' ] ) caps = [ inst . get ( 'capabilities' , [ ] ) for inst in inst_table ] caps_arrays = generate_capability_arrays ( caps ) insts = [ generate_instruction ( inst , True ) for inst in inst_table ] insts = [ 'static const spv_ext_inst_desc_t {}_entries[] = {{\n' '  {}\n}};' . format ( set_name , ',\n  ' . join ( insts ) ) ] return '{}\n\n{}' . format ( caps_arrays , '\n' . join ( insts ) )