+
+ /** Resolves references and expression types. */
+ void resolve(Stage &);
+
+ bool validate(Stage &);
+
+ /** Applies optimizations to a stage. The return value indicates which
+ stage should be optimized next. */
+ OptimizeResult optimize(Stage &);
+
+ /** Performs final adjustments on a stage after compilation. */