Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/charisee/src/compiler/c-util/c-names.sml
ViewVC logotype

Diff of /branches/charisee/src/compiler/c-util/c-names.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2869, Thu Feb 12 16:14:22 2015 UTC revision 2870, Wed Feb 25 21:47:43 2015 UTC
# Line 104  Line 104 
104    
105      (*-------------- Types --------------*)      (*-------------- Types --------------*)
106      (*Name for tensors in load and store*)      (*Name for tensors in load and store*)
107    
108    
109        (*type for generated functions*)
110        fun cfnTy  [1] = mkReal
111        | cfnTy  [n] = concat["Diderot_vec", iTos n, "_t"]
112        | cfnTy  [n,m] = concat["Diderot_Mat", Int.toString n,"x",iTos m, "_t"]
113    
114        fun LocalTy alpha=cfnTy alpha
115    (*
116      fun LocalTy  [1] = mkReal      fun LocalTy  [1] = mkReal
117        | LocalTy  [n] = (*concat["Diderot_vec", iTos n, "_t"]*)        | LocalTy  [n] = (*concat["Diderot_vec", iTos n, "_t"]*)
118          concat["vec",iTos n,"f_t"]          concat["vec",iTos n,"f_t"]
119        | LocalTy  [n,m] = concat["Diderot_Mat", Int.toString n,"x",iTos m, "_t"]        | LocalTy  [n,m] = concat["Diderot_Mat", Int.toString n,"x",iTos m, "_t"]
120    *)
121      fun unionTy d= String.concat["Diderot_union",iTos d,"_t"]      fun unionTy d= String.concat["Diderot_union",iTos d,"_t"]
122    
123    
124    
125      (*--------------val name --------------*)      (*--------------val name --------------*)
126      val NameFloor= "FLOOR"      val NameFloor= "FLOOR"
127      val NameSqrt ="SQRT"      val NameSqrt ="SQRT"
128        val NamePowInt ="pow"
129        val NamePowReal ="pow"
130      (*-------------- Store and load---------------*)      (*-------------- Store and load---------------*)
131      (*      (*
132       *removed support for storeAligned       *removed support for storeAligned

Legend:
Removed from v.2869  
changed lines
  Added in v.2870

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