Skip to content

Commit 90ab0c6

Browse files
Document non-trivial function Code.constant_equal
Co-authored-by: Jérome Vouillon <[email protected]>
1 parent 3204c33 commit 90ab0c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/lib/code.mli

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ type constant =
185185
| Tuple of int * constant array * array_or_not
186186
| Int of int32
187187

188+
(** Guaranteed equality in terms of both OCaml [(=)]: if [constant_equal a b =
189+
Some v], then [Poly.(=) a b = v]. This is used for optimization purposes. *)
188190
val constant_equal : constant -> constant -> bool option
189191

190192
type loc =

0 commit comments

Comments
 (0)