Backward incompatible: Turn on PureOperatorBuiltins: use only enum-based built-in...
authorJohn Kessenich <cepheus@frii.com>
Wed, 19 Aug 2015 19:34:18 +0000 (13:34 -0600)
committerJohn Kessenich <cepheus@frii.com>
Wed, 19 Aug 2015 19:43:25 +0000 (13:43 -0600)
commitfc51d284aae35e6ab6f15b1439eff7b674214165
tree9c750ac9e5288d56fbc225ab69bb5e52dfbcb5fc
parenta32d8f620d686619418029b5117d20a45e357d22
Backward incompatible: Turn on PureOperatorBuiltins: use only enum-based built-in functions in the AST.

If this breaks your AST consumer, best is to modify it to test
against the enum values instead of doing string comparisons on
built-in function names.  This is the reason the change was made.

If you need the old behavior, you should be able to get it back by changing
PureOperatorBuiltins to be false instead of true.  This path will work for
a while, but is marked deprecated.

Also, the old behavior is tagged as release 2.4.
41 files changed:
SPIRV/GlslangToSpv.cpp
Test/baseResults/100.frag.out
Test/baseResults/120.frag.out
Test/baseResults/120.vert.out
Test/baseResults/130.frag.out
Test/baseResults/130.vert.out
Test/baseResults/140.vert.out
Test/baseResults/150.frag.out
Test/baseResults/300.frag.out
Test/baseResults/300.vert.out
Test/baseResults/300block.frag.out
Test/baseResults/310.comp.out
Test/baseResults/310.frag.out
Test/baseResults/310.vert.out
Test/baseResults/400.frag.out
Test/baseResults/420.geom.out
Test/baseResults/420.vert.out
Test/baseResults/430.vert.out
Test/baseResults/450.frag.out
Test/baseResults/aggOps.frag.out
Test/baseResults/conditionalDiscard.frag.out
Test/baseResults/deepRvalue.frag.out
Test/baseResults/localAggregates.frag.out
Test/baseResults/newTexture.frag.out
Test/baseResults/pointCoord.frag.out
Test/baseResults/precision.frag.out
Test/baseResults/precision.vert.out
Test/baseResults/spv.atomic.comp.out
Test/baseResults/spv.test.vert.out
Test/baseResults/structAssignment.frag.out
Test/baseResults/structDeref.frag.out
Test/baseResults/structure.frag.out
Test/baseResults/test.frag.out
Test/baseResults/texture.frag.out
Test/baseResults/uint.frag.out
Test/baseResults/variableArrayIndex.frag.out
Test/baseResults/varyingArray.frag.out
Test/baseResults/varyingArrayIndirect.frag.out
Test/spv.test.vert
glslang/Include/revision.h
glslang/MachineIndependent/Initialize.cpp