Home My Page Projects Code Snippets Project Openings diderot

# SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/gen/ir/high-ir.spec
 [diderot] / branches / vis15 / src / compiler / gen / ir / high-ir.spec

# Diff of /branches/vis15/src/compiler/gen/ir/high-ir.spec

revision 3528, Tue Dec 22 16:48:44 2015 UTC revision 3529, Tue Dec 22 18:25:22 2015 UTC
# Line 1  Line 1
1  # specification of operators for HighIL version of the IR.  Each line (other than comments)  # specification of operators for HighIR version of the IR.  Each line (other than comments)
2  # specifies an operator using five fields, which are separated by ":".  The fields are  # specifies an operator using five fields, which are separated by ":".  The fields are
3  #       name  #       name
4  #       argument type           (optional)  #       argument type           (optional)
# Line 30  Line 30
30  Clamp : ty : 1 : 3 : clamp argument to range  Clamp : ty : 1 : 3 : clamp argument to range
31  # Lerp<ty>(a, b, t) -- computes a + t*(b-a)  # Lerp<ty>(a, b, t) -- computes a + t*(b-a)
32  Lerp : ty : 1 : 3 : linear interpolation between 0 and 1  Lerp : ty : 1 : 3 : linear interpolation between 0 and 1
33    #
34    ### vector operations
35    #
36  # Dist<ty>(T1,T2) -- computes the distance between T1 and T2.  (to be moved to Ein)  # Dist<ty>(T1,T2) -- computes the distance between T1 and T2.  (to be moved to Ein)
37  Dist : ty : 1: 2 :  Dist : ty : 1: 2 :
38  PrincipleEvec : ty : 1 : 2 : principle eigenvector; ty is result vector type  PrincipleEvec : ty : 1 : 2 : principle eigenvector; ty is result vector type
39  Eigen2x2 : : 1 : 1 : Eigenvector and values for 2x2 matrix  Eigen2x2 : : 1 : 1 : Eigenvector and values for 2x2 matrix
40  Eigen3x3 : : 1 : 1 : Eigenvector and values for 3x3 matrix  Eigen3x3 : : 1 : 1 : Eigenvector and values for 3x3 matrix
41  # Zero<ty>() -- zero tensor (until Zero is supported in Ein)  # Zero<ty>() -- zero tensor
42  Zero : ty : 1 : 0 : all zeros tensor  Zero : ty : 1 : 0 : all zeros tensor
43  TensorSlice : ty * mask : 1 : 1 : tensor slice; type is tensor argument type  TensorSlice : ty * mask : 1 : 1 : tensor slice; type is tensor argument type
44  TensorIndex : ty : 1 : * : tensor index (special case of slice)  TensorIndex : ty : 1 : * : tensor index (special case of slice)

Legend:
 Removed from v.3528 changed lines Added in v.3529