Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/branches/idlbasis-devel/src/MLRISC/alpha/instructions/alphaExpandCopies.sml
ViewVC logotype

View of /sml/branches/idlbasis-devel/src/MLRISC/alpha/instructions/alphaExpandCopies.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 859 - (download) (annotate)
Wed Jun 27 21:43:12 2001 UTC (21 years, 3 months ago) by blume
File size: 561 byte(s)
merged changes from main trunk;
some typos etc. fixed (but still does not compile yet)
(*
 * Expand copies 
 *
 * -- Allen
 *)
functor AlphaExpandCopies(AlphaShuffle : ALPHASHUFFLE) : EXPAND_COPIES =
struct

   structure I = AlphaShuffle.I

   fun expandCopies(I.COPY{dst, src, tmp, ...}) = 
         AlphaShuffle.shuffle{tmp=tmp, dst=dst, src=src}
     | expandCopies(I.FCOPY{dst, src, tmp, ...}) = 
         AlphaShuffle.shufflefp{tmp=tmp, dst=dst, src=src}
     | expandCopies(I.ANNOTATION{i,a}) = 
         (case expandCopies i of
           []    => []
         | i::is => I.ANNOTATION{i=i,a=a}::is
         )
     | expandCopies i = [i]

end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0