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/PrintRTL.ml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backend/PrintRTL.ml') diff --git a/backend/PrintRTL.ml b/backend/PrintRTL.ml index 5c8347cb..ce2275cf 100644 --- a/backend/PrintRTL.ml +++ b/backend/PrintRTL.ml @@ -74,6 +74,10 @@ let print_instruction pp (pc, i) = fprintf pp "%a = %s(%a)\n" reg res (name_of_external ef) regs args; print_succ pp s (pc - 1) + | Iannot(ef, args, s) -> + fprintf pp "%s(%a)\n" + (name_of_external ef) (print_annot_args reg) args; + print_succ pp s (pc - 1) | Icond(cond, args, s1, s2) -> fprintf pp "if (%a) goto %d else goto %d\n" (PrintOp.print_condition reg) (cond, args) -- cgit