Import Upstream version 20180207
[hcoop/debian/mlton.git] / mlton / codegen / x86-codegen / x86-simplify.sig
CommitLineData
7f918cf1
CE
1(* Copyright (C) 2009 Matthew Fluet.
2 * Copyright (C) 1999-2008 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_SIMPLIFY_STRUCTS =
11 sig
12 structure x86 : X86
13 structure x86Liveness : X86_LIVENESS
14 sharing x86 = x86Liveness.x86
15 structure x86JumpInfo : X86_JUMP_INFO
16 sharing x86 = x86JumpInfo.x86
17 structure x86EntryTransfer : X86_ENTRY_TRANSFER
18 sharing x86 = x86EntryTransfer.x86
19 end
20
21signature X86_SIMPLIFY =
22 sig
23 include X86_SIMPLIFY_STRUCTS
24
25 val simplify : {chunk : x86.Chunk.t,
26 optimize : int,
27 delProfileLabel : x86.ProfileLabel.t -> unit,
28 liveInfo : x86Liveness.LiveInfo.t,
29 jumpInfo : x86JumpInfo.t} -> x86.Chunk.t
30
31 val simplify_totals : unit -> unit
32 end