Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (37 sloc) 1.372 kb
(*
Copyright © 2011 MLstate
This file is part of OPA.
OPA is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.
OPA is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
more details.
You should have received a copy of the GNU Affero General Public License
along with OPA. If not, see <http://www.gnu.org/licenses/>.
*)
(**
Flat Compiler : VTable generation
@author Mathieu Barbin
*)
(**
Compile time management of vtable generation.
The type flatruntime.VTable.t can be shared.
As long as we need to introduce new vtalbe in the code,
we use this module for getting either a new vtable, which means
its definition, and the variable for accessing it.
*)
(**
The type you should give for building a vtable.
The expr is on ocaml expression containing an identifier
pointing on the shared field corresponding to the label.
*)
type vtable = Flat_Field.label list
val vtable :
vtable ->
Flat_Common.shared_variable
(**
The module should be restarted before each compilation unit.
*)
val reset : unit -> unit
Jump to Line
Something went wrong with that request. Please try again.