Home My Page Projects Code Snippets Project Openings diderot

# SCM Repository

[diderot] Diff of /branches/vis12/src/compiler/gen/il/mid-il.spec
 [diderot] / branches / vis12 / src / compiler / gen / il / mid-il.spec

# Diff of /branches/vis12/src/compiler/gen/il/mid-il.spec

revision 349, Fri Sep 24 00:24:20 2010 UTC revision 457, Wed Oct 27 12:08:13 2010 UTC
# Line 29  Line 29
29  Dot : int : 2 :  Dot : int : 2 :
30  # Cross(u, v)   -- computes cross product of u and v  # Cross(u, v)   -- computes cross product of u and v
31  Cross : : 2 :  Cross : : 2 :
32  # Select<n,i>(u)  -- select ith element of vector u; n specifies u's arity  # Select<ty,i>(u)  -- select ith element of vector u; ty specifies u's type (IVec or Vec)
33  Select : int * int : 1 :  Select : ty * int : 1 :
34  # Norm<n>(u)   -- computes length of vector u; n specifies u's arity  # Norm<n>(u)   -- computes length of vector u; n specifies u's arity
35  Norm : int : 1 :  Norm : int : 1 :
36  # Scale<n>(s,u) -- multiply scalar s time vector u; n specifies u's arity  # Scale<n>(s,u) -- multiply scalar s time vector u; n specifies u's arity
# Line 42  Line 42
42  Subscript : ty : 2 :  Subscript : ty : 2 :
43  Floor : int : 1 : compute real floor of a vector  Floor : int : 1 : compute real floor of a vector
44  #  #
45  ### conversions  ### conversions; the real to int forms are vector ops
46  IntToReal : : 1 :  IntToReal : : 1 :
47  TruncToInt : int : 1 :  TruncToInt : int : 1 :
48  RoundToInt : int : 1 :  RoundToInt : int : 1 :
# Line 53  Line 53
53  # VoxelAddress<V>(i, j, ...) -- compute the address of the voxel data indexed by i, j, ...  # VoxelAddress<V>(i, j, ...) -- compute the address of the voxel data indexed by i, j, ...
54  VoxelAddress : ImageInfo.info : * : compute the address of a voxel  VoxelAddress : ImageInfo.info : * : compute the address of a voxel
55  LoadVoxels : RawTypes.ty * int : 1 : load a vector of voxel values from an address  LoadVoxels : RawTypes.ty * int : 1 : load a vector of voxel values from an address
56  # Transform<V>(u) -- transforms the world-space vector u into the image-space specified by V.  # PosToImgSpace<V>(u) -- transforms the world-space position u into the image-space specified by V.
57  Transform : ImageInfo.info : 1 : transform a position to image-space  PosToImgSpace : ImageInfo.info : 1 : transform a world-space position to image-space
58    # GradToWorldSpace<V>(u) -- transforms the image-space gradient vector u to world space
59    GradToWorldSpace : ImageInfo.info : 1 : transform an image-space gradient to world-space
60  # EvalKernel<i,h,k>(u) -- computes (D^k h)(u), where i is the size of vector u.  # EvalKernel<i,h,k>(u) -- computes (D^k h)(u), where i is the size of vector u.
61  EvalKernel : int * Kernel.kernel * int : 1 : apply a kernel function to a scalar or vector of arguments  EvalKernel : int * Kernel.kernel * int : 1 : apply a kernel function to a scalar or vector of arguments