aboutsummaryrefslogtreecommitdiffstats
path: root/kvx/Machregsaux.mli
diff options
context:
space:
mode:
Diffstat (limited to 'kvx/Machregsaux.mli')
-rw-r--r--kvx/Machregsaux.mli20
1 files changed, 20 insertions, 0 deletions
diff --git a/kvx/Machregsaux.mli b/kvx/Machregsaux.mli
new file mode 100644
index 00000000..d7117c21
--- /dev/null
+++ b/kvx/Machregsaux.mli
@@ -0,0 +1,20 @@
+(* *********************************************************************)
+(* *)
+(* 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
+
+val class_of_type: AST.typ -> int