Tiny updates to documentation, comment for switch stuff.

This commit is contained in:
Matt Pharr
2012-01-12 05:55:42 -08:00
parent b60f8b4f70
commit 602209e5a8
2 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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);