OSDN Git Service

target/hexagon/idef-parser: Use gen_tmp for LPCFG
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Feb 2023 02:44:05 +0000 (16:44 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 5 Mar 2023 21:44:54 +0000 (13:44 -0800)
commit93f367bb7fd94a52c4ba9bcc8029881f6cab1bb0
tree9faf1e3a695c40a17d7e65b8c23d44216dda587e
parent2c3cee6bd75e8547b5266b8b688c9eeb0ae2211e
target/hexagon/idef-parser: Use gen_tmp for LPCFG

The GET_USR_FIELD macro initializes the output, so the initial assignment
of zero is discarded.  This is the only use of get_tmp_value outside of
parser-helper.c, so make it static.

Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/hexagon/idef-parser/idef-parser.y
target/hexagon/idef-parser/parser-helpers.c
target/hexagon/idef-parser/parser-helpers.h