Tiny updates to documentation, comment for switch stuff.
This commit is contained in:
@@ -1142,7 +1142,7 @@ in C:
|
|||||||
|
|
||||||
* Expression syntax and basic types
|
* Expression syntax and basic types
|
||||||
* Syntax for variable declarations
|
* Syntax for variable declarations
|
||||||
* Control flow structures: if, for, while, do
|
* Control flow structures: ``if``, ``for``, ``while``, ``do``, and ``switch``.
|
||||||
* Pointers, including function pointers, ``void *``, and C's array/pointer
|
* Pointers, including function pointers, ``void *``, and C's array/pointer
|
||||||
duality (arrays are converted to pointers when passed to functions, etc.)
|
duality (arrays are converted to pointers when passed to functions, etc.)
|
||||||
* Structs and arrays
|
* Structs and arrays
|
||||||
@@ -1186,7 +1186,6 @@ but are likely to be supported in future releases:
|
|||||||
``int64`` types
|
``int64`` types
|
||||||
* Character constants
|
* Character constants
|
||||||
* String constants and arrays of characters as strings
|
* String constants and arrays of characters as strings
|
||||||
* ``switch`` statements
|
|
||||||
* ``goto`` statements are partially supported (see `Unstructured Control Flow: "goto"`_)
|
* ``goto`` statements are partially supported (see `Unstructured Control Flow: "goto"`_)
|
||||||
* ``union`` types
|
* ``union`` types
|
||||||
* Bitfield members of ``struct`` types
|
* Bitfield members of ``struct`` types
|
||||||
|
|||||||
2
stmt.cpp
2
stmt.cpp
@@ -2156,7 +2156,7 @@ SwitchStmt::TypeCheck() {
|
|||||||
// within a switch with a "uniform" condition, we promote the condition
|
// within a switch with a "uniform" condition, we promote the condition
|
||||||
// to varying so that everything works out and we are set to handle the
|
// to varying so that everything works out and we are set to handle the
|
||||||
// resulting divergent control flow. This is somewhat sub-optimal; see
|
// resulting divergent control flow. This is somewhat sub-optimal; see
|
||||||
// Issue #XXX for details.
|
// https://github.com/ispc/ispc/issues/156 for details.
|
||||||
bool isUniform = (exprType->IsUniformType() &&
|
bool isUniform = (exprType->IsUniformType() &&
|
||||||
lHasVaryingBreakOrContinue(stmts) == false);
|
lHasVaryingBreakOrContinue(stmts) == false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user