SCM Repository
[diderot] Diff of /branches/pure-cfg/src/compiler/c-target/tree-to-c.sml
Diff of /branches/pure-cfg/src/compiler/c-target/tree-to-c.sml
Parent Directory
|
Revision Log
|
Patch
240 |
| IL.E_Op(rator, args) => trOp (rator, trExps(env, args)) |
| IL.E_Op(rator, args) => trOp (rator, trExps(env, args)) |
241 |
| IL.E_Apply(f, args) => trApply(f, trExps(env, args)) |
| IL.E_Apply(f, args) => trApply(f, trExps(env, args)) |
242 |
| IL.E_Cons(Ty.TensorTy[n], args) => CL.mkApply(RN.mkVec n, trExps(env, args)) |
| IL.E_Cons(Ty.TensorTy[n], args) => CL.mkApply(RN.mkVec n, trExps(env, args)) |
243 |
|
| IL.E_Cons(ty, _) => raise Fail(concat["E_Cons(", Ty.toString ty, ", _) in expression"]) |
244 |
(* end case *)) |
(* end case *)) |
245 |
|
|
246 |
and trExps (env, exps) = List.map (fn exp => trExp(env, exp)) exps |
and trExps (env, exps) = List.map (fn exp => trExp(env, exp)) exps |
|
Legend:
Removed from v.832 |
|
changed lines |
|
Added in v.833 |
|
|