-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flambda-backend: Basic uniqueness extension (#1552)
- Loading branch information
Showing
68 changed files
with
14,420 additions
and
8,969 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
open Types | ||
open Lambda | ||
let transl_alloc_mode alloc_mode = | ||
match Alloc_mode.constrain_lower alloc_mode with | ||
open Mode | ||
|
||
let transl_locality_mode locality = | ||
match Locality.constrain_lower locality with | ||
| Global -> alloc_heap | ||
| Local -> alloc_local | ||
|
||
let transl_modify_mode alloc_mode = | ||
match Alloc_mode.constrain_lower alloc_mode with | ||
let transl_alloc_mode mode = | ||
(* we only take the locality axis *) | ||
transl_locality_mode (Alloc.locality mode) | ||
|
||
let transl_modify_mode locality = | ||
match Locality.constrain_lower locality with | ||
| Global -> modify_heap | ||
| Local -> modify_maybe_stack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
val transl_alloc_mode : Types.alloc_mode -> Lambda.alloc_mode | ||
open Mode | ||
|
||
val transl_modify_mode : Types.alloc_mode -> Lambda.modify_mode | ||
val transl_locality_mode : Locality.t -> Lambda.locality_mode | ||
|
||
val transl_alloc_mode : Alloc.t -> Lambda.alloc_mode | ||
|
||
val transl_modify_mode : Locality.t -> Lambda.modify_mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.