Lines Matching full:out
24 // 2. Print out a text based description of the tree.
97 TInfoSinkBase& out = sink; in visitBinary() local
99 OutputTreeText(out, node, mDepth); in visitBinary()
102 case EOpAssign: out << "move second child to first child"; break; in visitBinary()
103 case EOpInitialize: out << "initialize first child with second child"; break; in visitBinary()
104 case EOpAddAssign: out << "add second child into first child"; break; in visitBinary()
105 case EOpSubAssign: out << "subtract second child into first child"; break; in visitBinary()
106 case EOpMulAssign: out << "multiply second child into first child"; break; in visitBinary()
107 case EOpVectorTimesMatrixAssign: out << "matrix mult second child into first child"; break; in visitBinary()
108 case EOpVectorTimesScalarAssign: out << "vector scale second child into first child"; break; in visitBinary()
109 case EOpMatrixTimesScalarAssign: out << "matrix scale second child into first child"; break; in visitBinary()
110 case EOpMatrixTimesMatrixAssign: out << "matrix mult second child into first child"; break; in visitBinary()
111 case EOpDivAssign: out << "divide second child into first child"; break; in visitBinary()
112 case EOpIModAssign: out << "modulo second child into first child"; break; in visitBinary()
113 case EOpBitShiftLeftAssign: out << "bit-wise shift first child left by second child"; break; in visitBinary()
114 case EOpBitShiftRightAssign: out << "bit-wise shift first child right by second child"; break; in visitBinary()
115 case EOpBitwiseAndAssign: out << "bit-wise and second child into first child"; break; in visitBinary()
116 case EOpBitwiseXorAssign: out << "bit-wise xor second child into first child"; break; in visitBinary()
117 case EOpBitwiseOrAssign: out << "bit-wise or second child into first child"; break; in visitBinary()
118 case EOpIndexDirect: out << "direct index"; break; in visitBinary()
119 case EOpIndexIndirect: out << "indirect index"; break; in visitBinary()
120 case EOpIndexDirectStruct: out << "direct index for structure"; break; in visitBinary()
121 case EOpVectorSwizzle: out << "vector swizzle"; break; in visitBinary()
123 case EOpAdd: out << "add"; break; in visitBinary()
124 case EOpSub: out << "subtract"; break; in visitBinary()
125 case EOpMul: out << "component-wise multiply"; break; in visitBinary()
126 case EOpDiv: out << "divide"; break; in visitBinary()
127 case EOpIMod: out << "modulo"; break; in visitBinary()
128 case EOpBitShiftLeft: out << "bit-wise shift left"; break; in visitBinary()
129 case EOpBitShiftRight: out << "bit-wise shift right"; break; in visitBinary()
130 case EOpBitwiseAnd: out << "bit-wise and"; break; in visitBinary()
131 case EOpBitwiseXor: out << "bit-wise xor"; break; in visitBinary()
132 case EOpBitwiseOr: out << "bit-wise or"; break; in visitBinary()
133 case EOpEqual: out << "Compare Equal"; break; in visitBinary()
134 case EOpNotEqual: out << "Compare Not Equal"; break; in visitBinary()
135 case EOpLessThan: out << "Compare Less Than"; break; in visitBinary()
136 case EOpGreaterThan: out << "Compare Greater Than"; break; in visitBinary()
137 case EOpLessThanEqual: out << "Compare Less Than or Equal"; break; in visitBinary()
138 case EOpGreaterThanEqual: out << "Compare Greater Than or Equal"; break; in visitBinary()
140 case EOpVectorTimesScalar: out << "vector-scale"; break; in visitBinary()
141 case EOpVectorTimesMatrix: out << "vector-times-matrix"; break; in visitBinary()
142 case EOpMatrixTimesVector: out << "matrix-times-vector"; break; in visitBinary()
143 case EOpMatrixTimesScalar: out << "matrix-scale"; break; in visitBinary()
144 case EOpMatrixTimesMatrix: out << "matrix-multiply"; break; in visitBinary()
146 case EOpLogicalOr: out << "logical-or"; break; in visitBinary()
147 case EOpLogicalXor: out << "logical-xor"; break; in visitBinary()
148 case EOpLogicalAnd: out << "logical-and"; break; in visitBinary()
149 default: out << "<unknown op>"; in visitBinary()
152 out << " (" << node->getCompleteString() << ")"; in visitBinary()
154 out << "\n"; in visitBinary()
161 TInfoSinkBase& out = sink; in visitUnary() local
163 OutputTreeText(out, node, mDepth); in visitUnary()
166 case EOpNegative: out << "Negate value"; break; in visitUnary()
168 case EOpLogicalNot: out << "Negate conditional"; break; in visitUnary()
169 case EOpBitwiseNot: out << "bit-wise not"; break; in visitUnary()
171 case EOpPostIncrement: out << "Post-Increment"; break; in visitUnary()
172 case EOpPostDecrement: out << "Post-Decrement"; break; in visitUnary()
173 case EOpPreIncrement: out << "Pre-Increment"; break; in visitUnary()
174 case EOpPreDecrement: out << "Pre-Decrement"; break; in visitUnary()
176 case EOpRadians: out << "radians"; break; in visitUnary()
177 case EOpDegrees: out << "degrees"; break; in visitUnary()
178 case EOpSin: out << "sine"; break; in visitUnary()
179 case EOpCos: out << "cosine"; break; in visitUnary()
180 case EOpTan: out << "tangent"; break; in visitUnary()
181 case EOpAsin: out << "arc sine"; break; in visitUnary()
182 case EOpAcos: out << "arc cosine"; break; in visitUnary()
183 case EOpAtan: out << "arc tangent"; break; in visitUnary()
184 case EOpSinh: out << "hyperbolic sine"; break; in visitUnary()
185 case EOpCosh: out << "hyperbolic cosine"; break; in visitUnary()
186 case EOpTanh: out << "hyperbolic tangent"; break; in visitUnary()
187 case EOpAsinh: out << "arc hyperbolic sine"; break; in visitUnary()
188 case EOpAcosh: out << "arc hyperbolic cosine"; break; in visitUnary()
189 case EOpAtanh: out << "arc hyperbolic tangent"; break; in visitUnary()
191 case EOpExp: out << "exp"; break; in visitUnary()
192 case EOpLog: out << "log"; break; in visitUnary()
193 case EOpExp2: out << "exp2"; break; in visitUnary()
194 case EOpLog2: out << "log2"; break; in visitUnary()
195 case EOpSqrt: out << "sqrt"; break; in visitUnary()
196 case EOpInverseSqrt: out << "inverse sqrt"; break; in visitUnary()
198 case EOpAbs: out << "Absolute value"; break; in visitUnary()
199 case EOpSign: out << "Sign"; break; in visitUnary()
200 case EOpFloor: out << "Floor"; break; in visitUnary()
201 case EOpTrunc: out << "Trunc"; break; in visitUnary()
202 case EOpRound: out << "Round"; break; in visitUnary()
203 case EOpRoundEven: out << "RoundEven"; break; in visitUnary()
204 case EOpCeil: out << "Ceiling"; break; in visitUnary()
205 case EOpFract: out << "Fraction"; break; in visitUnary()
206 case EOpIsNan: out << "Is not a number"; break; in visitUnary()
207 case EOpIsInf: out << "Is infinity"; break; in visitUnary()
209 case EOpFloatBitsToInt: out << "float bits to int"; break; in visitUnary()
210 case EOpFloatBitsToUint: out << "float bits to uint"; break; in visitUnary()
211 case EOpIntBitsToFloat: out << "int bits to float"; break; in visitUnary()
212 case EOpUintBitsToFloat: out << "uint bits to float"; break; in visitUnary()
214 case EOpPackSnorm2x16: out << "pack Snorm 2x16"; break; in visitUnary()
215 case EOpPackUnorm2x16: out << "pack Unorm 2x16"; break; in visitUnary()
216 case EOpPackHalf2x16: out << "pack half 2x16"; break; in visitUnary()
218 case EOpUnpackSnorm2x16: out << "unpack Snorm 2x16"; break; in visitUnary()
219 case EOpUnpackUnorm2x16: out << "unpack Unorm 2x16"; break; in visitUnary()
220 case EOpUnpackHalf2x16: out << "unpack half 2x16"; break; in visitUnary()
222 case EOpLength: out << "length"; break; in visitUnary()
223 case EOpNormalize: out << "normalize"; break; in visitUnary()
224 // case EOpDPdx: out << "dPdx"; break; in visitUnary()
225 // case EOpDPdy: out << "dPdy"; break; in visitUnary()
226 // case EOpFwidth: out << "fwidth"; break; in visitUnary()
228 case EOpDeterminant: out << "determinant"; break; in visitUnary()
229 case EOpTranspose: out << "transpose"; break; in visitUnary()
230 case EOpInverse: out << "inverse"; break; in visitUnary()
232 case EOpAny: out << "any"; break; in visitUnary()
233 case EOpAll: out << "all"; break; in visitUnary()
235 default: out.message(EPrefixError, "Bad unary op"); in visitUnary()
238 out << " (" << node->getCompleteString() << ")"; in visitUnary()
240 out << "\n"; in visitUnary()
247 TInfoSinkBase& out = sink; in visitAggregate() local
250 out.message(EPrefixError, "node is still EOpNull!"); in visitAggregate()
254 OutputTreeText(out, node, mDepth); in visitAggregate()
257 case EOpSequence: out << "Sequence\n"; return true; in visitAggregate()
258 case EOpComma: out << "Comma\n"; return true; in visitAggregate()
259 case EOpFunction: out << "Function Definition: " << node->getName(); break; in visitAggregate()
260 case EOpFunctionCall: out << "Function Call: " << node->getName(); break; in visitAggregate()
261 case EOpParameters: out << "Function Parameters: "; break; in visitAggregate()
263 case EOpConstructFloat: out << "Construct float"; break; in visitAggregate()
264 case EOpConstructVec2: out << "Construct vec2"; break; in visitAggregate()
265 case EOpConstructVec3: out << "Construct vec3"; break; in visitAggregate()
266 case EOpConstructVec4: out << "Construct vec4"; break; in visitAggregate()
267 case EOpConstructBool: out << "Construct bool"; break; in visitAggregate()
268 case EOpConstructBVec2: out << "Construct bvec2"; break; in visitAggregate()
269 case EOpConstructBVec3: out << "Construct bvec3"; break; in visitAggregate()
270 case EOpConstructBVec4: out << "Construct bvec4"; break; in visitAggregate()
271 case EOpConstructInt: out << "Construct int"; break; in visitAggregate()
272 case EOpConstructIVec2: out << "Construct ivec2"; break; in visitAggregate()
273 case EOpConstructIVec3: out << "Construct ivec3"; break; in visitAggregate()
274 case EOpConstructIVec4: out << "Construct ivec4"; break; in visitAggregate()
275 case EOpConstructUInt: out << "Construct uint"; break; in visitAggregate()
276 case EOpConstructUVec2: out << "Construct uvec2"; break; in visitAggregate()
277 case EOpConstructUVec3: out << "Construct uvec3"; break; in visitAggregate()
278 case EOpConstructUVec4: out << "Construct uvec4"; break; in visitAggregate()
279 case EOpConstructMat2: out << "Construct mat2"; break; in visitAggregate()
280 case EOpConstructMat2x3: out << "Construct mat2x3"; break; in visitAggregate()
281 case EOpConstructMat2x4: out << "Construct mat2x4"; break; in visitAggregate()
282 case EOpConstructMat3x2: out << "Construct mat3x2"; break; in visitAggregate()
283 case EOpConstructMat3: out << "Construct mat3"; break; in visitAggregate()
284 case EOpConstructMat3x4: out << "Construct mat3x4"; break; in visitAggregate()
285 case EOpConstructMat4x2: out << "Construct mat4x2"; break; in visitAggregate()
286 case EOpConstructMat4x3: out << "Construct mat4x3"; break; in visitAggregate()
287 case EOpConstructMat4: out << "Construct mat4"; break; in visitAggregate()
288 case EOpConstructStruct: out << "Construct structure"; break; in visitAggregate()
290 case EOpLessThan: out << "Compare Less Than"; break; in visitAggregate()
291 case EOpGreaterThan: out << "Compare Greater Than"; break; in visitAggregate()
292 case EOpLessThanEqual: out << "Compare Less Than or Equal"; break; in visitAggregate()
293 case EOpGreaterThanEqual: out << "Compare Greater Than or Equal"; break; in visitAggregate()
294 case EOpVectorEqual: out << "Equal"; break; in visitAggregate()
295 case EOpVectorNotEqual: out << "NotEqual"; break; in visitAggregate()
297 case EOpMod: out << "mod"; break; in visitAggregate()
298 case EOpModf: out << "modf"; break; in visitAggregate()
299 case EOpPow: out << "pow"; break; in visitAggregate()
301 case EOpAtan: out << "arc tangent"; break; in visitAggregate()
303 case EOpMin: out << "min"; break; in visitAggregate()
304 case EOpMax: out << "max"; break; in visitAggregate()
305 case EOpClamp: out << "clamp"; break; in visitAggregate()
306 case EOpMix: out << "mix"; break; in visitAggregate()
307 case EOpStep: out << "step"; break; in visitAggregate()
308 case EOpSmoothStep: out << "smoothstep"; break; in visitAggregate()
310 case EOpFloatBitsToInt: out << "floatBitsToInt"; break; in visitAggregate()
311 case EOpFloatBitsToUint: out << "floatBitsToUint"; break; in visitAggregate()
312 case EOpIntBitsToFloat: out << "intBitsToFloat"; break; in visitAggregate()
313 case EOpUintBitsToFloat: out << "uintBitsToFloat"; break; in visitAggregate()
315 case EOpDistance: out << "distance"; break; in visitAggregate()
316 case EOpDot: out << "dot-product"; break; in visitAggregate()
317 case EOpCross: out << "cross-product"; break; in visitAggregate()
318 case EOpFaceForward: out << "face-forward"; break; in visitAggregate()
319 case EOpReflect: out << "reflect"; break; in visitAggregate()
320 case EOpRefract: out << "refract"; break; in visitAggregate()
321 case EOpMul: out << "component-wise multiply"; break; in visitAggregate()
322 case EOpOuterProduct: out << "outer product"; break; in visitAggregate()
324 case EOpDeclaration: out << "Declaration"; break; in visitAggregate()
326 default: out.message(EPrefixError, "Bad aggregation op"); in visitAggregate()
330 out << " (" << node->getCompleteString() << ")"; in visitAggregate()
332 out << "\n"; in visitAggregate()
339 TInfoSinkBase& out = sink; in visitSelection() local
341 OutputTreeText(out, node, mDepth); in visitSelection()
343 out << "Test condition and select"; in visitSelection()
344 out << " (" << node->getCompleteString() << ")\n"; in visitSelection()
349 out << "Condition\n"; in visitSelection()
354 out << "true case\n"; in visitSelection()
357 out << "true case is null\n"; in visitSelection()
361 out << "false case\n"; in visitSelection()
372 TInfoSinkBase& out = sink; in visitConstantUnion() local
377 OutputTreeText(out, node, mDepth); in visitConstantUnion()
381 out << "true"; in visitConstantUnion()
383 out << "false"; in visitConstantUnion()
385 out << " (" << "const bool" << ")"; in visitConstantUnion()
386 out << "\n"; in visitConstantUnion()
389 out << node->getUnionArrayPointer()[i].getFConst(); in visitConstantUnion()
390 out << " (const float)\n"; in visitConstantUnion()
393 out << node->getUnionArrayPointer()[i].getIConst(); in visitConstantUnion()
394 out << " (const int)\n"; in visitConstantUnion()
397 out << node->getUnionArrayPointer()[i].getUConst(); in visitConstantUnion()
398 out << " (const uint)\n"; in visitConstantUnion()
401 out.message(EPrefixInternalError, "Unknown constant", node->getLine()); in visitConstantUnion()
409 TInfoSinkBase& out = sink; in visitLoop() local
411 OutputTreeText(out, node, mDepth); in visitLoop()
413 out << "Loop with condition "; in visitLoop()
415 out << "not "; in visitLoop()
416 out << "tested first\n"; in visitLoop()
422 out << "Loop Condition\n"; in visitLoop()
425 out << "No loop condition\n"; in visitLoop()
429 out << "Loop Body\n"; in visitLoop()
432 out << "No loop body\n"; in visitLoop()
436 out << "Loop Terminal Expression\n"; in visitLoop()
447 TInfoSinkBase& out = sink; in visitBranch() local
449 OutputTreeText(out, node, mDepth); in visitBranch()
452 case EOpKill: out << "Branch: Kill"; break; in visitBranch()
453 case EOpBreak: out << "Branch: Break"; break; in visitBranch()
454 case EOpContinue: out << "Branch: Continue"; break; in visitBranch()
455 case EOpReturn: out << "Branch: Return"; break; in visitBranch()
456 default: out << "Branch: Unknown Branch"; break; in visitBranch()
460 out << " with expression\n"; in visitBranch()
465 out << "\n"; in visitBranch()