The FLOWGRAPH_GEN signature

Interface to support flowgraph generation.


Synopsis

signature FLOWGRAPH_GEN

Interface

structure F : FLOWGRAPH
structure C : CELLS
structure I : INSTRUCTIONS
structure P : INSN_PROPERTIES
structure T : MLTREE
structure Pu : PSEUDO_OPS
val defineLabel : Label.label -> unit
val pseudoOp : Pu.pseudo_op -> unit
val emitInstr : I.instruction -> unit
val exitBlock : T.mlrisc list -> unit
val endCluster : (int list * int Array.array ref list) -> unit
val beginCluster : unit -> unit

Description

structure F

structure C

structure I

structure P

structure T

structure Pu

defineLabel la
define a label in the flowgraph.

pseudoOp po
create a pseudo op in the flowgraph.

emitInstr in
either creates a new BBLOCK or adds the instruction to a BBLOCK that is being built locally.

exitBlock l
associates the list of live registers with the last code block. The last instruction is usually a branch with no targets. If not it is assumed to be a label that will be linked in at some later time. The call to exitBlock had better reflect the correct list of live registers that terminate the branch.

endCluster (l, l2)
cleans up all local references and tables. creates the final flowgraph and calls the continuation.

beginCluster ()
is currently a nop.


See Also

FLOWGRAPH, CELLS, INSTRUCTIONS, INSN_PROPERTIES, MLTREE, PSEUDO_OPS

  Submit a comment on this page  

[ INDEX | TOP | Parent | Root ]

Author: Lal George
Last Modified: October 17, 1996
Copyright © 1996 Bell Laboratories