Mercurial > urweb
view src/cache.sml @ 2276:c05f9a5e0f0f
Progress on free paths, but consolidation seems to fail more with them.
author | Ziv Scully <ziv@mit.edu> |
---|---|
date | Mon, 09 Nov 2015 13:37:31 -0500 |
parents | af1585e7d645 |
children | 0bdfec16a01d |
line wrap: on
line source
structure Cache = struct type cache = {(* Takes a query ID and parameters (and, for store, the value to store) and gives an FFI call that checks, stores, or flushes the relevant entry. The parameters are strings for check and store and optional strings for flush because some parameters might not be fixed. *) check : int * Mono.exp list -> Mono.exp', store : int * Mono.exp list * Mono.exp -> Mono.exp', flush : int * Mono.exp list -> Mono.exp', (* Generates C needed for FFI calls in check, store, and flush. *) setupGlobal : Print.PD.pp_desc, setupQuery : {index : int, params : int} -> Print.PD.pp_desc} end