SCM Repository
Annotation of /trunk/src/compiler/IL/gen/high-il.spec
Parent Directory
|
Revision Log
Revision 402 - (view) (download)
1 : | jhr | 186 | # specification of operators for HighIL version of the IR. Each line (other than comments) |
2 : | # specifies an operator using four fields, which are separated by ":". The fields are | ||
3 : | # name | ||
4 : | # argument type (optional) | ||
5 : | # arity | ||
6 : | # comment (optional) | ||
7 : | # | ||
8 : | # type-indexed arithmetic operations | ||
9 : | Add : ty : 2 : | ||
10 : | Sub : ty : 2 : | ||
11 : | Mul : ty : 2 : | ||
12 : | Div : ty : 2 : | ||
13 : | Neg : ty : 1 : | ||
14 : | LT : ty : 2 : | ||
15 : | LTE : ty : 2 : | ||
16 : | EQ : ty : 2 : | ||
17 : | NEQ : ty : 2 : | ||
18 : | GT : ty : 2 : | ||
19 : | GTE : ty : 2 : | ||
20 : | jhr | 400 | Max : : 2 : |
21 : | Min : : 2 : | ||
22 : | Sin : : 1 : | ||
23 : | Cos : : 1 : | ||
24 : | Pow : : 2 : | ||
25 : | Not : : 1 : boolean negation | ||
26 : | jhr | 186 | # |
27 : | jhr | 400 | # tensor/vector operations |
28 : | # | ||
29 : | jhr | 402 | Dot : ty : 2 : |
30 : | Cross : : 2 : | ||
31 : | jhr | 186 | Norm : ty : 1 : |
32 : | Scale : ty : 2 : scalar*tensor multiplication | ||
33 : | InvScale : ty : 2 : tensor/scalar division | ||
34 : | CL : : 1 : linear anisotropy measures | ||
35 : | PrincipleEvec : ty : 2 : principle eigenvector; ty is result vector type | ||
36 : | jhr | 400 | Slice : ty * mask : 1 : tensor slice; type is result type |
37 : | Subscript : ty : * : tensor subscript (special case of slice) | ||
38 : | jhr | 186 | # |
39 : | # conversions | ||
40 : | IntToReal : : 1 : | ||
41 : | TruncToInt : : 1 : | ||
42 : | RoundToInt : : 1 : | ||
43 : | CeilToInt : : 1 : | ||
44 : | FloorToInt : : 1 : | ||
45 : | # | ||
46 : | # image/field operations | ||
47 : | jhr | 195 | Kernel : Kernel.kernel : 0 : |
48 : | jhr | 226 | LoadImage : ImageInfo.info : 0 : image-file loading |
49 : | jhr | 197 | Convolve : : 2 : convolution |
50 : | jhr | 186 | Inside : : 2 : |
51 : | Field : FieldDef.field_def : 0 : | ||
52 : | jhr | 195 | AddField : : 2 : field addition |
53 : | ScaleField : : 2 : field scaling | ||
54 : | NegField : : 1 : field negation | ||
55 : | DiffField : : 1 : field differentiation | ||
56 : | jhr | 186 | Probe : : 2 : |
57 : | jhr | 226 | # |
58 : | # inputs | ||
59 : | Input : string : 0 : | ||
60 : | InputWithDefault : string : 1 : |
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |