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

SCM Repository

[diderot] View of /branches/pure-cfg/src/compiler/IL/HOWTO-ADD-NEW-PRIMOP
ViewVC logotype

View of /branches/pure-cfg/src/compiler/IL/HOWTO-ADD-NEW-PRIMOP

Parent Directory Parent Directory | Revision Log Revision Log


Revision 807 - (download) (annotate)
Tue Apr 12 15:41:18 2011 UTC (8 years, 11 months ago) by jhr
File size: 439 byte(s)
  Generalized dot product to inner product of tensor types.  Added IL support for
  vector-matrix, matrix-vector, and matrix-matrix multiplications.  Code generation
  and runtime support is still missing.
These are instructions for adding a new primitive operator to the IL.

  1) add it to the spec files in IL/gen and run gen.sh

  2) add rules for generating the type signature in the appropriate checking modules in
	high-il/check-high-il.sml
	mid-il/check-mid-il.sml
	low-il/check-low-il.sml

  3) add rules to translate the operator between ILs in
	high-to-mid/high-to-mid.sml
	mid-to-low/mid-to-low.sml

  4) add code generation support

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