diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2015-03-27 08:55:05 +0100 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2015-03-27 08:55:05 +0100 |
commit | 4622f49fd089ae47d0c853343cb0a05f986c962a (patch) | |
tree | bd045e1ef59d57f8e4b5f5734470cae56a4e68b7 /backend/Liveness.v | |
parent | 8d75ab2d38fa20dc7d8e3839967015cc276cd642 (diff) | |
download | compcert-4622f49fd089ae47d0c853343cb0a05f986c962a.tar.gz compcert-4622f49fd089ae47d0c853343cb0a05f986c962a.zip |
Extend annotations so that they can keep track of global variables and local variables whose address is taken.
- CminorSel, RTL: add "annot" instructions.
- CminorSel to Asm: use type "annot_arg" for arguments of "annot" instructions.
- AST, Events: simplify EF_annot because constants are now part of the arguments.
Implementation is not complete yet.
Diffstat (limited to 'backend/Liveness.v')
-rw-r--r-- | backend/Liveness.v | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/Liveness.v b/backend/Liveness.v index 3a5bde97..ce1a798a 100644 --- a/backend/Liveness.v +++ b/backend/Liveness.v @@ -93,6 +93,8 @@ Definition transfer reg_list_live args (reg_sum_live ros Regset.empty) | Ibuiltin ef args res s => reg_list_live args (reg_dead res after) + | Iannot ef args s => + reg_list_live (params_of_annot_args args) after | Icond cond args ifso ifnot => reg_list_live args after | Ijumptable arg tbl => |