aboutsummaryrefslogtreecommitdiffstats
path: root/riscV/Machregsaux.ml
blob: e3e479468291e0d4450b05fdb33c7e15d5a96eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(* *********************************************************************)
(*                                                                     *)
(*              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 *)

let is_scratch_register r = false
                                              
let class_of_type = function
  | AST.Tint | AST.Tlong -> 0
  | AST.Tfloat | AST.Tsingle -> 1
  | AST.Tany32 | AST.Tany64 -> assert false

let nr_regs = [| 26; 32|]