Skip to content

Commit

Permalink
feat: Add signature_pruning pass (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed May 11, 2022
1 parent 54b03fd commit 206b6cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/passes.ml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ let safe_heap = "safe-heap"
(** sets specified globals to specified values *)
let set_globals = "set-globals"

(** remove params from function signature types where possible *)
let signature_pruning = "signature-pruning"

(** apply more specific subtypes to signature types where possible *)
let signature_refining = "signature-refining"

Expand Down
3 changes: 3 additions & 0 deletions src/passes.mli
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ val safe_heap : t
val set_globals : t
(** sets specified globals to specified values *)

val signature_pruning : t
(** remove params from function signature types where possible *)

val signature_refining : t
(** apply more specific subtypes to signature types where possible *)

Expand Down

0 comments on commit 206b6cf

Please sign in to comment.