From 4622f49fd089ae47d0c853343cb0a05f986c962a Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Fri, 27 Mar 2015 08:55:05 +0100 Subject: 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. --- backend/Unusedglob.v | 1 + 1 file changed, 1 insertion(+) (limited to 'backend/Unusedglob.v') diff --git a/backend/Unusedglob.v b/backend/Unusedglob.v index 55a093a4..400c19d9 100644 --- a/backend/Unusedglob.v +++ b/backend/Unusedglob.v @@ -60,6 +60,7 @@ Definition ref_instruction (i: instruction) : list ident := | Itailcall _ (inl r) _ => nil | Itailcall _ (inr id) _ => id :: nil | Ibuiltin ef _ _ _ => globals_external ef + | Iannot _ args _ => globals_of_annot_args args | Icond cond _ _ _ => nil | Ijumptable _ _ => nil | Ireturn _ => nil -- cgit