X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Foptimize.h;h=6d8a6194e7e9f5d2076fa81938a75aff421e39c2;hb=d4257f651ab8341d926d97d5c85d72ce64f8778b;hp=a714a97a1b45ce49cf78a5c0fd4c69d2a4b6a661;hpb=188b3b2bf686aada8772475aabf899a0420cbd0f;p=libs%2Fgl.git diff --git a/source/glsl/optimize.h b/source/glsl/optimize.h index a714a97a..6d8a6194 100644 --- a/source/glsl/optimize.h +++ b/source/glsl/optimize.h @@ -181,6 +181,10 @@ private: static bool evaluate_relation(const char *, T, T); template static T evaluate_arithmetic(char, T, T); + template + static T evaluate_int_special_op(char, T, T); + template + void convert_to_result(const Variant &); void set_result(const Variant &, bool = false); virtual void visit(RefPtr &); @@ -275,6 +279,7 @@ private: Node *node; Assignment::Target target; std::vector used_by; + unsigned in_loop; AssignmentInfo(): node(0) { } }; @@ -301,6 +306,8 @@ private: bool r_side_effects; bool in_struct; bool composite_reference; + unsigned in_loop; + std::vector loop_ext_refs; Assignment::Target r_reference; std::set unused_nodes;