Hexagon (target/hexagon) Clean up .new decode and scripts
cover Hexagon (target/hexagon) Clean up .new decode and scripts
During .new decode, there are several places where strchr is used. We remove these by generating the values that are needed.
Once we have generated the proper values, we no longer need op_regs_generated.h.inc. We remove the script that generates it as well as the code in meson.build
We also remove the script and meson.build code that creates shortcode_generated.h.inc. The data structure that includes it is not used.
We remove hex_common.read_attribs_file. The Python data structures built during this step are not used.
Taylor Simpson (9):
Hexagon (target/hexagon) Add is_old/is_new to Register class Hexagon (target/hexagon) Mark new_read_idx in trans functions Hexagon (target/hexagon) Mark dest_idx in trans functions Hexagon (target/hexagon) Mark has_pred_dest in trans functions Hexagon (tests/tcg/hexagon) Test HVX .new read from high half of pair Hexagon (target/hexagon) Remove uses of op_regs_generated.h.inc Hexagon (target/hexagon) Remove gen_op_regs.py
Hexagon (target/hexagon) Remove gen_shortcode.py
Hexagon (target/hexagon) Remove hex_common.read_attribs_file
target/hexagon/insn.h | 5 +- target/hexagon/opcodes.h | 4 - target/hexagon/decode.c | 50 ++-------- target/hexagon/mmvec/decode_ext_mmvec.c | 30 ++---- target/hexagon/opcodes.c | 35 ------- tests/tcg/hexagon/hvx_misc.c | 16 ++- target/hexagon/README | 2 - target/hexagon/gen_analyze_funcs.py | 21 +--- target/hexagon/gen_helper_funcs.py | 21 +--- target/hexagon/gen_helper_protos.py | 21 +--- target/hexagon/gen_idef_parser_funcs.py | 5 +- target/hexagon/gen_op_attribs.py | 5 +- target/hexagon/gen_op_regs.py | 125 ------------------------ target/hexagon/gen_opcodes_def.py | 4 +- target/hexagon/gen_printinsn.py | 5 +- target/hexagon/gen_shortcode.py | 63 ------------ target/hexagon/gen_tcg_func_table.py | 5 +- target/hexagon/gen_tcg_funcs.py | 21 +--- target/hexagon/gen_trans_funcs.py | 23 ++++- target/hexagon/hex_common.py | 49 +++++++--- target/hexagon/meson.build | 55 ++++------- 21 files changed, 119 insertions(+), 446 deletions(-) delete mode 100755 target/hexagon/gen_op_regs.py delete mode 100755 target/hexagon/gen_shortcode.py
Signature · 1 line
2.34.1
PATCH 1/9 Hexagon (target/hexagon) Add is_old/is_new to Register class
--- target/hexagon/hex_common.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
target/hexagon/hex_common.py +13 -1
@@ -1,7 +1,7 @@ #!/usr/bin/env python3 ## -## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. +## Copyright(c) 2019-2024 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by
@@ -397,10 +397,18 @@ def is_readwrite(self): class OldSource(Source): def reg_tcg(self): return f"{self.regtype}{self.regid}V" + def is_old(self): + return True + def is_new(self): + return False class NewSource(Source): def reg_tcg(self): return f"{self.regtype}{self.regid}N" + def is_old(self): + return False + def is_new(self): + return True class ReadWrite: def reg_tcg(self):
@@ -413,6 +421,10 @@ def is_read(self): return True def is_readwrite(self): return True + def is_old(self): + return True + def is_new(self): + return False class GprDest(Register, Single, Dest): def decl_tcg(self, f, tag, regno):
Signature · 1 line
2.34.1
Re: [PATCH 1/9] Hexagon (target/hexagon) Add is_old/is_new to Register class
Quoted 10 lines · Taylor Simpson
Signed-off-by Taylor Simpson <[email protected]>--- target/hexagon/hex_common.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)target/hexagon/hex_common.py +0
-0
target/hexagon/hex_common.py line 4
Quoted 5 lines
target/hexagon/hex_common.py +1
-1@@ -1,7 +1,7 @@ #!/usr/bin/env python3 ## -## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. +## Copyright(c) 2019-2024 Qualcomm Innovation Center, Inc. All Rights Reserved.
:)
PATCH 2/9 Hexagon (target/hexagon) Mark new_read_idx in trans functions
In reply to Taylor SimpsonCheck that the value matches opcode_reginfo
--- target/hexagon/insn.h | 3 ++- target/hexagon/decode.c | 2 ++ target/hexagon/mmvec/decode_ext_mmvec.c | 2 ++ target/hexagon/gen_trans_funcs.py | 15 ++++++++++----- 4 files changed, 16 insertions(+), 6 deletions(-)
target/hexagon/insn.h +2 -1
@@ -1,5 +1,5 @@/* -* Copyright(c) 2019-2022 Qualcomm Innovation Center, Inc. All Rights Reserved. +* Copyright(c) 2019-2024 Qualcomm Innovation Center, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by
@@ -39,6 +39,7 @@ struct Instruction { uint32_t slot:3; uint32_t which_extended:1; /* If has an extender, which immediate */ uint32_t new_value_producer_slot:4; +int32_t new_read_idx;bool part1;/* * cmp-jumps are split into two insns.
target/hexagon/decode.c +2 -0
@@ -131,6 +131,8 @@ decode_fill_newvalue_regno(Packet *packet) use_regidx =strchr (opcode_reginfo[use_opcode],'s' ) - opcode_reginfo[use_opcode]; } +g_assert (packet->insn[i].new_read_idx !=-1 && + packet->insn[i].new_read_idx == use_regidx);/* * What's encoded at the N-field is the offset to who's producing
target/hexagon/mmvec/decode_ext_mmvec.c +2 -0
@@ -41,6 +41,8 @@ check_new_value(Packet *pkt) GET_ATTRIB(use_opcode, A_STORE)) {int use_regidx =strchr (opcode_reginfo[use_opcode],'s' ) - opcode_reginfo[use_opcode]; +g_assert (pkt->insn[i].new_read_idx !=-1 && + pkt->insn[i].new_read_idx == use_regidx);/* * What's encoded at the N-field is the offset to who's producing * the value.
target/hexagon/gen_trans_funcs.py +10 -5
@@ -84,14 +84,15 @@ def gen_trans_funcs(f): insn->opcode = {tag}; """)) - regno = 0 - for reg in regs: - reg_type = reg[0] - reg_id = reg[1] + new_read_idx = -1 + for regno, regstruct in enumerate(regs): + reg_type, reg_id, _, _ = regstruct + reg = hex_common.get_register(tag, reg_type, reg_id) f.write(code_fmt(f"""\ insn->regno[{regno}] = args->{reg_type}{reg_id}; """)) - regno += 1 + if reg.is_read() and reg.is_new(): + new_read_idx = regno if len(imms) != 0: mark_which_imm_extended(f, tag)
@@ -112,6 +113,9 @@ def gen_trans_funcs(f): insn->immed[{immno}] = args->{imm_type}{imm_letter}; """)) + f.write(code_fmt(f"""\ + insn->new_read_idx = {new_read_idx}; + """)) f.write(textwrap.dedent(f"""\ return true; {close_curly}
@@ -120,5 +124,6 @@ def gen_trans_funcs(f): if __name__ == "__main__": hex_common.read_semantics_file(sys.argv[1]) + hex_common.init_registers() with open(sys.argv[2], "w") as f: gen_trans_funcs(f)
Signature · 1 line
2.34.1
Re: [PATCH 2/9] Hexagon (target/hexagon) Mark new_read_idx in trans functions
Quoted 7 lines · On Mon, 26 Feb 2024 13:17:15 -0700 Taylor Simpson <[email protected]>…
target/hexagon/gen_trans_funcs.py +0
-0@@ -84,14 +84,15 @@ def gen_trans_funcs(f): insn->opcode = {tag};
target/hexagon/gen_trans_funcs.py def gen_trans_funcs(f): · line 90
Quoted 10 lines
target/hexagon/gen_trans_funcs.py +4
-4""")) - regno = 0 - for reg in regs: - reg_type = reg[0] - reg_id = reg[1] + new_read_idx = -1 + for regno, regstruct in enumerate(regs): + reg_type, reg_id, _, _ = regstruct + reg = hex_common.get_register(tag, reg_type, reg_id)
Nit: since we don't care about the remaining elements of regstruct, we could simplify (and future-proof) this even further to:
reg_type, reg_id, *_ = regstruct
Or perhaps even eliminate the variable entirely:
for regno, (reg_type, reg_id, *_) in enumerate(regs):
...
Quoted 9 lines
target/hexagon/gen_trans_funcs.py +2
-1f.write(code_fmt(f"""\ insn->regno[{regno}] = args->{reg_type}{reg_id}; """)) - regno += 1 + if reg.is_read() and reg.is_new(): + new_read_idx = regno if len(imms) != 0: mark_which_imm_extended(f, tag)
RE: [PATCH 2/9] Hexagon (target/hexagon) Mark new_read_idx in trans functions
Quoted 25 lines
-----Original Message-----
From: Matheus Tavares Bernardino <[email protected]>
Sent: Tuesday, February 27, 2024 8:20 AM
To: Taylor Simpson <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 2/9] Hexagon (target/hexagon) Marknew_read_idxin trans functionsQuoted 10 lines · On Mon, 26 Feb 2024 13:17:15 -0700 Taylor Simpson <[email protected]>…
target/hexagon/gen_trans_funcs.py +0
-0@@ -84,14 +84,15 @@ def gen_trans_funcs(f): insn->opcode = {tag}; """))
Quoted 10 lines
target/hexagon/gen_trans_funcs.py def gen_trans_funcs(f): · line 90
Quoted 8 lines
target/hexagon/gen_trans_funcs.py +4
-4- regno = 0 - for reg in regs: - reg_type = reg[0] - reg_id = reg[1] + new_read_idx = -1 + for regno, regstruct in enumerate(regs): + reg_type, reg_id, _, _ = regstruct + reg = hex_common.get_register(tag, reg_type, reg_id)Nit: since we don't care about the remaining elements of regstruct, we
could
Quoted 8 lines
simplify (and future-proof) this even further to:
reg_type,reg_id, *_ = regstructOr perhaps even eliminate the variable entirely:
for regno, (
reg_type,reg_id, *_) in enumerate(regs):
...
Let's go with the second option. I'll make the change.
Thanks,
Taylor
PATCH 3/9 Hexagon (target/hexagon) Mark dest_idx in trans functions
In reply to Taylor SimpsonCheck that the value matches opcode_reginfo/opcode_wregs
--- target/hexagon/insn.h | 1 + target/hexagon/decode.c | 2 ++ target/hexagon/mmvec/decode_ext_mmvec.c | 2 ++ target/hexagon/gen_trans_funcs.py | 4 ++++ 4 files changed, 9 insertions(+)
target/hexagon/insn.h +1 -0
@@ -40,6 +40,7 @@ struct Instruction { uint32_t which_extended:1; /* If has an extender, which immediate */ uint32_t new_value_producer_slot:4;int32_t new_read_idx; +int32_t dest_idx;bool part1;/* * cmp-jumps are split into two insns.
target/hexagon/decode.c +2 -0
@@ -184,6 +184,8 @@ decode_fill_newvalue_regno(Packet *packet)/* Now patch up the consumer with the register number */ dst_idx = dststr - opcode_reginfo[def_opcode]; +g_assert (packet->insn[def_idx].dest_idx !=-1 && + packet->insn[def_idx].dest_idx == dst_idx); packet->insn[i].regno[use_regidx] = packet->insn[def_idx].regno[dst_idx];/*
target/hexagon/mmvec/decode_ext_mmvec.c +2 -0
@@ -86,6 +86,8 @@ check_new_value(Packet *pkt)/* still not there, we have a bad packet */ g_assert_not_reached (); } +g_assert (pkt->insn[def_idx].dest_idx !=-1 && + pkt->insn[def_idx].dest_idx == dststr - reginfo);int def_regnum = pkt->insn[def_idx].regno[dststr - reginfo];/* Now patch up the consumer with the register number */ pkt->insn[i].regno[use_regidx] = def_regnum ^ def_oreg;
target/hexagon/gen_trans_funcs.py +4 -0
@@ -85,6 +85,7 @@ def gen_trans_funcs(f): """)) new_read_idx = -1 + dest_idx = -1 for regno, regstruct in enumerate(regs): reg_type, reg_id, _, _ = regstruct reg = hex_common.get_register(tag, reg_type, reg_id)
@@ -93,6 +94,8 @@ def gen_trans_funcs(f): """)) if reg.is_read() and reg.is_new(): new_read_idx = regno + if reg.is_written() and dest_idx == -1: + dest_idx = regno if len(imms) != 0: mark_which_imm_extended(f, tag)
@@ -115,6 +118,7 @@ def gen_trans_funcs(f): f.write(code_fmt(f"""\ insn->new_read_idx = {new_read_idx}; + insn->dest_idx = {dest_idx}; """)) f.write(textwrap.dedent(f"""\ return true;
Signature · 1 line
2.34.1
Re: [PATCH 3/9] Hexagon (target/hexagon) Mark dest_idx in trans functions
Quoted 14 lines · On Mon, 26 Feb 2024 13:17:16 -0700 Taylor Simpson <[email protected]>…
target/hexagon/gen_trans_funcs.py +1
-0@@ -85,6 +85,7 @@ def gen_trans_funcs(f): """)) new_read_idx = -1 + dest_idx = -1 for regno, regstruct in enumerate(regs): reg_type, reg_id, _, _ = regstruct reg = hex_common.get_register(tag, reg_type, reg_id)
target/hexagon/gen_trans_funcs.py def gen_trans_funcs(f): · line 98
Quoted 5 lines
target/hexagon/gen_trans_funcs.py +2
-0@@ -93,6 +94,8 @@ def gen_trans_funcs(f): """)) if reg.is_read() and reg.is_new(): new_read_idx = regno + if reg.is_written() and dest_idx == -1: + dest_idx = regno
I was first wondering what should we do when "reg.is_written()" and "dest_idx != -1". But then I remembered we previously used strchr(), so we would stop at the first match anyways.
PATCH 4/9 Hexagon (target/hexagon) Mark has_pred_dest in trans functions
In reply to Taylor SimpsonCheck that the value matches opcode_wregs
--- target/hexagon/insn.h | 1 + target/hexagon/decode.c | 3 +++ target/hexagon/gen_trans_funcs.py | 4 ++++ 3 files changed, 8 insertions(+)
target/hexagon/insn.h +1 -0
@@ -41,6 +41,7 @@ struct Instruction { uint32_t new_value_producer_slot:4;int32_t new_read_idx;int32_t dest_idx; +bool has_pred_dest;bool part1;/* * cmp-jumps are split into two insns.
target/hexagon/decode.c +3 -0
@@ -366,6 +366,9 @@ static void decode_shuffle_for_execution(Packet *packet)for (flag = false, i =0 ; i < last_insn +1 ; i++) {int opcode = packet->insn[i].opcode; +g_assert (packet->insn[i].has_pred_dest == + (strstr (opcode_wregs[opcode],"Pd4" ) || +strstr (opcode_wregs[opcode],"Pe4" )));if ((strstr (opcode_wregs[opcode],"Pd4" ) ||strstr (opcode_wregs[opcode],"Pe4" )) &&GET_ATTRIB (opcode,A_STORE ) ==0 ) {
target/hexagon/gen_trans_funcs.py +4 -0
@@ -86,6 +86,7 @@ def gen_trans_funcs(f): new_read_idx = -1 dest_idx = -1 + has_pred_dest = "false" for regno, regstruct in enumerate(regs): reg_type, reg_id, _, _ = regstruct reg = hex_common.get_register(tag, reg_type, reg_id)
@@ -96,6 +97,8 @@ def gen_trans_funcs(f): new_read_idx = regno if reg.is_written() and dest_idx == -1: dest_idx = regno + if reg_type == "P" and not reg.is_read(): + has_pred_dest = "true" if len(imms) != 0: mark_which_imm_extended(f, tag)
@@ -119,6 +122,7 @@ def gen_trans_funcs(f): f.write(code_fmt(f"""\ insn->new_read_idx = {new_read_idx}; insn->dest_idx = {dest_idx}; + insn->has_pred_dest = {has_pred_dest}; """)) f.write(textwrap.dedent(f"""\ return true;
Signature · 1 line
2.34.1
Re: [PATCH 4/9] Hexagon (target/hexagon) Mark has_pred_dest in trans functions
Quoted 14 lines · On Mon, 26 Feb 2024 13:17:17 -0700 Taylor Simpson <[email protected]>…
target/hexagon/gen_trans_funcs.py +1
-0@@ -86,6 +86,7 @@ def gen_trans_funcs(f): new_read_idx = -1 dest_idx = -1 + has_pred_dest = "false" for regno, regstruct in enumerate(regs): reg_type, reg_id, _, _ = regstruct reg = hex_common.get_register(tag, reg_type, reg_id)
target/hexagon/gen_trans_funcs.py def gen_trans_funcs(f): · line 101
Quoted 5 lines
target/hexagon/gen_trans_funcs.py +2
-0@@ -96,6 +97,8 @@ def gen_trans_funcs(f): new_read_idx = regno if reg.is_written() and dest_idx == -1: dest_idx = regno + if reg_type == "P" and not reg.is_read(): + has_pred_dest = "true"
I got a bit confused here. Why do we use "not reg.is_read()"? I though this would be "reg.is_written()".
RE: [PATCH 4/9] Hexagon (target/hexagon) Mark has_pred_dest in trans functions
Quoted 23 lines
-----Original Message-----
From: Matheus Tavares Bernardino <[email protected]>
Sent: Tuesday, February 27, 2024 8:21 AM
To: Taylor Simpson <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 4/9] Hexagon (target/hexagon) Markhas_pred_destin trans functionsQuoted 8 lines · On Mon, 26 Feb 2024 13:17:17 -0700 Taylor Simpson <[email protected]>…
target/hexagon/gen_trans_funcs.py +0
-0@@ -86,6 +86,7 @@ def gen_trans_funcs(f):
Quoted 14 lines
target/hexagon/gen_trans_funcs.py def gen_trans_funcs(f):
Quoted 12 lines
target/hexagon/gen_trans_funcs.py +3
-1new_read_idx = -1 dest_idx = -1 + has_pred_dest = "false" for regno, regstruct in enumerate(regs): reg_type, reg_id, _, _ = regstruct reg = hex_common.get_register(tag, reg_type, reg_id) @@ -96,6 +97,8 @@ def gen_trans_funcs(f): new_read_idx = regno if reg.is_written() and dest_idx == -1: dest_idx = regno + if reg_type == "P" and not reg.is_read(): + has_pred_dest = "true"I got a bit confused here. Why do we use "not
reg.is_read()"? I though
this
Quoted 1 line
would be "
reg.is_written()".
The original C code is
if ((strstr(opcode_wregs[opcode], "Pd4") ||
strstr(opcode_wregs[opcode], "Pe4")) &&Checking for reg.is_written() would also match Px4, which is read-write.
Would it be more clear if we checked for reg.is_written() and non reg.is_read()?
Thanks,
Taylor
PATCH 5/9 Hexagon (tests/tcg/hexagon) Test HVX .new read from high half of pair
In reply to Taylor SimpsonMake sure the decoding of HVX .new is correctly handling this case
--- tests/tcg/hexagon/hvx_misc.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
tests/tcg/hexagon/hvx_misc.c +15 -1
@@ -1,5 +1,5 @@/* -* Copyright(c) 2021-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. +* Copyright(c) 2021-2024 Qualcomm Innovation Center, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by
@@ -231,6 +231,7 @@ static void test_masked_store(bool invert)static void test_new_value_store (void ) {void *p0 = buffer0; +void *p1 = buffer1;void *pout = output; asm("{\n\t"
@@ -242,6 +243,19 @@ static void test_new_value_store(void) expect[0 ] = buffer0[0 ];check_output_w (__LINE__,1 ); + +/* Test the .new read from the high half of a pair */ + asm("v7 = vmem(%0 + #0)\n\t" +"v12 = vmem(%1 + #0)\n\t" +"{\n\t" +" v5:4 = vcombine(v12, v7)\n\t" +" vmem(%2 + #0) = v5.new\n\t" +"}\n\t" + : :"r" (p0),"r" (p1),"r" (pout) :"v4" ,"v5" ,"v7" ,"v12" ,"memory" ); + + expect[0 ] = buffer1[0 ]; + +check_output_w (__LINE__,1 ); }static void test_max_temps ()
Signature · 1 line
2.34.1
PATCH 6/9 Hexagon (target/hexagon) Remove uses of op_regs_generated.h.inc
In reply to Taylor Simpson--- target/hexagon/opcodes.h | 4 -- target/hexagon/decode.c | 57 +++---------------------- target/hexagon/mmvec/decode_ext_mmvec.c | 34 +++------------ target/hexagon/opcodes.c | 28 ------------ 4 files changed, 13 insertions(+), 110 deletions(-)
target/hexagon/opcodes.h +0 -4
@@ -40,10 +40,6 @@ typedef enum {extern const char *const opcode_names[]; -extern const char *const opcode_reginfo[]; -extern const char *const opcode_rregs[]; -extern const char *const opcode_wregs[]; - typedef struct { const char * const encoding; const EncClass enc_class;
target/hexagon/decode.c +6 -51
80 lines not on this page · raw message
target/hexagon/mmvec/decode_ext_mmvec.c +7 -27
@@ -28,21 +28,15 @@ check_new_value(Packet *pkt) {/* .new value for a MMVector store */ int i, j; -const char *reginfo; -const char *destletters; -const char *dststr =NULL ;uint16_t def_opcode; -char letter;for (i =1 ; i < pkt->num_insns; i++) {uint16_t use_opcode = pkt->insn[i].opcode;if (GET_ATTRIB (use_opcode,A_DOTNEWVALUE ) &&GET_ATTRIB (use_opcode,A_CVI ) &&GET_ATTRIB (use_opcode,A_STORE )) { -int use_regidx =strchr (opcode_reginfo[use_opcode],'s' ) - - opcode_reginfo[use_opcode]; -g_assert (pkt->insn[i].new_read_idx !=-1 && - pkt->insn[i].new_read_idx == use_regidx); +int use_regidx = pkt->insn[i].new_read_idx; +g_assert (pkt->insn[i].new_read_idx !=-1 );/* * What's encoded at the N-field is the offset to who's producing * the value.
@@ -70,33 +64,19 @@ check_new_value(Packet *pkt)/* def_idx is the index of the producer */ def_opcode = pkt->insn[def_idx].opcode; - reginfo = opcode_reginfo[def_opcode]; - destletters ="dexy" ; -for (j =0 ; (letter = destletters[j]) !=0 ; j++) { - dststr =strchr (reginfo, letter); -if (dststr !=NULL ) { -break ; - } - } -if ((dststr ==NULL ) &&GET_ATTRIB (def_opcode,A_CVI_GATHER )) { +if ((pkt->insn[def_idx].dest_idx ==-1 ) && +GET_ATTRIB (def_opcode,A_CVI_GATHER )) { pkt->insn[i].regno[use_regidx] = def_oreg; pkt->insn[i].new_value_producer_slot = pkt->insn[def_idx].slot; }else { -if (dststr ==NULL ) { +if (pkt->insn[def_idx].dest_idx ==-1 ) {/* still not there, we have a bad packet */ g_assert_not_reached (); } -g_assert (pkt->insn[def_idx].dest_idx !=-1 && - pkt->insn[def_idx].dest_idx == dststr - reginfo); -int def_regnum = pkt->insn[def_idx].regno[dststr - reginfo]; +int def_regnum = + pkt->insn[def_idx].regno[pkt->insn[def_idx].dest_idx];/* Now patch up the consumer with the register number */ pkt->insn[i].regno[use_regidx] = def_regnum ^ def_oreg; -/* special case for (Vx,Vy) */ - dststr =strchr (reginfo,'y' ); -if (def_oreg &&strchr (reginfo,'x' ) && dststr) { - def_regnum = pkt->insn[def_idx].regno[dststr - reginfo]; - pkt->insn[i].regno[use_regidx] = def_regnum; - }/* * We need to remember who produces this value to later * check if it was dynamically cancelled
target/hexagon/opcodes.c +0 -28
@@ -36,34 +36,6 @@ const char * const opcode_names[] = {#undef OPCODE }; -const char *const opcode_reginfo[] = { -#define IMMINFO(TAG, SIGN, SIZE, SHAMT, SIGN2, SIZE2, SHAMT2) /* nothing */ -#define REGINFO(TAG, REGINFO, RREGS, WREGS) REGINFO, -#include "op_regs_generated.h.inc" -NULL -#undef REGINFO -#undef IMMINFO -}; - - -const char *const opcode_rregs[] = { -#define IMMINFO(TAG, SIGN, SIZE, SHAMT, SIGN2, SIZE2, SHAMT2) /* nothing */ -#define REGINFO(TAG, REGINFO, RREGS, WREGS) RREGS, -#include "op_regs_generated.h.inc" -NULL -#undef REGINFO -#undef IMMINFO -}; - - -const char *const opcode_wregs[] = { -#define IMMINFO(TAG, SIGN, SIZE, SHAMT, SIGN2, SIZE2, SHAMT2) /* nothing */ -#define REGINFO(TAG, REGINFO, RREGS, WREGS) WREGS, -#include "op_regs_generated.h.inc" -NULL -#undef REGINFO -#undef IMMINFO -};const char *const opcode_short_semantics[] = { #define DEF_SHORTCODE(TAG, SHORTCODE) [TAG] = #SHORTCODE,
Signature · 1 line
2.34.1
PATCH 7/9 Hexagon (target/hexagon) Remove gen_op_regs.py
In reply to Taylor Simpson--- target/hexagon/README | 1 - target/hexagon/gen_op_regs.py | 125 ---------------------------------- target/hexagon/meson.build | 14 +--- 3 files changed, 2 insertions(+), 138 deletions(-) delete mode 100755 target/hexagon/gen_op_regs.py
target/hexagon/README +0 -1
@@ -43,7 +43,6 @@ target/hexagon/gen_semantics.c. This step produces That file is consumed by the following python scripts to produce the indicated header files in <BUILD_DIR>/target/hexagon gen_opcodes_def.py -> opcodes_def_generated.h.inc - gen_op_regs.py -> op_regs_generated.h.inc gen_printinsn.py -> printinsn_generated.h.inc gen_op_attribs.py -> op_attribs_generated.h.inc gen_helper_protos.py -> helper_protos_generated.h.inc
target/hexagon/gen_op_regs.py deleted +0 -125
125 lines not on this page · raw message
target/hexagon/meson.build +2 -12
@@ -1,5 +1,5 @@ ## -## Copyright(c) 2020-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. +## Copyright(c) 2020-2024 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by
@@ -45,7 +45,6 @@ hexagon_ss.add(semantics_generated) # shortcode_generated.h.inc # tcg_func_table_generated.c.inc # printinsn_generated.h.inc -# op_regs_generated.h.inc # op_attribs_generated.h.inc # opcodes_def_generated.h.inc #
@@ -76,15 +75,6 @@ printinsn_generated = custom_target( ) hexagon_ss.add(printinsn_generated) -op_regs_generated = custom_target( - 'op_regs_generated.h.inc', - output: 'op_regs_generated.h.inc', - depends: [semantics_generated], - depend_files: [hex_common_py, attribs_def], - command: [python, files('gen_op_regs.py'), semantics_generated, attribs_def, '@OUTPUT@'], -) -hexagon_ss.add(op_regs_generated) - op_attribs_generated = custom_target( 'op_attribs_generated.h.inc', output: 'op_attribs_generated.h.inc',
@@ -110,7 +100,7 @@ hexagon_ss.add(opcodes_def_generated) # gen_dectree_import = executable( 'gen_dectree_import', - 'gen_dectree_import.c', opcodes_def_generated, op_regs_generated, + 'gen_dectree_import.c', opcodes_def_generated, native: true, build_by_default: false) iset_py = custom_target(
Signature · 1 line
2.34.1
PATCH 8/9 Hexagon (target/hexagon) Remove gen_shortcode.py
In reply to Taylor SimpsonThis data structure is not used
--- target/hexagon/opcodes.c | 7 ---- target/hexagon/README | 1 - target/hexagon/gen_shortcode.py | 63 --------------------------------- target/hexagon/meson.build | 10 ------ 4 files changed, 81 deletions(-) delete mode 100755 target/hexagon/gen_shortcode.py
target/hexagon/opcodes.c +0 -7
@@ -37,13 +37,6 @@ const char * const opcode_names[] = { }; -const char *const opcode_short_semantics[] = { -#define DEF_SHORTCODE(TAG, SHORTCODE) [TAG] = #SHORTCODE, -#include "shortcode_generated.h.inc" -#undef DEF_SHORTCODE -NULL -}; -DECLARE_BITMAP (opcode_attribs[XX_LAST_OPCODE ],A_ZZ_LASTATTRIB );static void init_attribs (int tag, ...)
target/hexagon/README +0 -1
@@ -46,7 +46,6 @@ header files in <BUILD_DIR>/target/hexagon gen_printinsn.py -> printinsn_generated.h.inc gen_op_attribs.py -> op_attribs_generated.h.inc gen_helper_protos.py -> helper_protos_generated.h.inc - gen_shortcode.py -> shortcode_generated.h.inc gen_tcg_funcs.py -> tcg_funcs_generated.c.inc gen_tcg_func_table.py -> tcg_func_table_generated.c.inc gen_helper_funcs.py -> helper_funcs_generated.c.inc
target/hexagon/gen_shortcode.py deleted +0 -63
63 lines not on this page · raw message
target/hexagon/meson.build +0 -10
@@ -42,21 +42,11 @@ hexagon_ss.add(semantics_generated) # # Step 2 # We use Python scripts to generate the following files -# shortcode_generated.h.inc # tcg_func_table_generated.c.inc # printinsn_generated.h.inc # op_attribs_generated.h.inc # opcodes_def_generated.h.inc # -shortcode_generated = custom_target( - 'shortcode_generated.h.inc', - output: 'shortcode_generated.h.inc', - depends: [semantics_generated], - depend_files: [hex_common_py, attribs_def], - command: [python, files('gen_shortcode.py'), semantics_generated, attribs_def, '@OUTPUT@'], -) -hexagon_ss.add(shortcode_generated) - tcg_func_table_generated = custom_target( 'tcg_func_table_generated.c.inc', output: 'tcg_func_table_generated.c.inc',
Signature · 1 line
2.34.1
PATCH 9/9 Hexagon (target/hexagon) Remove hex_common.read_attribs_file
In reply to Taylor SimpsonThe attribinfo data structure is not used
Adjust the command-line arguments to the python scripts Add hex_common.read_common_files for TCG/helper generation scripts
--- target/hexagon/gen_analyze_funcs.py | 21 ++------------- target/hexagon/gen_helper_funcs.py | 21 ++------------- target/hexagon/gen_helper_protos.py | 21 ++------------- target/hexagon/gen_idef_parser_funcs.py | 5 ++-- target/hexagon/gen_op_attribs.py | 5 ++-- target/hexagon/gen_opcodes_def.py | 4 +-- target/hexagon/gen_printinsn.py | 5 ++-- target/hexagon/gen_tcg_func_table.py | 5 ++-- target/hexagon/gen_tcg_funcs.py | 21 ++------------- target/hexagon/hex_common.py | 35 +++++++++++++++---------- target/hexagon/meson.build | 31 +++++++++++----------- 11 files changed, 54 insertions(+), 120 deletions(-)
target/hexagon/gen_analyze_funcs.py +2 -19
@@ -1,7 +1,7 @@ #!/usr/bin/env python3 ## -## Copyright(c) 2022-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. +## Copyright(c) 2022-2024 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by
@@ -67,24 +67,7 @@ def gen_analyze_func(f, tag, regs, imms): def main(): - hex_common.read_semantics_file(sys.argv[1]) - hex_common.read_attribs_file(sys.argv[2]) - hex_common.read_overrides_file(sys.argv[3]) - hex_common.read_overrides_file(sys.argv[4]) - ## Whether or not idef-parser is enabled is - ## determined by the number of arguments to - ## this script: - ## - ## 5 args. -> not enabled, - ## 6 args. -> idef-parser enabled. - ## - ## The 6:th arg. then holds a list of the successfully - ## parsed instructions. - is_idef_parser_enabled = len(sys.argv) > 6 - if is_idef_parser_enabled: - hex_common.read_idef_parser_enabled_file(sys.argv[5]) - hex_common.calculate_attribs() - hex_common.init_registers() + hex_common.read_common_files() tagregs = hex_common.get_tagregs() tagimms = hex_common.get_tagimms()
target/hexagon/gen_helper_funcs.py +2 -19
@@ -1,7 +1,7 @@ #!/usr/bin/env python3 ## -## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. +## Copyright(c) 2019-2024 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by
@@ -102,24 +102,7 @@ def gen_helper_function(f, tag, tagregs, tagimms): def main(): - hex_common.read_semantics_file(sys.argv[1]) - hex_common.read_attribs_file(sys.argv[2]) - hex_common.read_overrides_file(sys.argv[3]) - hex_common.read_overrides_file(sys.argv[4]) - ## Whether or not idef-parser is enabled is - ## determined by the number of arguments to - ## this script: - ## - ## 5 args. -> not enabled, - ## 6 args. -> idef-parser enabled. - ## - ## The 6:th arg. then holds a list of the successfully - ## parsed instructions. - is_idef_parser_enabled = len(sys.argv) > 6 - if is_idef_parser_enabled: - hex_common.read_idef_parser_enabled_file(sys.argv[5]) - hex_common.calculate_attribs() - hex_common.init_registers() + hex_common.read_common_files() tagregs = hex_common.get_tagregs() tagimms = hex_common.get_tagimms()
target/hexagon/gen_helper_protos.py +2 -19
@@ -1,7 +1,7 @@ #!/usr/bin/env python3 ## -## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. +## Copyright(c) 2019-2024 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by
@@ -44,24 +44,7 @@ def gen_helper_prototype(f, tag, tagregs, tagimms): def main(): - hex_common.read_semantics_file(sys.argv[1]) - hex_common.read_attribs_file(sys.argv[2]) - hex_common.read_overrides_file(sys.argv[3]) - hex_common.read_overrides_file(sys.argv[4]) - ## Whether or not idef-parser is enabled is - ## determined by the number of arguments to - ## this script: - ## - ## 5 args. -> not enabled, - ## 6 args. -> idef-parser enabled. - ## - ## The 6:th arg. then holds a list of the successfully - ## parsed instructions. - is_idef_parser_enabled = len(sys.argv) > 6 - if is_idef_parser_enabled: - hex_common.read_idef_parser_enabled_file(sys.argv[5]) - hex_common.calculate_attribs() - hex_common.init_registers() + hex_common.read_common_files() tagregs = hex_common.get_tagregs() tagimms = hex_common.get_tagimms()
target/hexagon/gen_idef_parser_funcs.py +2 -3
@@ -1,7 +1,7 @@ #!/usr/bin/env python3 ## -## Copyright(c) 2019-2023 rev.ng Labs Srl. All Rights Reserved. +## Copyright(c) 2019-2024 rev.ng Labs Srl. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by
@@ -44,13 +44,12 @@ ## def main(): hex_common.read_semantics_file(sys.argv[1]) - hex_common.read_attribs_file(sys.argv[2]) hex_common.calculate_attribs() hex_common.init_registers() tagregs = hex_common.get_tagregs() tagimms = hex_common.get_tagimms() - with open(sys.argv[3], "w") as f: + with open(sys.argv[-1], "w") as f: f.write('#include "macros.inc"\n\n') for tag in hex_common.tags:
target/hexagon/gen_op_attribs.py +2 -3
@@ -1,7 +1,7 @@ #!/usr/bin/env python3 ## -## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. +## Copyright(c) 2019-2024 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by
@@ -25,13 +25,12 @@ def main(): hex_common.read_semantics_file(sys.argv[1]) - hex_common.read_attribs_file(sys.argv[2]) hex_common.calculate_attribs() ## ## Generate all the attributes associated with each instruction ## - with open(sys.argv[3], "w") as f: + with open(sys.argv[-1], "w") as f: for tag in hex_common.tags: f.write( f"OP_ATTRIB({tag},ATTRIBS("
target/hexagon/gen_opcodes_def.py +2 -2
@@ -1,7 +1,7 @@ #!/usr/bin/env python3 ## -## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. +## Copyright(c) 2019-2024 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by
@@ -29,7 +29,7 @@ def main(): ## ## Generate a list of all the opcodes ## - with open(sys.argv[3], "w") as f: + with open(sys.argv[-1], "w") as f: for tag in hex_common.tags: f.write(f"OPCODE({tag}),\n")
target/hexagon/gen_printinsn.py +2 -3
@@ -1,7 +1,7 @@ #!/usr/bin/env python3 ## -## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. +## Copyright(c) 2019-2024 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by
@@ -97,11 +97,10 @@ def spacify(s): def main(): hex_common.read_semantics_file(sys.argv[1]) - hex_common.read_attribs_file(sys.argv[2]) immext_casere = re.compile(r"IMMEXT\(([A-Za-z])") - with open(sys.argv[3], "w") as f: + with open(sys.argv[-1], "w") as f: for tag in hex_common.tags: if not hex_common.behdict[tag]: continue
target/hexagon/gen_tcg_func_table.py +2 -3
@@ -1,7 +1,7 @@ #!/usr/bin/env python3 ## -## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. +## Copyright(c) 2019-2024 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by
@@ -25,12 +25,11 @@ def main(): hex_common.read_semantics_file(sys.argv[1]) - hex_common.read_attribs_file(sys.argv[2]) hex_common.calculate_attribs() tagregs = hex_common.get_tagregs() tagimms = hex_common.get_tagimms() - with open(sys.argv[3], "w") as f: + with open(sys.argv[-1], "w") as f: f.write("#ifndef HEXAGON_FUNC_TABLE_H\n") f.write("#define HEXAGON_FUNC_TABLE_H\n\n")
target/hexagon/gen_tcg_funcs.py +2 -19
@@ -1,7 +1,7 @@ #!/usr/bin/env python3 ## -## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. +## Copyright(c) 2019-2024 Qualcomm Innovation Center, Inc. All Rights Reserved. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by
@@ -108,24 +108,7 @@ def gen_def_tcg_func(f, tag, tagregs, tagimms): def main(): - hex_common.read_semantics_file(sys.argv[1]) - hex_common.read_attribs_file(sys.argv[2]) - hex_common.read_overrides_file(sys.argv[3]) - hex_common.read_overrides_file(sys.argv[4]) - hex_common.calculate_attribs() - hex_common.init_registers() - ## Whether or not idef-parser is enabled is - ## determined by the number of arguments to - ## this script: - ## - ## 5 args. -> not enabled, - ## 6 args. -> idef-parser enabled. - ## - ## The 6:th arg. then holds a list of the successfully - ## parsed instructions. - is_idef_parser_enabled = len(sys.argv) > 6 - if is_idef_parser_enabled: - hex_common.read_idef_parser_enabled_file(sys.argv[5]) + is_idef_parser_enabled = hex_common.read_common_files() tagregs = hex_common.get_tagregs() tagimms = hex_common.get_tagimms()
target/hexagon/hex_common.py +21 -14
@@ -26,7 +26,6 @@ semdict = {} # tag -> semantics attribdict = {} # tag -> attributes macros = {} # macro -> macro information... -attribinfo = {} # Register information and misc registers = {} # register -> register functions new_registers = {} tags = [] # list of all tags
@@ -257,19 +256,6 @@ def read_semantics_file(name): eval_line = "" -def read_attribs_file(name): - attribre = re.compile( - r"DEF_ATTRIB\(([A-Za-z0-9_]+), ([^,]*), " - + r'"([A-Za-z0-9_\.]*)", "([A-Za-z0-9_\.]*)"\)' - ) - for line in open(name, "rt").readlines(): - if not attribre.match(line): - continue - (attrib_base, descr, rreg, wreg) = attribre.findall(line)[0] - attrib_base = "A_" + attrib_base - attribinfo[attrib_base] = {"rreg": rreg, "wreg": wreg, "descr": descr} - - def read_overrides_file(name): overridere = re.compile(r"#define fGEN_TCG_([A-Za-z0-9_]+)\(.*") for line in open(name, "rt").readlines():
@@ -1143,3 +1129,24 @@ def helper_args(tag, regs, imms): "uint32_t part1" )) return args + + +def read_common_files(): + read_semantics_file(sys.argv[1]) + read_overrides_file(sys.argv[2]) + read_overrides_file(sys.argv[3]) + ## Whether or not idef-parser is enabled is + ## determined by the number of arguments to + ## this script: + ## + ## 4 args. -> not enabled, + ## 5 args. -> idef-parser enabled. + ## + ## The 5:th arg. then holds a list of the successfully + ## parsed instructions. + is_idef_parser_enabled = len(sys.argv) > 5 + if is_idef_parser_enabled: + read_idef_parser_enabled_file(sys.argv[4]) + calculate_attribs() + init_registers() + return is_idef_parser_enabled
target/hexagon/meson.build +15 -16
@@ -18,7 +18,6 @@ hexagon_ss = ss.source_set() hex_common_py = 'hex_common.py' -attribs_def = meson.current_source_dir() / 'attribs_def.h.inc' gen_tcg_h = meson.current_source_dir() / 'gen_tcg.h' gen_tcg_hvx_h = meson.current_source_dir() / 'gen_tcg_hvx.h' idef_parser_dir = meson.current_source_dir() / 'idef-parser'
@@ -51,8 +50,8 @@ tcg_func_table_generated = custom_target( 'tcg_func_table_generated.c.inc', output: 'tcg_func_table_generated.c.inc', depends: [semantics_generated], - depend_files: [hex_common_py, attribs_def], - command: [python, files('gen_tcg_func_table.py'), semantics_generated, attribs_def, '@OUTPUT@'], + depend_files: [hex_common_py], + command: [python, files('gen_tcg_func_table.py'), semantics_generated, '@OUTPUT@'], ) hexagon_ss.add(tcg_func_table_generated)
@@ -60,8 +59,8 @@ printinsn_generated = custom_target( 'printinsn_generated.h.inc', output: 'printinsn_generated.h.inc', depends: [semantics_generated], - depend_files: [hex_common_py, attribs_def], - command: [python, files('gen_printinsn.py'), semantics_generated, attribs_def, '@OUTPUT@'], + depend_files: [hex_common_py], + command: [python, files('gen_printinsn.py'), semantics_generated, '@OUTPUT@'], ) hexagon_ss.add(printinsn_generated)
@@ -69,8 +68,8 @@ op_attribs_generated = custom_target( 'op_attribs_generated.h.inc', output: 'op_attribs_generated.h.inc', depends: [semantics_generated], - depend_files: [hex_common_py, attribs_def], - command: [python, files('gen_op_attribs.py'), semantics_generated, attribs_def, '@OUTPUT@'], + depend_files: [hex_common_py], + command: [python, files('gen_op_attribs.py'), semantics_generated, '@OUTPUT@'], ) hexagon_ss.add(op_attribs_generated)
@@ -78,8 +77,8 @@ opcodes_def_generated = custom_target( 'opcodes_def_generated.h.inc', output: 'opcodes_def_generated.h.inc', depends: [semantics_generated], - depend_files: [hex_common_py, attribs_def], - command: [python, files('gen_opcodes_def.py'), semantics_generated, attribs_def, '@OUTPUT@'], + depend_files: [hex_common_py], + command: [python, files('gen_opcodes_def.py'), semantics_generated, '@OUTPUT@'], ) hexagon_ss.add(opcodes_def_generated)
@@ -278,7 +277,7 @@ if idef_parser_enabled and 'hexagon-linux-user' in target_dirs output: 'idef_parser_input.h.inc', depends: [semantics_generated], depend_files: [hex_common_py], - command: [python, files('gen_idef_parser_funcs.py'), semantics_generated, attribs_def, '@OUTPUT@'], + command: [python, files('gen_idef_parser_funcs.py'), semantics_generated, '@OUTPUT@'], ) preprocessed_idef_parser_input_generated = custom_target(
@@ -347,12 +346,12 @@ if idef_parser_enabled and 'hexagon-linux-user' in target_dirs # Setup input and dependencies for the next step, this depends on whether or # not idef-parser is enabled helper_dep = [semantics_generated, idef_generated_tcg_c, idef_generated_tcg] - helper_in = [semantics_generated, attribs_def, gen_tcg_h, gen_tcg_hvx_h, idef_generated_list] + helper_in = [semantics_generated, gen_tcg_h, gen_tcg_hvx_h, idef_generated_list] else # Setup input and dependencies for the next step, this depends on whether or # not idef-parser is enabled helper_dep = [semantics_generated] - helper_in = [semantics_generated, attribs_def, gen_tcg_h, gen_tcg_hvx_h] + helper_in = [semantics_generated, gen_tcg_h, gen_tcg_hvx_h] endif #
@@ -366,7 +365,7 @@ helper_protos_generated = custom_target( 'helper_protos_generated.h.inc', output: 'helper_protos_generated.h.inc', depends: helper_dep, - depend_files: [hex_common_py, attribs_def, gen_tcg_h, gen_tcg_hvx_h], + depend_files: [hex_common_py, gen_tcg_h, gen_tcg_hvx_h], command: [python, files('gen_helper_protos.py'), helper_in, '@OUTPUT@'], ) hexagon_ss.add(helper_protos_generated)
@@ -375,7 +374,7 @@ helper_funcs_generated = custom_target( 'helper_funcs_generated.c.inc', output: 'helper_funcs_generated.c.inc', depends: helper_dep, - depend_files: [hex_common_py, attribs_def, gen_tcg_h, gen_tcg_hvx_h], + depend_files: [hex_common_py, gen_tcg_h, gen_tcg_hvx_h], command: [python, files('gen_helper_funcs.py'), helper_in, '@OUTPUT@'], ) hexagon_ss.add(helper_funcs_generated)
@@ -384,7 +383,7 @@ tcg_funcs_generated = custom_target( 'tcg_funcs_generated.c.inc', output: 'tcg_funcs_generated.c.inc', depends: helper_dep, - depend_files: [hex_common_py, attribs_def, gen_tcg_h, gen_tcg_hvx_h], + depend_files: [hex_common_py, gen_tcg_h, gen_tcg_hvx_h], command: [python, files('gen_tcg_funcs.py'), helper_in, '@OUTPUT@'], ) hexagon_ss.add(tcg_funcs_generated)
@@ -393,7 +392,7 @@ analyze_funcs_generated = custom_target( 'analyze_funcs_generated.c.inc', output: 'analyze_funcs_generated.c.inc', depends: helper_dep, - depend_files: [hex_common_py, attribs_def, gen_tcg_h, gen_tcg_hvx_h], + depend_files: [hex_common_py, gen_tcg_h, gen_tcg_hvx_h], command: [python, files('gen_analyze_funcs.py'), helper_in, '@OUTPUT@'], ) hexagon_ss.add(analyze_funcs_generated)
Signature · 1 line
2.34.1