SCM Repository
View of /branches/pure-cfg/src/compiler/IL/gen/high-il.spec
Parent Directory
|
Revision Log
Revision 649 -
(download)
(annotate)
Fri Mar 18 15:47:56 2011 UTC (11 years, 3 months ago) by jhr
File size: 1786 byte(s)
Fri Mar 18 15:47:56 2011 UTC (11 years, 3 months ago) by jhr
File size: 1786 byte(s)
Started to add field normalization code to high-opt
# specification of operators for HighIL version of the IR. Each line (other than comments) # specifies an operator using four fields, which are separated by ":". The fields are # name # argument type (optional) # arity # comment (optional) # # type-indexed arithmetic operations Add : ty : 2 : Sub : ty : 2 : Mul : ty : 2 : Div : ty : 2 : Neg : ty : 1 : LT : ty : 2 : LTE : ty : 2 : EQ : ty : 2 : NEQ : ty : 2 : GT : ty : 2 : GTE : ty : 2 : Max : : 2 : Min : : 2 : Sin : : 1 : Cos : : 1 : Pow : : 2 : Not : : 1 : boolean negation # # tensor/vector operations # Dot : ty : 2 : Cross : : 2 : Norm : ty : 1 : Scale : ty : 2 : scalar*tensor multiplication InvScale : ty : 2 : tensor/scalar division CL : : 1 : linear anisotropy measures PrincipleEvec : ty : 2 : principle eigenvector; ty is result vector type Slice : ty * mask : 1 : tensor slice; type is tensor argument type Subscript : ty : * : tensor subscript (special case of slice) # # conversions IntToReal : : 1 : TruncToInt : : 1 : RoundToInt : : 1 : CeilToInt : : 1 : FloorToInt : : 1 : # # image/field operations Kernel : Kernel.kernel * int : 0 : Kernel<h, k>, where h is the kernel and k is level of differentiation LoadImage : ImageInfo.info : 1 : image-file loading Field : int : 2 : Field<d> is d-dimension reconstructed field; args are image, kernel Inside : int : 2 : args are position, field AddField : : 2 : field addition ScaleField : : 2 : field scaling NegField : : 1 : field negation DiffField : : 1 : field differentiation Probe : ty * ty : 2 : Probe<domTy, rngTy>(fld, pos) probes fld at pos. # # inputs Input : ty * string : 0 : InputWithDefault : ty * string : 1 :
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |