Home
last modified time | relevance | path

Searched refs:TIntermBinary (Results 1 - 25 of 142) sorted by relevance

123456

/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
H A DDriverUniform.h24 class TIntermBinary;
48 TIntermBinary *getViewportRef() const;
49 TIntermBinary *getAbcBufferOffsets() const;
50 TIntermBinary *getXfbActiveUnpaused() const;
51 TIntermBinary *getXfbVerticesPerInstance() const;
52 TIntermBinary *getXfbBufferOffsets() const;
53 TIntermBinary *getClipDistancesEnabled() const;
54 TIntermBinary *getDepthRangeRef() const;
55 TIntermBinary *getDepthRangeReservedFieldRef() const;
56 TIntermBinary *getNumSamplesRe
[all...]
H A DDriverUniform.cpp192 TIntermBinary *DriverUniform::createDriverUniformRef(const char *fieldName) const in createDriverUniformRef()
212 return new TIntermBinary(EOpIndexDirectInterfaceBlock, angleUniformsRef, indexRef); in createDriverUniformRef()
214 return new TIntermBinary(EOpIndexDirectStruct, angleUniformsRef, indexRef); in createDriverUniformRef()
217 TIntermBinary *DriverUniform::getViewportRef() const in getViewportRef()
222 TIntermBinary *DriverUniform::getAbcBufferOffsets() const in getAbcBufferOffsets()
227 TIntermBinary *DriverUniform::getXfbActiveUnpaused() const in getXfbActiveUnpaused()
232 TIntermBinary *DriverUniform::getXfbVerticesPerInstance() const in getXfbVerticesPerInstance()
237 TIntermBinary *DriverUniform::getXfbBufferOffsets() const in getXfbBufferOffsets()
242 TIntermBinary *DriverUniform::getClipDistancesEnabled() const in getClipDistancesEnabled()
247 TIntermBinary *DriverUnifor
[all...]
H A DReplaceClipCullDistanceVariable.cpp94 bool visitBinary(Visit visit, TIntermBinary *node) override
203 TIntermBinary *left = in simpleAssignFunc()
204 new TIntermBinary(EOpIndexDirect, leftSymbol->deepCopy(), CreateIndexNode(index)); in simpleAssignFunc()
205 TIntermBinary *right = in simpleAssignFunc()
206 new TIntermBinary(EOpIndexDirect, rightSymbol->deepCopy(), CreateIndexNode(index)); in simpleAssignFunc()
208 return new TIntermBinary(EOpAssign, left, right); in simpleAssignFunc()
222 TIntermBinary *bitwiseAnd = new TIntermBinary(EOpBitwiseAnd, enableFlags->deepCopy(), bitMask); in assignFuncWithEnableFlags()
223 TIntermBinary *nonZero = new TIntermBinary(EOpNotEqua in assignFuncWithEnableFlags()
[all...]
H A DIntermNodePatternMatcher.h18 class TIntermBinary;
27 static bool IsDynamicIndexingOfNonSSBOVectorOrMatrix(TIntermBinary *node);
28 static bool IsDynamicIndexingOfVectorOrMatrix(TIntermBinary *node);
29 static bool IsDynamicIndexingOfSwizzledVector(TIntermBinary *node);
63 bool match(TIntermBinary *node, TIntermNode *parentNode) const;
67 bool match(TIntermBinary *node, TIntermNode *parentNode, bool isLValueRequiredHere) const;
76 bool matchInternal(TIntermBinary *node, TIntermNode *parentNode) const;
H A DReplaceArrayOfMatrixVarying.cpp121 TIntermBinary *tempMatrixIndexed = in ReplaceArrayOfMatrixVarying()
122 new TIntermBinary(EOpIndexDirect, tempReplaceSymbol->deepCopy(), CreateIndexNode(i)); in ReplaceArrayOfMatrixVarying()
126 TIntermBinary *tempMatrixColIndexed = new TIntermBinary( in ReplaceArrayOfMatrixVarying()
128 TIntermBinary *vectorIndexed = in ReplaceArrayOfMatrixVarying()
129 new TIntermBinary(EOpIndexDirect, varyingReplaceSymbol->deepCopy(), in ReplaceArrayOfMatrixVarying()
131 TIntermBinary *assignment; in ReplaceArrayOfMatrixVarying()
134 assignment = new TIntermBinary(EOpAssign, tempMatrixColIndexed, vectorIndexed); in ReplaceArrayOfMatrixVarying()
138 assignment = new TIntermBinary(EOpAssign, vectorIndexed, tempMatrixColIndexed); in ReplaceArrayOfMatrixVarying()
H A DRewriteSampleMaskVariable.cpp66 bool visitBinary(Visit visit, TIntermBinary *node) override
150 TIntermBinary *equalTo = in RewriteSampleMask()
151 new TIntermBinary(EOpEqual, numSamplesUniform->deepCopy(), singleSampleCount); in RewriteSampleMask()
155 TIntermBinary *sampleMaskVar = new TIntermBinary(EOpIndexDirect, glSampleMaskSymbol->deepCopy(), in RewriteSampleMask()
158 TIntermBinary *assignment = new TIntermBinary(EOpAssign, sampleMaskVar, fullSampleMask); in RewriteSampleMask()
H A DIntermNodePatternMatcher.cpp50 bool IntermNodePatternMatcher::IsDynamicIndexingOfNonSSBOVectorOrMatrix(TIntermBinary *node) in IsDynamicIndexingOfNonSSBOVectorOrMatrix()
56 bool IntermNodePatternMatcher::IsDynamicIndexingOfVectorOrMatrix(TIntermBinary *node) in IsDynamicIndexingOfVectorOrMatrix()
63 bool IntermNodePatternMatcher::IsDynamicIndexingOfSwizzledVector(TIntermBinary *node) in IsDynamicIndexingOfSwizzledVector()
68 bool IntermNodePatternMatcher::matchInternal(TIntermBinary *node, TIntermNode *parentNode) const in matchInternal()
102 bool IntermNodePatternMatcher::match(TIntermBinary *node, TIntermNode *parentNode) const in match()
111 bool IntermNodePatternMatcher::match(TIntermBinary *node, in match()
135 TIntermBinary *parentBinary = parentNode->getAsBinaryNode(); in match()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
H A DTranslatorVulkan.cpp224 rotatedXY = new TIntermBinary(EOpMatrixTimesVector, fragRotation, builtinXY); in RotateAndFlipBuiltinVariable()
233 TIntermBinary *removePivot = new TIntermBinary(EOpSub, rotatedXY, pivot); in RotateAndFlipBuiltinVariable()
234 TIntermBinary *inverseXY = new TIntermBinary(EOpMul, removePivot, flipXY); in RotateAndFlipBuiltinVariable()
235 TIntermBinary *plusPivot = new TIntermBinary(EOpAdd, inverseXY, pivot->deepCopy()); in RotateAndFlipBuiltinVariable()
238 TIntermBinary *assignment = in RotateAndFlipBuiltinVariable()
239 new TIntermBinary(EOpAssign, flippedBuiltinRef, builtinRef->deepCopy()); in RotateAndFlipBuiltinVariable()
244 TIntermBinary *assignTo in RotateAndFlipBuiltinVariable()
[all...]
H A DTranslatorMetalDirect.cpp205 TIntermBinary *angleEmulatedDepthRangeRef = driverUniforms->getDepthRangeRef(); in ReplaceGLDepthRangeWithDriverUniform()
253 rotatedXY = new TIntermBinary(EOpMatrixTimesVector, fragRotation, builtinXY); in RotateAndFlipBuiltinVariable()
262 TIntermBinary *removePivot = new TIntermBinary(EOpSub, rotatedXY, pivot); in RotateAndFlipBuiltinVariable()
263 TIntermBinary *inverseXY = new TIntermBinary(EOpMul, removePivot, flipXY); in RotateAndFlipBuiltinVariable()
264 TIntermBinary *plusPivot = new TIntermBinary(EOpAdd, inverseXY, pivot->deepCopy()); in RotateAndFlipBuiltinVariable()
271 TIntermBinary *assignment = new TIntermBinary(EOpInitializ in RotateAndFlipBuiltinVariable()
[all...]
H A DTranslatorMetal.cpp66 TIntermBinary *inverseY = new TIntermBinary(EOpMul, positionY->deepCopy(), negFlipY); in AppendVertexShaderPositionYCorrectionToMain()
70 TIntermBinary *assignment = new TIntermBinary(TOperator::EOpAssign, positionYLHS, inverseY); in AppendVertexShaderPositionYCorrectionToMain()
202 TIntermBinary *viewportZScale = driverUniforms->getDepthRangeReservedFieldRef(); in transformDepthBeforeCorrection()
205 TIntermBinary *zScale = new TIntermBinary(EOpMul, positionZ->deepCopy(), viewportZScale); in transformDepthBeforeCorrection()
209 TIntermBinary *assignment = new TIntermBinary(TOperator::EOpAssign, positionZLHS, zScale); in transformDepthBeforeCorrection()
258 TIntermBinary *coverageMas in insertSampleMaskWritingLogic()
[all...]
H A DDriverUniformMetal.h25 TIntermBinary *getHalfRenderAreaRef() const override;
26 TIntermBinary *getFlipXYRef() const override;
27 TIntermBinary *getNegFlipXYRef() const override;
29 TIntermBinary *getCoverageMaskFieldRef() const;
H A DDriverUniformMetal.cpp62 TIntermBinary *DriverUniformMetal::getHalfRenderAreaRef() const in getHalfRenderAreaRef()
67 TIntermBinary *DriverUniformMetal::getFlipXYRef() const in getFlipXYRef()
72 TIntermBinary *DriverUniformMetal::getNegFlipXYRef() const in getNegFlipXYRef()
80 TIntermBinary *negFlipXY = createDriverUniformRef(kNegFlipXY); in getNegFlipYRef()
86 TIntermBinary *DriverUniformMetal::getCoverageMaskFieldRef() const in getCoverageMaskFieldRef()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
H A DRewriteCubeMapSamplersAs2DArray.cpp37 return new TIntermBinary( in DerivativeQuotient()
39 new TIntermBinary(EOpSub, new TIntermBinary(EOpMul, du->deepCopy(), v->deepCopy()), in DerivativeQuotient()
40 new TIntermBinary(EOpMul, dv->deepCopy(), u->deepCopy())), in DerivativeQuotient()
41 new TIntermBinary(EOpMul, vRecip->deepCopy(), vRecip->deepCopy())); in DerivativeQuotient()
51 return new TIntermBinary(EOpIndexDirect, array, CreateIndexNode(i)); in IndexDirect()
70 new TIntermUnary(EOpNegative, new TIntermBinary(EOpMul, signX, z->deepCopy()), nullptr); in TransformXMajor()
73 block->appendStatement(new TIntermBinary(EOpAssign, uc->deepCopy(), ucValue)); in TransformXMajor()
74 block->appendStatement(new TIntermBinary(EOpAssign, vc->deepCopy(), vcValue)); in TransformXMajor()
93 duValue = new TIntermBinary(EOpMu in TransformDerivativeXMajor()
[all...]
H A DDeclareAndInitBuiltinsForInstancedMultiview.cpp54 TIntermBinary *normalizedInstanceID = in InitializeViewIDAndInstanceID()
55 new TIntermBinary(EOpDiv, glInstanceIDAsUint, numberOfViewsUint); in InitializeViewIDAndInstanceID()
64 TIntermBinary *instanceIDInitializer = in InitializeViewIDAndInstanceID()
65 new TIntermBinary(EOpAssign, new TIntermSymbol(instanceID), normalizedInstanceIDAsInt); in InitializeViewIDAndInstanceID()
69 TIntermBinary *normalizedViewID = in InitializeViewIDAndInstanceID()
70 new TIntermBinary(EOpIMod, glInstanceIDAsUint->deepCopy(), numberOfViewsUint->deepCopy()); in InitializeViewIDAndInstanceID()
73 TIntermBinary *viewIDInitializer = in InitializeViewIDAndInstanceID()
74 new TIntermBinary(EOpAssign, new TIntermSymbol(viewID), normalizedViewID); in InitializeViewIDAndInstanceID()
97 new TIntermBinary(EOpAssign, viewportIndexSymbol, viewIDAsInt)); in SelectViewIndexInVertexShader()
103 TIntermBinary *sumOfViewIDAndBaseViewInde in SelectViewIndexInVertexShader()
[all...]
H A DRewriteDfdy.cpp138 TIntermBinary *halfRotationMat = nullptr; in visitAggregateWithRotation()
141 halfRotationMat = new TIntermBinary(EOpIndexDirect, fragRotation, CreateIndexNode(0)); in visitAggregateWithRotation()
145 halfRotationMat = new TIntermBinary(EOpIndexDirect, fragRotation, CreateIndexNode(1)); in visitAggregateWithRotation()
149 TIntermBinary *rotatedFlipXY = new TIntermBinary(EOpMul, flipXY, halfRotationMat); in visitAggregateWithRotation()
173 TIntermBinary *rotatedFlippedDfdx = new TIntermBinary(multiplyOp, dFdx, multiplierX); in visitAggregateWithRotation()
174 TIntermBinary *rotatedFlippedDfdy = new TIntermBinary(multiplyOp, dFdy, multiplierY); in visitAggregateWithRotation()
177 TIntermBinary *correctedResul in visitAggregateWithRotation()
[all...]
H A DRewriteAtomicCounters.cpp63 TIntermBinary *uniformBufferOffsetUint = new TIntermBinary( in CreateUniformBufferOffset()
67 TIntermBinary *uniformBufferOffsetShifted = uniformBufferOffsetUint; in CreateUniformBufferOffset()
70 uniformBufferOffsetShifted = new TIntermBinary(EOpBitShiftRight, uniformBufferOffsetUint, in CreateUniformBufferOffset()
75 return new TIntermBinary(EOpBitwiseAnd, uniformBufferOffsetShifted, CreateUIntNode(0xFF)); in CreateUniformBufferOffset()
78 TIntermBinary *CreateAtomicCounterRef(TIntermTyped *atomicCounterExpression, in CreateAtomicCounterRef()
115 TIntermBinary *asBinary = atomicCounterExpression->getAsBinaryNode(); in CreateAtomicCounterRef()
152 index = new TIntermBinary(EOpAdd, index, atomicCounterIndex); in CreateAtomicCounterRef()
156 index = new TIntermBinary(EOpAdd, index, CreateIndexNode(offset)); in CreateAtomicCounterRef()
166 TIntermBinary *countersBloc in CreateAtomicCounterRef()
[all...]
H A DRemoveDynamicIndexing.cpp29 using DynamicIndexingNodeMatcher = std::function<bool(TIntermBinary *)>;
202 TIntermBinary *indexNode = in GetIndexFunctionDefinition()
203 new TIntermBinary(EOpIndexDirect, baseParam->deepCopy(), CreateIndexNode(i)); in GetIndexFunctionDefinition()
206 TIntermBinary *assignNode = in GetIndexFunctionDefinition()
207 new TIntermBinary(EOpAssign, indexNode, valueParam->deepCopy()); in GetIndexFunctionDefinition()
230 TIntermBinary *cond = in GetIndexFunctionDefinition()
231 new TIntermBinary(EOpLessThan, indexParam->deepCopy(), CreateIntConstantNode(0)); in GetIndexFunctionDefinition()
237 TIntermBinary *indexFirstNode = in GetIndexFunctionDefinition()
238 new TIntermBinary(EOpIndexDirect, baseParam->deepCopy(), CreateIndexNode(0)); in GetIndexFunctionDefinition()
239 TIntermBinary *indexLastNod in GetIndexFunctionDefinition()
[all...]
H A DInitializeVariables.cpp37 TIntermBinary *CreateZeroInitAssignment(const TIntermTyped *initializedNode) in CreateZeroInitAssignment()
40 return new TIntermBinary(EOpAssign, initializedNode->deepCopy(), zero); in CreateZeroInitAssignment()
70 new TIntermBinary(TOperator::EOpIndexDirectInterfaceBlock, in AddZeroInitSequence()
74 new TIntermBinary(TOperator::EOpAssign, fieldReference, fieldZero); in AddZeroInitSequence()
94 TIntermBinary *element = new TIntermBinary(EOpIndexDirectStruct, in AddStructZeroInitSequence()
112 TIntermBinary *element = in AddArrayZeroInitStatementList()
113 new TIntermBinary(EOpIndexDirect, initializedNode->deepCopy(), CreateIndexNode(i)); in AddArrayZeroInitStatementList()
134 TIntermBinary *indexSmallerThanSize = in AddArrayZeroInitForLoop()
135 new TIntermBinary(EOpLessTha in AddArrayZeroInitForLoop()
[all...]
H A DEmulateGLFragColorBroadcast.cpp47 TIntermBinary *constructGLFragDataNode(int index) const;
48 TIntermBinary *constructGLFragDataAssignNode(int index) const;
56 TIntermBinary *GLFragColorBroadcastTraverser::constructGLFragDataNode(int index) const in constructGLFragDataNode()
62 TIntermBinary *binary = new TIntermBinary(EOpIndexDirect, symbol, indexNode); in constructGLFragDataNode()
66 TIntermBinary *GLFragColorBroadcastTraverser::constructGLFragDataAssignNode(int index) const in constructGLFragDataAssignNode()
71 return new TIntermBinary(EOpAssign, fragDataIndex, fragDataZero); in constructGLFragDataAssignNode()
H A DRewriteArrayOfArrayOfOpaqueUniforms.cpp49 TIntermBinary *node,
63 bool visitBinary(Visit visit, TIntermBinary *node) override
123 TIntermBinary *node, in RewriteArrayOfArraySubscriptExpression()
135 TIntermBinary *iter = node; in RewriteArrayOfArraySubscriptExpression()
185 new TIntermBinary(EOpMul, indexExpression, CreateIndexNode(subArraySize)); in RewriteArrayOfArraySubscriptExpression()
194 variableIndex = new TIntermBinary(EOpAdd, variableIndex, indexExpression); in RewriteArrayOfArraySubscriptExpression()
221 index = new TIntermBinary(EOpAdd, index, variableIndex); in RewriteArrayOfArraySubscriptExpression()
227 return new TIntermBinary(op, new TIntermSymbol(data.flattened), index); in RewriteArrayOfArraySubscriptExpression()
313 bool visitBinary(Visit visit, TIntermBinary *node) override
H A DScalarizeVecAndMatConstructorArgs.cpp30 TIntermBinary *ConstructVectorIndexBinaryNode(TIntermTyped *symbolNode, int index) in ConstructVectorIndexBinaryNode()
32 return new TIntermBinary(EOpIndexDirect, symbolNode, CreateIndexNode(index)); in ConstructVectorIndexBinaryNode()
35 TIntermBinary *ConstructMatrixIndexBinaryNode(TIntermTyped *symbolNode, int colIndex, int rowIndex) in ConstructMatrixIndexBinaryNode()
37 TIntermBinary *colVectorNode = ConstructVectorIndexBinaryNode(symbolNode, colIndex); in ConstructMatrixIndexBinaryNode()
39 return new TIntermBinary(EOpIndexDirect, colVectorNode, CreateIndexNode(rowIndex)); in ConstructMatrixIndexBinaryNode()
140 TIntermBinary *newNode = in scalarizeArgs()
161 TIntermBinary *newNode = in scalarizeArgs()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/
H A DRewriteExpressionsWithShaderStorageBlock.cpp122 bool visitBinary(Visit, TIntermBinary *node) override;
151 TIntermBinary *node) in visitBinary()
195 TIntermBinary *tempCompoundOperate = in visitBinary()
196 new TIntermBinary(node->getOp(), tempSymbol->deepCopy(), rightNode->deepCopy()); in visitBinary()
200 TIntermBinary *assignTempValueToSSBO = in visitBinary()
201 new TIntermBinary(EOpAssign, node->getLeft(), tempSymbol->deepCopy()); in visitBinary()
207 TIntermBinary *compoundAssignRValueToLValue = in visitBinary()
208 new TIntermBinary(node->getOp(), node->getLeft(), rightNode->deepCopy()); in visitBinary()
236 TIntermBinary *newExpr = in visitBinary()
237 new TIntermBinary(nod in visitBinary()
[all...]
H A DSeparateExpressionsReturningArrays.cpp30 bool visitBinary(Visit visit, TIntermBinary *node) override;
53 TIntermBinary *CopyAssignmentNode(TIntermBinary *node) in CopyAssignmentNode()
55 return new TIntermBinary(node->getOp(), node->getLeft(), node->getRight()); in CopyAssignmentNode()
58 bool SeparateExpressionsTraverser::visitBinary(Visit visit, TIntermBinary *node) in visitBinary()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/gl/
H A DUseInterfaceBlockFields.cpp32 TIntermBinary *element = in AddNodeUseStatements()
33 new TIntermBinary(EOpIndexDirect, node->deepCopy(), CreateIndexNode(i)); in AddNodeUseStatements()
56 TIntermBinary *element = new TIntermBinary(EOpIndexDirectInterfaceBlock, in InsertUseCode()
81 TIntermBinary *elementSymbol = in InsertUseCode()
82 new TIntermBinary(EOpIndexDirect, arraySymbol->deepCopy(), CreateIndexNode(i)); in InsertUseCode()
H A DRewriteRepeatedAssignToSwizzled.cpp35 bool visitBinary(Visit, TIntermBinary *node) override;
70 bool RewriteAssignToSwizzledTraverser::visitBinary(Visit, TIntermBinary *node) in visitBinary()
72 TIntermBinary *rightBinary = node->getRight()->getAsBinaryNode(); in visitBinary()
80 TIntermBinary *lastAssign = in visitBinary()
81 new TIntermBinary(EOpAssign, node->getLeft(), rightAssignmentTargetCopy); in visitBinary()

Completed in 25 milliseconds

123456