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

SCM Repository

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

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

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

revision 349, Fri Sep 24 00:24:20 2010 UTC revision 1444, Mon Jul 11 12:11:53 2011 UTC
# Line 11  Line 11 
11  Mul : ty : 2 :  Mul : ty : 2 :
12  Div : ty : 2 :  Div : ty : 2 :
13  Neg : ty : 1 :  Neg : ty : 1 :
14    Abs : ty : 1 :
15  LT : ty : 2 :  LT : ty : 2 :
16  LTE : ty : 2 :  LTE : ty : 2 :
17  EQ : ty : 2 :  EQ : ty : 2 :
# Line 20  Line 21 
21  Not : : 1 : boolean negation  Not : : 1 : boolean negation
22  Max : : 2 :  Max : : 2 :
23  Min : : 2 :  Min : : 2 :
24  Sin : : 1 :  # Clamp<ty>(lo, hi, x) -- clamps x to the range lo..hi
25  Cos : : 1 :  Clamp : ty : 3 : clamp argument to range
26  Pow : : 2 :  # Lerp<ty>(a, b, t) -- computes a + t*(b-a)
27    Lerp : ty : 3 : linear interpolation between 0 and 1
28  #  #
29  ### vector operations  ### vector operations
30  # Dot<n>(u, v)  -- computes dot product of u and v; n specifies u and v's arity  # Dot<n>(u, v)  -- computes dot product of u and v; n specifies u and v's arity
31  Dot : int : 2 :  Dot : int : 2 :
32    # MulVecMat<m,n>(v, M) -- computes v*M, where M is an mxn-matrix and v is an m-vector
33    MulVecMat : int * int : 2 : vector times matrix multiplication
34    # MulMatVec<m,n>(M, v) -- computes M*v, where M is an mxn-matrix and v is a n-vector
35    MulMatVec : int * int : 2 : matrix times vector multiplication (type is matrix type)
36    # MulMatMat<m,n,p>(M, N) -- computes M*N, where M is an mxn-matrix and N is an nxp-matrix
37    MulMatMat : int * int * int : 2 : matrix times matrix multiplication
38  # Cross(u, v)   -- computes cross product of u and v  # Cross(u, v)   -- computes cross product of u and v
39  Cross : : 2 :  Cross : : 2 :
40  # 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)
41  Select : int * int : 1 :  Select : ty * int : 1 :
42  # Norm<n>(u)   -- computes length of vector u; n specifies u's arity  # Norm<ty>(x) -- returns the norm of the tensor x, which has type ty
43  Norm : int : 1 :  Norm : ty : 1 :
44  # Scale<n>(s,u) -- multiply scalar s time vector u; n specifies u's arity  # Normalize<n>(v)   -- returns the unit vector in direction u; n is the length ov u
45  Scale : int : 2 : scalar*vector multiplication  Normalize : int : 1 :
46  # InvScale<n>(s,u) -- divide vector u by scalar s; n specifies u's arity  # Scale<ty>(s,u) -- multiply scalar s time tensor u; ty specifies u's type
47  InvScale : int : 2 : vector/scalar division  Scale : ty : 2 : scalar*tensor multiplication
 CL : : 1 : linear anisotropy measures  
48  PrincipleEvec : ty : 2 : principle eigenvector; ty is result vector type  PrincipleEvec : ty : 2 : principle eigenvector; ty is result vector type
49    # Identity<n>() -- nxn identity matrix
50    Identity : int : 0 : identity matrix
51    # Zero<ty>() -- zero tensor
52    Zero : ty : 0 : identity matrix
53    # Trace<n>(m) -- computes trace of nxn matrix m
54    Trace : int : 1 : compute trace of matrix
55  Subscript : ty : 2 :  Subscript : ty : 2 :
56    #
57    # compute integral parts of reals
58    Ceiling : int : 1 : compute real ceiling of a vector
59  Floor : int : 1 : compute real floor of a vector  Floor : int : 1 : compute real floor of a vector
60    Round : int : 1 : compute real rounding to nearest integral real of a vector
61    Trunc : int : 1 : compute real truncation to integral real of a vector
62  #  #
63  ### conversions  ### conversions; the real to int forms are vector ops
64  IntToReal : : 1 :  IntToReal : : 1 :
65  TruncToInt : int : 1 :  RealToInt : int : 1 : cast real vector to int vector
 RoundToInt : int : 1 :  
 CeilToInt : int : 1 :  
 FloorToInt : int : 1 :  
66  #  #
67  ### image/kernel operations  ### image/kernel operations
68  # VoxelAddress<V>(i, j, ...) -- compute the address of the voxel data indexed by i, j, ...  # VoxelAddress<I,offset>(V, i, j, ...) -- compute the address of the voxel data indexed by i, j, ...
69  VoxelAddress : ImageInfo.info : * : compute the address of a voxel  # for non-scalar images, the offset specifies which sample and I specifies the stride.
70  LoadVoxels : RawTypes.ty * int : 1 : load a vector of voxel values from an address  VoxelAddress : ImageInfo.info * int : * : compute the address of a voxel
71  # Transform<V>(u) -- transforms the world-space vector u into the image-space specified by V.  # LoadVoxels<I,n>(a) -- load a vector of n voxels from the address a
72  Transform : ImageInfo.info : 1 : transform a position to image-space  LoadVoxels : ImageInfo.info * int : 1 : load a vector of voxel values from an address
73    # PosToImgSpace<I>(V,u) -- transforms the world-space position u into the image-space specified by V.
74    PosToImgSpace : ImageInfo.info : 2 : transform a world-space position to image-space
75    # TensorToWorldSpace<I,ty>(V,u) -- transforms the image-space tensor u to from V's image space to world space
76    TensorToWorldSpace : ImageInfo.info * ty : 2 : transform an image-space gradient to world-space
77  # 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.
78  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
79  LoadImage : ImageInfo.info : 0 : image-file loading  LoadImage : ImageInfo.info : 1 : image-file loading
80  # ImageInfo<V>(u) -- tests to see if world-space position u is inside the volume occupied by the image V.  # Inside<I,s>(u,V) -- tests to see if image-space position u is inside the volume
81  Inside : ImageInfo.info : 1 :  # occupied by the image V.  I is the image info and s is the border width
82    Inside : ImageInfo.info * int : 2 :
83  #  #
84  # inputs  # inputs
85  Input : string : 0 :  Input            : ty * string * string  : 0 :
86  InputWithDefault : string : 1 :  InputWithDefault : ty * string * string  : 1 :

Legend:
Removed from v.349  
changed lines
  Added in v.1444

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