glslang AST output: include global vs. temp (local) in the printed output. This only effects test results, but a future check-in is going to fix some globals.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30973 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2015-04-29 10:16:56 +00:00
parent bcef333a78
commit 8b37b04ecc
130 changed files with 15103 additions and 15104 deletions

View File

@@ -29,41 +29,41 @@ max_vertices = 127
input primitive = triangles
output primitive = none
ERROR: node is still EOpNull!
0:3 Function Definition: main( (void)
0:3 Function Definition: main( (global void)
0:3 Function Parameters:
0:5 Sequence
0:5 EmitStreamVertex (void)
0:5 EmitStreamVertex (global void)
0:5 Constant:
0:5 1 (const int)
0:6 EndStreamPrimitive (void)
0:6 EndStreamPrimitive (global void)
0:6 Constant:
0:6 0 (const int)
0:7 EmitVertex (void)
0:8 EndPrimitive (void)
0:7 EmitVertex (global void)
0:8 EndPrimitive (global void)
0:9 Sequence
0:9 move second child to first child (int)
0:9 'id' (int)
0:9 move second child to first child (temp int)
0:9 'id' (temp int)
0:9 'gl_InvocationID' (in int)
0:23 Function Definition: foo( (void)
0:23 Function Definition: foo( (global void)
0:23 Function Parameters:
0:25 Sequence
0:25 Constant:
0:25 1 (const int)
0:26 gl_Position: direct index for structure (in 4-component vector of float)
0:26 direct index (block{in 4-component vector of float gl_Position, in float gl_PointSize})
0:26 direct index (temp block{in 4-component vector of float gl_Position, in float gl_PointSize})
0:26 'gl_in' (in 3-element array of block{in 4-component vector of float gl_Position, in float gl_PointSize})
0:26 Constant:
0:26 1 (const int)
0:26 Constant:
0:26 0 (const int)
0:34 Function Definition: foo2( (void)
0:34 Function Definition: foo2( (global void)
0:34 Function Parameters:
0:36 Sequence
0:36 Constant:
0:36 1 (const int)
0:37 Constant:
0:37 3 (const int)
0:46 Function Definition: foo3( (void)
0:46 Function Definition: foo3( (global void)
0:46 Function Parameters:
0:48 Sequence
0:48 Constant:
@@ -74,97 +74,97 @@ ERROR: node is still EOpNull!
0:50 3 (const int)
0:51 Constant:
0:51 3 (const int)
0:75 Function Definition: bits( (void)
0:75 Function Definition: bits( (global void)
0:75 Function Parameters:
0:? Sequence
0:78 move second child to first child (2-component vector of uint)
0:78 'u2' (2-component vector of uint)
0:78 Function Call: uaddCarry(vu2;vu2;vu2; (2-component vector of uint)
0:78 'u2' (2-component vector of uint)
0:78 'u2' (2-component vector of uint)
0:78 'u2' (2-component vector of uint)
0:80 move second child to first child (uint)
0:80 'u1' (uint)
0:80 Function Call: usubBorrow(u1;u1;u1; (uint)
0:80 'u1' (uint)
0:80 'u1' (uint)
0:80 'u1' (uint)
0:82 Function Call: umulExtended(vu4;vu4;vu4;vu4; (void)
0:82 'u4' (4-component vector of uint)
0:82 'u4' (4-component vector of uint)
0:82 'u4' (4-component vector of uint)
0:82 'u4' (4-component vector of uint)
0:84 Function Call: imulExtended(vi4;vi4;vi4;vi4; (void)
0:84 'i4' (4-component vector of int)
0:84 'i4' (4-component vector of int)
0:84 'i4' (4-component vector of int)
0:84 'i4' (4-component vector of int)
0:86 move second child to first child (int)
0:86 'i1' (int)
0:86 Function Call: bitfieldExtract(i1;i1;i1; (int)
0:86 'i1' (int)
0:78 move second child to first child (temp 2-component vector of uint)
0:78 'u2' (temp 2-component vector of uint)
0:78 Function Call: uaddCarry(vu2;vu2;vu2; (global 2-component vector of uint)
0:78 'u2' (temp 2-component vector of uint)
0:78 'u2' (temp 2-component vector of uint)
0:78 'u2' (temp 2-component vector of uint)
0:80 move second child to first child (temp uint)
0:80 'u1' (temp uint)
0:80 Function Call: usubBorrow(u1;u1;u1; (global uint)
0:80 'u1' (temp uint)
0:80 'u1' (temp uint)
0:80 'u1' (temp uint)
0:82 Function Call: umulExtended(vu4;vu4;vu4;vu4; (global void)
0:82 'u4' (temp 4-component vector of uint)
0:82 'u4' (temp 4-component vector of uint)
0:82 'u4' (temp 4-component vector of uint)
0:82 'u4' (temp 4-component vector of uint)
0:84 Function Call: imulExtended(vi4;vi4;vi4;vi4; (global void)
0:84 'i4' (temp 4-component vector of int)
0:84 'i4' (temp 4-component vector of int)
0:84 'i4' (temp 4-component vector of int)
0:84 'i4' (temp 4-component vector of int)
0:86 move second child to first child (temp int)
0:86 'i1' (temp int)
0:86 Function Call: bitfieldExtract(i1;i1;i1; (global int)
0:86 'i1' (temp int)
0:86 Constant:
0:86 4 (const int)
0:86 Constant:
0:86 5 (const int)
0:88 move second child to first child (3-component vector of uint)
0:88 'u3' (3-component vector of uint)
0:88 Function Call: bitfieldExtract(vu3;i1;i1; (3-component vector of uint)
0:88 'u3' (3-component vector of uint)
0:88 move second child to first child (temp 3-component vector of uint)
0:88 'u3' (temp 3-component vector of uint)
0:88 Function Call: bitfieldExtract(vu3;i1;i1; (global 3-component vector of uint)
0:88 'u3' (temp 3-component vector of uint)
0:88 Constant:
0:88 4 (const int)
0:88 Constant:
0:88 5 (const int)
0:90 move second child to first child (3-component vector of int)
0:90 'i3' (3-component vector of int)
0:90 Function Call: bitfieldInsert(vi3;vi3;i1;i1; (3-component vector of int)
0:90 'i3' (3-component vector of int)
0:90 'i3' (3-component vector of int)
0:90 move second child to first child (temp 3-component vector of int)
0:90 'i3' (temp 3-component vector of int)
0:90 Function Call: bitfieldInsert(vi3;vi3;i1;i1; (global 3-component vector of int)
0:90 'i3' (temp 3-component vector of int)
0:90 'i3' (temp 3-component vector of int)
0:90 Constant:
0:90 4 (const int)
0:90 Constant:
0:90 5 (const int)
0:91 move second child to first child (uint)
0:91 'u1' (uint)
0:91 Function Call: bitfieldInsert(u1;u1;i1;i1; (uint)
0:91 'u1' (uint)
0:91 'u1' (uint)
0:91 move second child to first child (temp uint)
0:91 'u1' (temp uint)
0:91 Function Call: bitfieldInsert(u1;u1;i1;i1; (global uint)
0:91 'u1' (temp uint)
0:91 'u1' (temp uint)
0:91 Constant:
0:91 4 (const int)
0:91 Constant:
0:91 5 (const int)
0:93 move second child to first child (2-component vector of int)
0:93 'i2' (2-component vector of int)
0:93 Function Call: bitfieldReverse(vi2; (2-component vector of int)
0:93 'i2' (2-component vector of int)
0:94 move second child to first child (4-component vector of uint)
0:94 'u4' (4-component vector of uint)
0:94 Function Call: bitfieldReverse(vu4; (4-component vector of uint)
0:94 'u4' (4-component vector of uint)
0:95 move second child to first child (int)
0:95 'i1' (int)
0:95 Function Call: bitCount(i1; (int)
0:95 'i1' (int)
0:96 move second child to first child (3-component vector of int)
0:96 'i3' (3-component vector of int)
0:96 Function Call: bitCount(vu3; (3-component vector of int)
0:96 'u3' (3-component vector of uint)
0:97 move second child to first child (2-component vector of int)
0:97 'i2' (2-component vector of int)
0:97 Function Call: findLSB(vi2; (2-component vector of int)
0:97 'i2' (2-component vector of int)
0:98 move second child to first child (4-component vector of int)
0:98 'i4' (4-component vector of int)
0:98 Function Call: findLSB(vu4; (4-component vector of int)
0:98 'u4' (4-component vector of uint)
0:99 move second child to first child (int)
0:99 'i1' (int)
0:99 Function Call: findMSB(i1; (int)
0:99 'i1' (int)
0:100 move second child to first child (2-component vector of int)
0:100 'i2' (2-component vector of int)
0:100 Function Call: findMSB(vu2; (2-component vector of int)
0:100 'u2' (2-component vector of uint)
0:93 move second child to first child (temp 2-component vector of int)
0:93 'i2' (temp 2-component vector of int)
0:93 Function Call: bitfieldReverse(vi2; (global 2-component vector of int)
0:93 'i2' (temp 2-component vector of int)
0:94 move second child to first child (temp 4-component vector of uint)
0:94 'u4' (temp 4-component vector of uint)
0:94 Function Call: bitfieldReverse(vu4; (global 4-component vector of uint)
0:94 'u4' (temp 4-component vector of uint)
0:95 move second child to first child (temp int)
0:95 'i1' (temp int)
0:95 Function Call: bitCount(i1; (global int)
0:95 'i1' (temp int)
0:96 move second child to first child (temp 3-component vector of int)
0:96 'i3' (temp 3-component vector of int)
0:96 Function Call: bitCount(vu3; (global 3-component vector of int)
0:96 'u3' (temp 3-component vector of uint)
0:97 move second child to first child (temp 2-component vector of int)
0:97 'i2' (temp 2-component vector of int)
0:97 Function Call: findLSB(vi2; (global 2-component vector of int)
0:97 'i2' (temp 2-component vector of int)
0:98 move second child to first child (temp 4-component vector of int)
0:98 'i4' (temp 4-component vector of int)
0:98 Function Call: findLSB(vu4; (global 4-component vector of int)
0:98 'u4' (temp 4-component vector of uint)
0:99 move second child to first child (temp int)
0:99 'i1' (temp int)
0:99 Function Call: findMSB(i1; (global int)
0:99 'i1' (temp int)
0:100 move second child to first child (temp 2-component vector of int)
0:100 'i2' (temp 2-component vector of int)
0:100 Function Call: findMSB(vu2; (global 2-component vector of int)
0:100 'u2' (temp 2-component vector of uint)
0:? Linker Objects
0:? 'bn' (in 3-element array of block{in int a})
0:? 'gl_in' (in 3-element array of block{in 4-component vector of float gl_Position, in float gl_PointSize})
@@ -195,41 +195,41 @@ max_vertices = 127
input primitive = triangles
output primitive = none
ERROR: node is still EOpNull!
0:3 Function Definition: main( (void)
0:3 Function Definition: main( (global void)
0:3 Function Parameters:
0:5 Sequence
0:5 EmitStreamVertex (void)
0:5 EmitStreamVertex (global void)
0:5 Constant:
0:5 1 (const int)
0:6 EndStreamPrimitive (void)
0:6 EndStreamPrimitive (global void)
0:6 Constant:
0:6 0 (const int)
0:7 EmitVertex (void)
0:8 EndPrimitive (void)
0:7 EmitVertex (global void)
0:8 EndPrimitive (global void)
0:9 Sequence
0:9 move second child to first child (int)
0:9 'id' (int)
0:9 move second child to first child (temp int)
0:9 'id' (temp int)
0:9 'gl_InvocationID' (in int)
0:23 Function Definition: foo( (void)
0:23 Function Definition: foo( (global void)
0:23 Function Parameters:
0:25 Sequence
0:25 Constant:
0:25 1 (const int)
0:26 gl_Position: direct index for structure (in 4-component vector of float)
0:26 direct index (block{in 4-component vector of float gl_Position, in float gl_PointSize})
0:26 direct index (temp block{in 4-component vector of float gl_Position, in float gl_PointSize})
0:26 'gl_in' (in 3-element array of block{in 4-component vector of float gl_Position, in float gl_PointSize})
0:26 Constant:
0:26 1 (const int)
0:26 Constant:
0:26 0 (const int)
0:34 Function Definition: foo2( (void)
0:34 Function Definition: foo2( (global void)
0:34 Function Parameters:
0:36 Sequence
0:36 Constant:
0:36 1 (const int)
0:37 Constant:
0:37 3 (const int)
0:46 Function Definition: foo3( (void)
0:46 Function Definition: foo3( (global void)
0:46 Function Parameters:
0:48 Sequence
0:48 Constant:
@@ -240,97 +240,97 @@ ERROR: node is still EOpNull!
0:50 3 (const int)
0:51 Constant:
0:51 3 (const int)
0:75 Function Definition: bits( (void)
0:75 Function Definition: bits( (global void)
0:75 Function Parameters:
0:? Sequence
0:78 move second child to first child (2-component vector of uint)
0:78 'u2' (2-component vector of uint)
0:78 Function Call: uaddCarry(vu2;vu2;vu2; (2-component vector of uint)
0:78 'u2' (2-component vector of uint)
0:78 'u2' (2-component vector of uint)
0:78 'u2' (2-component vector of uint)
0:80 move second child to first child (uint)
0:80 'u1' (uint)
0:80 Function Call: usubBorrow(u1;u1;u1; (uint)
0:80 'u1' (uint)
0:80 'u1' (uint)
0:80 'u1' (uint)
0:82 Function Call: umulExtended(vu4;vu4;vu4;vu4; (void)
0:82 'u4' (4-component vector of uint)
0:82 'u4' (4-component vector of uint)
0:82 'u4' (4-component vector of uint)
0:82 'u4' (4-component vector of uint)
0:84 Function Call: imulExtended(vi4;vi4;vi4;vi4; (void)
0:84 'i4' (4-component vector of int)
0:84 'i4' (4-component vector of int)
0:84 'i4' (4-component vector of int)
0:84 'i4' (4-component vector of int)
0:86 move second child to first child (int)
0:86 'i1' (int)
0:86 Function Call: bitfieldExtract(i1;i1;i1; (int)
0:86 'i1' (int)
0:78 move second child to first child (temp 2-component vector of uint)
0:78 'u2' (temp 2-component vector of uint)
0:78 Function Call: uaddCarry(vu2;vu2;vu2; (global 2-component vector of uint)
0:78 'u2' (temp 2-component vector of uint)
0:78 'u2' (temp 2-component vector of uint)
0:78 'u2' (temp 2-component vector of uint)
0:80 move second child to first child (temp uint)
0:80 'u1' (temp uint)
0:80 Function Call: usubBorrow(u1;u1;u1; (global uint)
0:80 'u1' (temp uint)
0:80 'u1' (temp uint)
0:80 'u1' (temp uint)
0:82 Function Call: umulExtended(vu4;vu4;vu4;vu4; (global void)
0:82 'u4' (temp 4-component vector of uint)
0:82 'u4' (temp 4-component vector of uint)
0:82 'u4' (temp 4-component vector of uint)
0:82 'u4' (temp 4-component vector of uint)
0:84 Function Call: imulExtended(vi4;vi4;vi4;vi4; (global void)
0:84 'i4' (temp 4-component vector of int)
0:84 'i4' (temp 4-component vector of int)
0:84 'i4' (temp 4-component vector of int)
0:84 'i4' (temp 4-component vector of int)
0:86 move second child to first child (temp int)
0:86 'i1' (temp int)
0:86 Function Call: bitfieldExtract(i1;i1;i1; (global int)
0:86 'i1' (temp int)
0:86 Constant:
0:86 4 (const int)
0:86 Constant:
0:86 5 (const int)
0:88 move second child to first child (3-component vector of uint)
0:88 'u3' (3-component vector of uint)
0:88 Function Call: bitfieldExtract(vu3;i1;i1; (3-component vector of uint)
0:88 'u3' (3-component vector of uint)
0:88 move second child to first child (temp 3-component vector of uint)
0:88 'u3' (temp 3-component vector of uint)
0:88 Function Call: bitfieldExtract(vu3;i1;i1; (global 3-component vector of uint)
0:88 'u3' (temp 3-component vector of uint)
0:88 Constant:
0:88 4 (const int)
0:88 Constant:
0:88 5 (const int)
0:90 move second child to first child (3-component vector of int)
0:90 'i3' (3-component vector of int)
0:90 Function Call: bitfieldInsert(vi3;vi3;i1;i1; (3-component vector of int)
0:90 'i3' (3-component vector of int)
0:90 'i3' (3-component vector of int)
0:90 move second child to first child (temp 3-component vector of int)
0:90 'i3' (temp 3-component vector of int)
0:90 Function Call: bitfieldInsert(vi3;vi3;i1;i1; (global 3-component vector of int)
0:90 'i3' (temp 3-component vector of int)
0:90 'i3' (temp 3-component vector of int)
0:90 Constant:
0:90 4 (const int)
0:90 Constant:
0:90 5 (const int)
0:91 move second child to first child (uint)
0:91 'u1' (uint)
0:91 Function Call: bitfieldInsert(u1;u1;i1;i1; (uint)
0:91 'u1' (uint)
0:91 'u1' (uint)
0:91 move second child to first child (temp uint)
0:91 'u1' (temp uint)
0:91 Function Call: bitfieldInsert(u1;u1;i1;i1; (global uint)
0:91 'u1' (temp uint)
0:91 'u1' (temp uint)
0:91 Constant:
0:91 4 (const int)
0:91 Constant:
0:91 5 (const int)
0:93 move second child to first child (2-component vector of int)
0:93 'i2' (2-component vector of int)
0:93 Function Call: bitfieldReverse(vi2; (2-component vector of int)
0:93 'i2' (2-component vector of int)
0:94 move second child to first child (4-component vector of uint)
0:94 'u4' (4-component vector of uint)
0:94 Function Call: bitfieldReverse(vu4; (4-component vector of uint)
0:94 'u4' (4-component vector of uint)
0:95 move second child to first child (int)
0:95 'i1' (int)
0:95 Function Call: bitCount(i1; (int)
0:95 'i1' (int)
0:96 move second child to first child (3-component vector of int)
0:96 'i3' (3-component vector of int)
0:96 Function Call: bitCount(vu3; (3-component vector of int)
0:96 'u3' (3-component vector of uint)
0:97 move second child to first child (2-component vector of int)
0:97 'i2' (2-component vector of int)
0:97 Function Call: findLSB(vi2; (2-component vector of int)
0:97 'i2' (2-component vector of int)
0:98 move second child to first child (4-component vector of int)
0:98 'i4' (4-component vector of int)
0:98 Function Call: findLSB(vu4; (4-component vector of int)
0:98 'u4' (4-component vector of uint)
0:99 move second child to first child (int)
0:99 'i1' (int)
0:99 Function Call: findMSB(i1; (int)
0:99 'i1' (int)
0:100 move second child to first child (2-component vector of int)
0:100 'i2' (2-component vector of int)
0:100 Function Call: findMSB(vu2; (2-component vector of int)
0:100 'u2' (2-component vector of uint)
0:93 move second child to first child (temp 2-component vector of int)
0:93 'i2' (temp 2-component vector of int)
0:93 Function Call: bitfieldReverse(vi2; (global 2-component vector of int)
0:93 'i2' (temp 2-component vector of int)
0:94 move second child to first child (temp 4-component vector of uint)
0:94 'u4' (temp 4-component vector of uint)
0:94 Function Call: bitfieldReverse(vu4; (global 4-component vector of uint)
0:94 'u4' (temp 4-component vector of uint)
0:95 move second child to first child (temp int)
0:95 'i1' (temp int)
0:95 Function Call: bitCount(i1; (global int)
0:95 'i1' (temp int)
0:96 move second child to first child (temp 3-component vector of int)
0:96 'i3' (temp 3-component vector of int)
0:96 Function Call: bitCount(vu3; (global 3-component vector of int)
0:96 'u3' (temp 3-component vector of uint)
0:97 move second child to first child (temp 2-component vector of int)
0:97 'i2' (temp 2-component vector of int)
0:97 Function Call: findLSB(vi2; (global 2-component vector of int)
0:97 'i2' (temp 2-component vector of int)
0:98 move second child to first child (temp 4-component vector of int)
0:98 'i4' (temp 4-component vector of int)
0:98 Function Call: findLSB(vu4; (global 4-component vector of int)
0:98 'u4' (temp 4-component vector of uint)
0:99 move second child to first child (temp int)
0:99 'i1' (temp int)
0:99 Function Call: findMSB(i1; (global int)
0:99 'i1' (temp int)
0:100 move second child to first child (temp 2-component vector of int)
0:100 'i2' (temp 2-component vector of int)
0:100 Function Call: findMSB(vu2; (global 2-component vector of int)
0:100 'u2' (temp 2-component vector of uint)
0:? Linker Objects
0:? 'bn' (in 3-element array of block{in int a})
0:? 'gl_in' (in 3-element array of block{in 4-component vector of float gl_Position, in float gl_PointSize})