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

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/gen/ir/tree-ops.spec
ViewVC logotype

Diff of /branches/vis15/src/compiler/gen/ir/tree-ops.spec

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

revision 3829, Thu May 5 21:05:37 2016 UTC revision 3830, Thu May 5 22:13:46 2016 UTC
# Line 23  Line 23 
23  RDiv : : 1 : 2 :  RDiv : : 1 : 2 :
24  RNeg : : 1 : 1 :  RNeg : : 1 : 1 :
25  #  #
26    # RClamp(lo, hi, x) -- clamps x to the range lo..hi
27    RClamp : : 1 : 3 : clamp argument to range
28    # RLerp(a, b, t) -- computes a + t*(b-a)
29    RLerp : : 1 : 3 : linear interpolation between 0 and 1
30    #
31  # comparisons (integer and scalar)  # comparisons (integer and scalar)
32  LT : ty : 1 : 2 :  LT : ty : 1 : 2 :
33  LTE : ty : 1 : 2 :  LTE : ty : 1 : 2 :
# Line 35  Line 40 
40  Max : ty : 1 : 2 :  Max : ty : 1 : 2 :
41  Min : ty : 1 : 2 :  Min : ty : 1 : 2 :
42  #  #
 # Clamp<ty>(lo, hi, x) -- clamps x to the range lo..hi  
 Clamp : ty : 1 : 3 : clamp argument to range  
 # Lerp<ty>(a, b, t) -- computes a + t*(b-a)  
 Lerp : ty : 1 : 3 : linear interpolation between 0 and 1  
 #  
43  # vector arithmetic operations (int is arity)  # vector arithmetic operations (int is arity)
44  VAdd   : int : 1 : 2 : vector addition  VAdd   : int : 1 : 2 : vector addition
45  VSub   : int : 1 : 2 : vector subtraction  VSub   : int : 1 : 2 : vector subtraction
# Line 48  Line 48 
48  VNeg   : int : 1 : 2 : vector negation  VNeg   : int : 1 : 2 : vector negation
49  VSum   : int : 1 : 1 : sum elements of a vector  VSum   : int : 1 : 1 : sum elements of a vector
50  #  #
51    # VClamp<d>(lo, hi, x) -- clamps x to the range lo..hi
52    VClamp : int : 1 : 3 : clamp argument to range
53    # VMapClamp<d>(lo, hi, x) -- clamps x[alpha] to the range lo[alpha]..hi[alpha], where
54    # x, lo, and hi are all d-element vectors
55    VMapClamp : int : 1 : 3 : clamp argument to range
56    # VLerp<d>(a, b, t) -- computes a + t*(b-a)
57    VLerp : int : 1 : 3 : linear interpolation between 0 and 1
58    #
59  ### tensor operations  ### tensor operations
60  #  #
61  # TensorIndex<ty,idxs>(T) returns the scalar T[idxs]  # TensorIndex<ty,idxs>(T) returns the scalar T[idxs]

Legend:
Removed from v.3829  
changed lines
  Added in v.3830

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