[sledge] Upgrade base to v0.12

Reviewed By: mbouaziz

Differential Revision: D14297867

fbshipit-source-id: 124b34243
master
Josh Berdine 6 years ago committed by Facebook Github Bot
parent 4a013f5bf6
commit 113df8b756

@ -8,6 +8,7 @@ build: [
["dune" "build" "-p" name "-j" jobs] ["dune" "build" "-p" name "-j" jobs]
] ]
depends: [ depends: [
"base" {>= "v0.12.0"}
"cmdliner" "cmdliner"
"core_kernel" {>= "v0.11.0"} "core_kernel" {>= "v0.11.0"}
"ctypes" "ctypes"

@ -8,6 +8,7 @@ build: [
["dune" "build" "-p" name "-j" jobs] ["dune" "build" "-p" name "-j" jobs]
] ]
depends: [ depends: [
"base" {>= "v0.12.0"}
"cmdliner" "cmdliner"
"core_kernel" {>= "v0.11.0"} "core_kernel" {>= "v0.11.0"}
"ctypes" "ctypes"

@ -16,7 +16,7 @@ Jbuild_plugin.V1.send
(name import) (name import)
(public_name llair.import) (public_name llair.import)
%s %s
(libraries core_kernel zarith %s)) (libraries core_kernel core_kernel.fheap zarith %s))
|} |}
(flags `lib deps) (flags `lib deps)
(libraries deps) (libraries deps)

@ -32,7 +32,6 @@ include (
external ( == ) : 'a -> 'a -> bool = "%eq" external ( == ) : 'a -> 'a -> bool = "%eq"
include Stdio include Stdio
module Fheap = Core_kernel.Fheap
module Hash_queue = Core_kernel.Hash_queue module Hash_queue = Core_kernel.Hash_queue
(** Tuple operations *) (** Tuple operations *)

@ -33,7 +33,6 @@ include module type of (
external ( == ) : 'a -> 'a -> bool = "%eq" external ( == ) : 'a -> 'a -> bool = "%eq"
include module type of Stdio include module type of Stdio
module Fheap = Core_kernel.Fheap
module Hash_queue = Core_kernel.Hash_queue module Hash_queue = Core_kernel.Hash_queue
(** Tuple operations *) (** Tuple operations *)

@ -456,7 +456,7 @@ let set_derived_metadata functions =
let compute_roots functions = let compute_roots functions =
let roots = FuncQ.create () in let roots = FuncQ.create () in
Array.iter functions ~f:(fun func -> Array.iter functions ~f:(fun func ->
FuncQ.enqueue_exn roots func.name.var func ) ; FuncQ.enqueue_back_exn roots func.name.var func ) ;
Array.iter functions ~f:(fun func -> Array.iter functions ~f:(fun func ->
Func.fold_term func ~init:() ~f:(fun () -> function Func.fold_term func ~init:() ~f:(fun () -> function
| Call {call= {dst}} -> ( | Call {call= {dst}} -> (
@ -494,7 +494,7 @@ let set_derived_metadata functions =
call.retreating <- true ) ; call.retreating <- true ) ;
jump return ; Option.iter ~f:jump throw jump return ; Option.iter ~f:jump throw
| Return _ | Throw _ | Unreachable -> () ) ; | Return _ | Throw _ | Unreachable -> () ) ;
BlockQ.enqueue_exn tips_to_roots src () BlockQ.enqueue_back_exn tips_to_roots src ()
in in
FuncQ.iter roots ~f:(fun root -> FuncQ.iter roots ~f:(fun root ->
visit Block_label.empty_set root root.entry ) ; visit Block_label.empty_set root root.entry ) ;

Loading…
Cancel
Save