@@ -536,7 +536,7 @@ def gen_instr_coverage_report(path, instructions):
536536
537537 content = content .split (AUTOGEN_OPCODE_SECTION_MARKER )
538538
539- existing_opcodes = [k [11 :] for k in re .findall ("def SPIRV_OC_\w+" , content [1 ])]
539+ existing_opcodes = [k [11 :] for k in re .findall (r "def SPIRV_OC_\w+" , content [1 ])]
540540 existing_instructions = list (
541541 filter (lambda inst : (inst ["opname" ] in existing_opcodes ), instructions )
542542 )
@@ -594,7 +594,7 @@ def update_td_opcodes(path, instructions, filter_list):
594594 # Extend opcode list with existing list
595595 prefix = "def SPIRV_OC_"
596596 existing_opcodes = [
597- k [len (prefix ) :] for k in re .findall (prefix + "\w+" , content [1 ])
597+ k [len (prefix ) :] for k in re .findall (prefix + r "\w+" , content [1 ])
598598 ]
599599 filter_list .extend (existing_opcodes )
600600 filter_list = list (set (filter_list ))
@@ -637,7 +637,7 @@ def update_td_enum_attrs(path, operand_kinds, filter_list):
637637 assert len (content ) == 3
638638
639639 # Extend filter list with existing enum definitions
640- existing_kinds = [k [8 :- 4 ] for k in re .findall ("def SPIRV_\w+Attr" , content [1 ])]
640+ existing_kinds = [k [8 :- 4 ] for k in re .findall (r "def SPIRV_\w+Attr" , content [1 ])]
641641 filter_list .extend (existing_kinds )
642642
643643 capability_mapping = get_capability_mapping (operand_kinds )
@@ -959,12 +959,12 @@ def extract_td_op_info(op_def):
959959 - A dict containing potential manually specified sections
960960 """
961961 # Get opname
962- opname = [o [8 :- 2 ] for o in re .findall ("def SPIRV_\w+Op" , op_def )]
962+ opname = [o [8 :- 2 ] for o in re .findall (r "def SPIRV_\w+Op" , op_def )]
963963 assert len (opname ) == 1 , "more than one ops in the same section!"
964964 opname = opname [0 ]
965965
966966 # Get instruction category
967- inst_category = [o [4 :] for o in re .findall ("SPIRV_\w+Op" , op_def .split (":" , 1 )[1 ])]
967+ inst_category = [o [4 :] for o in re .findall (r "SPIRV_\w+Op" , op_def .split (":" , 1 )[1 ])]
968968 assert len (inst_category ) <= 1 , "more than one ops in the same section!"
969969 inst_category = inst_category [0 ] if len (inst_category ) == 1 else "Op"
970970
0 commit comments