From a5ffc59246b09a389e5f8cbc2f217e323e76990f Mon Sep 17 00:00:00 2001 From: xleroy Date: Mon, 13 Jun 2011 18:11:19 +0000 Subject: Revised handling of annotation statements, and more generally built-in functions, and more generally external functions git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1672 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- backend/PrintLTL.ml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'backend/PrintLTL.ml') diff --git a/backend/PrintLTL.ml b/backend/PrintLTL.ml index cce00f6..3bfd803 100644 --- a/backend/PrintLTL.ml +++ b/backend/PrintLTL.ml @@ -20,11 +20,10 @@ open AST open Integers open Locations open LTL +open PrintAST open PrintOp open PrintRTL -let name_of_typ = function Tint -> "int" | Tfloat -> "float" - let loc pp l = match l with | R r -> @@ -78,6 +77,10 @@ let print_instruction pp (pc, i) = | Ltailcall(sg, fn, args) -> fprintf pp "tailcall %a(%a)@ " ros fn locs args + | Lbuiltin(ef, args, res, s) -> + fprintf pp "%a = builtin %s(%a)@ " + loc res (name_of_external ef) locs args; + print_succ pp s (Int32.pred pc) | Lcond(cond, args, s1, s2) -> fprintf pp "if (%a) goto %ld else goto %ld@ " (print_condition loc) (cond, args) -- cgit v1.2.3