Граф коммитов

156 Коммитов

Автор SHA1 Сообщение Дата
Lei Zhang c8ff1681be [spirv] Support unary operators: ++, --, !, +, - (#497)
* [spirv] Translate prefix/postfix increment/decrement

* [spirv] Translate unary operator !, +, and -
2017-08-01 09:10:48 -07:00
Ehsan e6685a310d [spirv] Translate intrinsic dot product. (#496)
The translation supports dot product of vectors of floats using
SPIR-V's OpDot.

The translation also supports dot product of vectros of integers
using multiplication and addition.
2017-07-31 18:09:02 -07:00
Lei Zhang 399e987298 [spirv] Translate bitwise operators (#495)
* Covers ~, &, |, ^, <<, >>, &=, |=, ^=, <<=, >>=
* For int/uint and vector of int/uint
2017-07-31 16:14:59 -07:00
Lei Zhang 660a367778 [spirv] Vector types, variable initializers, and comparison (#488)
* [spirv] Translate vector types and handle variable initializers

* Translated vector types and operations on vector types
  * +, -, *, /, % on vector <op> vector and vector <op> scalar
  * Prefix increment on vectors
  * < on vector <op> vector and vector <op> scalar
* Covered both constant initializer and variable initializer
* Applied constant modifier to variables

* [spirv] Translate all comparision operators

* Covers <, <=, >, >=, ==, !=
* For both scalars and vectors
* Also update docs about arithmetic and comparison operators
2017-07-31 09:13:45 -07:00
Lei Zhang dc240f47e7 [spirv] Translate non-entry functions and function calls (#487) 2017-07-28 08:59:49 -07:00
Lei Zhang 9cab7fd909 Add doc for SPIR-V codegen (#215) 2017-04-14 18:18:21 -07:00