From dff22ef6d855973e0e0f05c7203a6bfa9a4cf01a Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Thu, 15 Jun 2017 15:11:26 +0200 Subject: Extend builtin arguments with a pointer addition operator This extension enables more addressing modes to be encoded as builtin arguments and used in conjunction with volatile memory accesses. Current status: x86 port only, the only new addressing mode handled is reg + offset. --- common/PrintAST.ml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/PrintAST.ml') diff --git a/common/PrintAST.ml b/common/PrintAST.ml index 48172dfd..ac7d2276 100644 --- a/common/PrintAST.ml +++ b/common/PrintAST.ml @@ -70,6 +70,9 @@ let rec print_builtin_arg px oc = function | BA_splitlong(hi, lo) -> fprintf oc "splitlong(%a, %a)" (print_builtin_arg px) hi (print_builtin_arg px) lo + | BA_addptr(a1, a2) -> + fprintf oc "addptr(%a, %a)" + (print_builtin_arg px) a1 (print_builtin_arg px) a2 let rec print_builtin_args px oc = function | [] -> () -- cgit