def __init__(self, state_bits_filename, instructions_filename, widths_filename, element_types_filename, cpuid_filename=''): self.xtypes = self._gen_xtypes(element_types_filename) self.width_type_dict, self.width_info_dict = self._gen_widths( widths_filename) self.state_bits = self._parse_state_bits(state_bits_filename) self.deleted_unames = {} self.deleted_instructions = {} self.recs = self._process_lines(instructions_filename) self._find_opcodes() self._fix_real_opcode() self._parse_operands() self._generate_operands() self._generate_memop_rw_field() self._summarize_operands() self._summarize_vsib() self.cpuid_map = {} if cpuid_filename: self.cpuid_map = cpuid_rdr.read_file(cpuid_filename) self._add_cpuid() self._add_vl() self._add_broadcasting() self._evex_disp8_scaling()
def __init__(self, state_bits_filename, instructions_filename, widths_filename, element_types_filename, cpuid_filename=''): self.xtypes = self._gen_xtypes(element_types_filename) self.widths_dict = self._gen_widths(widths_filename) self.state_bits = self._parse_state_bits(state_bits_filename) self.deleted_unames = {} self.deleted_instructions = {} self.recs = self._process_lines(instructions_filename) self._find_opcodes() self._fix_real_opcode() self._generate_explicit_operands() self._parse_operands() self.cpuid_map = {} if cpuid_filename: self.cpuid_map = cpuid_rdr.read_file(cpuid_filename) self._add_cpuid() self._add_vl()