diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-01-29 10:55:52 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-03-01 07:33:27 -1000 |
commit | f57c69156cb7489a2850b1ace255616b90ba7f14 (patch) | |
tree | 99cf684d94d46f1c377754d96685fe527f6accd3 /include/tcg | |
parent | 4d89d0bb8f01060b18f94d84c2dcea573bdd1381 (diff) | |
download | qemu-f57c69156cb7489a2850b1ace255616b90ba7f14.zip qemu-f57c69156cb7489a2850b1ace255616b90ba7f14.tar.gz qemu-f57c69156cb7489a2850b1ace255616b90ba7f14.tar.bz2 |
tcg: Rename TEMP_LOCAL to TEMP_TB
Use TEMP_TB as that is more explicit about the default
lifetime of the data. While "global" and "local" used
to be contrasting, we have more lifetimes than that now.
Do not yet rename tcg_temp_local_new_*, just the enum.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/tcg')
-rw-r--r-- | include/tcg/tcg.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/tcg/tcg.h b/include/tcg/tcg.h index 59854f9..2010e74 100644 --- a/include/tcg/tcg.h +++ b/include/tcg/tcg.h @@ -433,11 +433,15 @@ typedef enum TCGTempVal { typedef enum TCGTempKind { /* Temp is dead at the end of all basic blocks. */ TEMP_NORMAL, - /* Temp is live across conditional branch, but dead otherwise. */ + /* + * Temp is dead at the end of the extended basic block (EBB), + * the single-entry multiple-exit region that falls through + * conditional branches. + */ TEMP_EBB, - /* Temp is saved across basic blocks but dead at the end of TBs. */ - TEMP_LOCAL, - /* Temp is saved across both basic blocks and translation blocks. */ + /* Temp is live across the entire translation block, but dead at end. */ + TEMP_TB, + /* Temp is live across the entire translation block, and between them. */ TEMP_GLOBAL, /* Temp is in a fixed register. */ TEMP_FIXED, |