Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add [Proc.destroyed_at_reloadretaddr] #2065

Merged
merged 1 commit into from Oct 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions Changes
Expand Up @@ -428,15 +428,18 @@ Working version
use [Backend_var.With_provenance] for variables in binding position.
(Mark Shinwell, review by Pierre Chambart)

- GPR#2060: "Phantom let" support for the Clambda language.
(Mark Shinwell, review by Vincent Laviron)

- GPR#2065: Add [Proc.destroyed_at_reloadretaddr].
(Mark Shinwell, review by Damien Doligez)

- GPR#2072: Always associate a scope to a type
(Thomas Refis, review by Jacques Garrigue and Leo White)

- GPR#2074: Correct naming of record field inside [Ialloc] terms.
(Mark Shinwell, review by Jérémie Dimino)

- GPR#2060: "Phantom let" support for the Clambda language.
(Mark Shinwell, review by Vincent Laviron)

- GPR#2076: Add [Targetint.print].
(Mark Shinwell)

Expand Down
2 changes: 2 additions & 0 deletions asmcomp/amd64/proc.ml
Expand Up @@ -335,6 +335,8 @@ let destroyed_at_oper = function

let destroyed_at_raise = all_phys_regs

let destroyed_at_reloadretaddr = [| |]

(* Maximal register pressure *)


Expand Down
4 changes: 4 additions & 0 deletions asmcomp/arm/proc.ml
Expand Up @@ -308,6 +308,10 @@ let destroyed_at_oper = function

let destroyed_at_raise = all_phys_regs

(* lr is destroyed at [Lreloadretaddr], but lr is not used for register
allocation, and thus does not need to (and indeed cannot) occur here. *)
let destroyed_at_reloadretaddr = [| |]

(* Maximal register pressure *)

let safe_register_pressure = function
Expand Down
2 changes: 2 additions & 0 deletions asmcomp/arm64/proc.ml
Expand Up @@ -223,6 +223,8 @@ let destroyed_at_oper = function

let destroyed_at_raise = all_phys_regs

let destroyed_at_reloadretaddr = [| |]

(* Maximal register pressure *)

let safe_register_pressure = function
Expand Down
2 changes: 2 additions & 0 deletions asmcomp/i386/proc.ml
Expand Up @@ -212,6 +212,8 @@ let destroyed_at_oper = function

let destroyed_at_raise = all_phys_regs

let destroyed_at_reloadretaddr = [| |]

(* Maximal register pressure *)

let safe_register_pressure _op = 4
Expand Down
2 changes: 2 additions & 0 deletions asmcomp/power/proc.ml
Expand Up @@ -313,6 +313,8 @@ let destroyed_at_oper = function

let destroyed_at_raise = all_phys_regs

let destroyed_at_reloadretaddr = [| phys_reg 11 |]

(* Maximal register pressure *)

let safe_register_pressure = function
Expand Down
1 change: 1 addition & 0 deletions asmcomp/proc.mli
Expand Up @@ -56,6 +56,7 @@ val max_register_pressure: Mach.operation -> int array
(* Registers destroyed by operations *)
val destroyed_at_oper: Mach.instruction_desc -> Reg.t array
val destroyed_at_raise: Reg.t array
val destroyed_at_reloadretaddr : Reg.t array

(* Volatile registers: those that change value when read *)
val regs_are_volatile: Reg.t array -> bool
Expand Down
4 changes: 4 additions & 0 deletions asmcomp/s390x/proc.ml
Expand Up @@ -199,6 +199,10 @@ let destroyed_at_oper = function

let destroyed_at_raise = all_phys_regs

(* %r14 is destroyed at [Lreloadretaddr], but %r14 is not used for register
allocation, and thus does not need to (and indeed cannot) occur here. *)
let destroyed_at_reloadretaddr = [| |]

(* Maximal register pressure *)

let safe_register_pressure = function
Expand Down