Import Upstream version 20180207
[hcoop/debian/mlton.git] / mlton / codegen / x86-codegen / x86-loop-info.sig
CommitLineData
7f918cf1
CE
1(* Copyright (C) 2009 Matthew Fluet.
2 * Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
3 * Jagannathan, and Stephen Weeks.
4 * Copyright (C) 1997-2000 NEC Research Institute.
5 *
6 * MLton is released under a BSD-style license.
7 * See the file MLton-LICENSE for details.
8 *)
9
10signature X86_LOOP_INFO_STRUCTS =
11 sig
12 structure x86 : X86
13 end
14
15signature X86_LOOP_INFO =
16 sig
17 include X86_LOOP_INFO_STRUCTS
18
19 type t
20
21 val createLoopInfo : {chunk: x86.Chunk.t, farLoops: bool} -> t
22 val createLoopInfo_msg : unit -> unit
23
24 val getLoopDistance : t * x86.Label.t * x86.Label.t -> int option
25 val getLoopLabels : t * x86.Label.t -> x86.Label.t list
26 val isLoopHeader : t * x86.Label.t -> bool
27 end