SCM Repository
Annotation of /trunk/src/compiler/IL/gen/low-il.spec
Parent Directory
|
Revision Log
Revision 347 - (view) (download)
1 : | jhr | 347 | # specification of operators for LowIL version of the IR. Each line (other than comments) |
2 : | lamonts | 344 | # 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 : | Not : : 1 : boolean negation | ||
21 : | Max : : 2 : | ||
22 : | Min : : 2 : | ||
23 : | Sin : : 1 : | ||
24 : | Cos : : 1 : | ||
25 : | Pow : : 2 : | ||
26 : | # vector operations | ||
27 : | Dot : ty : 2 : | ||
28 : | Cross : : 2 : | ||
29 : | Select : int : 1 : | ||
30 : | Norm : ty : 1 : | ||
31 : | Scale : ty : 2 : scalar*vector multiplication | ||
32 : | InvScale : ty : 2 : vector/scalar division | ||
33 : | CL : : 1 : linear anisotropy measures | ||
34 : | PrincipleEvec : ty : 2 : principle eigenvector; ty is result vector type | ||
35 : | Subscript : ty : 2 : | ||
36 : | Floor : int : 1 : compute real floor of a vector | ||
37 : | # | ||
38 : | # conversions | ||
39 : | IntToReal : : 1 : | ||
40 : | TruncToInt : int : 1 : | ||
41 : | RoundToInt : int : 1 : | ||
42 : | CeilToInt : int : 1 : | ||
43 : | FloorToInt : int : 1 : | ||
44 : | # | ||
45 : | # image/kernel operations | ||
46 : | LoadVoxels : RawTypes.ty * int : 1 : load a vector of voxel values from an address | ||
47 : | LoadImage : ImageInfo.info : 0 : image-file loading | ||
48 : | Inside : : 2 : | ||
49 : | # | ||
50 : | # inputs | ||
51 : | Input : string : 0 : | ||
52 : | InputWithDefault : string : 1 : |
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |