aboutsummaryrefslogtreecommitdiffstats
path: root/riscV/Machregsaux.mli
diff options
context:
space:
mode:
Diffstat (limited to 'riscV/Machregsaux.mli')
-rw-r--r--riscV/Machregsaux.mli18
1 files changed, 18 insertions, 0 deletions
diff --git a/riscV/Machregsaux.mli b/riscV/Machregsaux.mli
new file mode 100644
index 00000000..9404568d
--- /dev/null
+++ b/riscV/Machregsaux.mli
@@ -0,0 +1,18 @@
+(* *********************************************************************)
+(* *)
+(* The Compcert verified compiler *)
+(* *)
+(* Xavier Leroy, INRIA Paris-Rocquencourt *)
+(* *)
+(* Copyright Institut National de Recherche en Informatique et en *)
+(* Automatique. All rights reserved. This file is distributed *)
+(* under the terms of the INRIA Non-Commercial License Agreement. *)
+(* *)
+(* *********************************************************************)
+
+(** Auxiliary functions on machine registers *)
+
+val name_of_register: Machregs.mreg -> string option
+val register_by_name: string -> Machregs.mreg option
+val is_scratch_register: string -> bool
+val can_reserve_register: Machregs.mreg -> bool