Home
last modified time | relevance | path

Searched refs:deepCopy (Results 1 – 25 of 82) sorted by relevance

1234

/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRewriteCubeMapSamplersAs2DArray.cpp39 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()
67 CreateBuiltInUnaryFunctionCallNode("sign", x->deepCopy(), symbolTable, 100); in TransformXMajor()
70 new TIntermUnary(EOpNegative, new TIntermBinary(EOpMul, signX, z->deepCopy()), nullptr); in TransformXMajor()
71 TIntermTyped *vcValue = new TIntermUnary(EOpNegative, y->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()
95 block->appendStatement(new TIntermBinary(EOpAssign, du->deepCopy(), duValue)); in TransformDerivativeXMajor()
96 block->appendStatement(new TIntermBinary(EOpAssign, dv->deepCopy(), dvValue)); in TransformDerivativeXMajor()
[all …]
DInitializeVariables.cpp40 return new TIntermBinary(EOpAssign, initializedNode->deepCopy(), zero); in CreateZeroInitAssignment()
71 initializedNode->deepCopy(), fieldIndexRef); in AddZeroInitSequence()
95 initializedNode->deepCopy(), CreateIndexNode(i)); in AddStructZeroInitSequence()
113 new TIntermBinary(EOpIndexDirect, initializedNode->deepCopy(), CreateIndexNode(i)); in AddArrayZeroInitStatementList()
135 new TIntermBinary(EOpLessThan, indexSymbolNode->deepCopy(), arraySizeNode); in AddArrayZeroInitForLoop()
137 new TIntermUnary(EOpPreIncrement, indexSymbolNode->deepCopy(), nullptr); in AddArrayZeroInitForLoop()
142 TIntermBinary *element = new TIntermBinary(EOpIndexIndirect, initializedNode->deepCopy(), in AddArrayZeroInitForLoop()
143 indexSymbolNode->deepCopy()); in AddArrayZeroInitForLoop()
DRemoveDynamicIndexing.cpp203 new TIntermBinary(EOpIndexDirect, baseParam->deepCopy(), CreateIndexNode(i)); in GetIndexFunctionDefinition()
207 new TIntermBinary(EOpAssign, indexNode, valueParam->deepCopy()); in GetIndexFunctionDefinition()
225 TIntermSwitch *switchNode = new TIntermSwitch(indexParam->deepCopy(), statementList); in GetIndexFunctionDefinition()
231 new TIntermBinary(EOpLessThan, indexParam->deepCopy(), CreateIntConstantNode(0)); in GetIndexFunctionDefinition()
238 new TIntermBinary(EOpIndexDirect, baseParam->deepCopy(), CreateIndexNode(0)); in GetIndexFunctionDefinition()
240 new TIntermBinary(EOpIndexDirect, baseParam->deepCopy(), CreateIndexNode(numCases - 1)); in GetIndexFunctionDefinition()
244 new TIntermBinary(EOpAssign, indexFirstNode, valueParam->deepCopy()); in GetIndexFunctionDefinition()
250 new TIntermBinary(EOpAssign, indexLastNode, valueParam->deepCopy()); in GetIndexFunctionDefinition()
357 arguments.push_back(node->getLeft()->deepCopy()); in CreateIndexedWriteFunctionCall()
DRewriteDfdy.cpp160 multiplierY = new TIntermSwizzle(tmpRotFlipXY->deepCopy(), swizzleOffsetY); in visitAggregateWithRotation()
167 CreateBuiltInUnaryFunctionCallNode("dFdx", operand->deepCopy(), *mSymbolTable, 300); in visitAggregateWithRotation()
169 CreateBuiltInUnaryFunctionCallNode("dFdy", operand->deepCopy(), *mSymbolTable, 300); in visitAggregateWithRotation()
195 TIntermAggregate *newDfdy = node->deepCopy()->getAsAggregate(); in visitAggregateWithoutRotation()
DClampPointSize.cpp32 TIntermTyped *pointSizeNode = glPointSize->deepCopy(); in ClampPointSize()
41 minArguments.push_back(pointSizeNode->deepCopy()); in ClampPointSize()
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRewriteCubeMapSamplersAs2DArray.cpp135 lV = GetValueFromNeighbor(symbolTable, body, quadSwapVerticalFloat, l->deepCopy(), in GetLayerFromNonHelperInvocation()
137 lD = GetValueFromNeighbor(symbolTable, body, quadSwapDiagonalFloat, l->deepCopy(), in GetLayerFromNonHelperInvocation()
142 symbolTable, body, quadSwapHorizontalBool, gl_HelperInvocation->deepCopy(), boolType); in GetLayerFromNonHelperInvocation()
144 symbolTable, body, quadSwapVerticalBool, gl_HelperInvocation->deepCopy(), boolType); in GetLayerFromNonHelperInvocation()
169 new TIntermTernary(gl_HelperInvocation->deepCopy(), CreateZeroNode(*floatType), l); in GetLayerFromNonHelperInvocation()
178 lV = GetDiffWithNeighbor(symbolTable, body, dFdyFineFloat, layerQuadSwapHelper->deepCopy(), in GetLayerFromNonHelperInvocation()
180 lD = GetDiffWithNeighbor(symbolTable, body, dFdxFineFloat, lV->deepCopy(), floatType); in GetLayerFromNonHelperInvocation()
187 IsNeighborNonHelper(symbolTable, body, dFdxFineBool, gl_HelperInvocation->deepCopy()); in GetLayerFromNonHelperInvocation()
189 IsNeighborNonHelper(symbolTable, body, dFdyFineBool, gl_HelperInvocation->deepCopy()); in GetLayerFromNonHelperInvocation()
196 helperBody->appendStatement(new TIntermBinary(EOpAssign, l->deepCopy(), lHVD)); in GetLayerFromNonHelperInvocation()
[all …]
DRewriteExpressionsWithShaderStorageBlock.cpp194 insertInitStatementAndReturnTempSymbol(node->getLeft()->deepCopy(), &insertions); in visitBinary()
196 new TIntermBinary(node->getOp(), tempSymbol->deepCopy(), rightNode->deepCopy()); in visitBinary()
201 new TIntermBinary(EOpAssign, node->getLeft(), tempSymbol->deepCopy()); in visitBinary()
208 new TIntermBinary(node->getOp(), node->getLeft(), rightNode->deepCopy()); in visitBinary()
237 new TIntermBinary(node->getOp(), leftNode->deepCopy(), rightNode->deepCopy()); in visitBinary()
301 EOpAssign, ssboArgument->deepCopy(), argumentCopy->deepCopy()); in visitAggregate()
329 queueReplacement(tempSymbol->deepCopy(), OriginalNode::IS_DROPPED); in visitAggregate()
368 TIntermUnary *newUnary = new TIntermUnary(node->getOp(), temp1->deepCopy(), nullptr); in visitUnary()
371 new TIntermBinary(EOpAssign, node->getOperand()->deepCopy(), temp1->deepCopy()); in visitUnary()
374 queueReplacement(temp2->deepCopy(), OriginalNode::IS_DROPPED); in visitUnary()
[all …]
DInitializeVariables.cpp39 return new TIntermBinary(EOpAssign, initializedNode->deepCopy(), zero); in CreateZeroInitAssignment()
76 initializedNode->deepCopy(), CreateIndexNode(i)); in AddStructZeroInitSequence()
94 new TIntermBinary(EOpIndexDirect, initializedNode->deepCopy(), CreateIndexNode(i)); in AddArrayZeroInitStatementList()
116 new TIntermBinary(EOpLessThan, indexSymbolNode->deepCopy(), arraySizeNode); in AddArrayZeroInitForLoop()
118 new TIntermUnary(EOpPreIncrement, indexSymbolNode->deepCopy(), nullptr); in AddArrayZeroInitForLoop()
123 TIntermBinary *element = new TIntermBinary(EOpIndexIndirect, initializedNode->deepCopy(), in AddArrayZeroInitForLoop()
124 indexSymbolNode->deepCopy()); in AddArrayZeroInitForLoop()
DSimplifyLoopConditions.cpp165 CreateTempInitDeclarationNode(conditionVariable, node->getCondition()->deepCopy()); in traverseLoop()
174 CreateTempAssignmentNode(conditionVariable, node->getCondition()->deepCopy())); in traverseLoop()
204 CreateTempAssignmentNode(conditionVariable, node->getCondition()->deepCopy())); in traverseLoop()
240 conditionInitializer = node->getCondition()->deepCopy(); in traverseLoop()
264 CreateTempAssignmentNode(conditionVariable, node->getCondition()->deepCopy())); in traverseLoop()
DRemoveDynamicIndexing.cpp193 new TIntermBinary(EOpIndexDirect, baseParam->deepCopy(), CreateIndexNode(i)); in GetIndexFunctionDefinition()
197 new TIntermBinary(EOpAssign, indexNode, valueParam->deepCopy()); in GetIndexFunctionDefinition()
215 TIntermSwitch *switchNode = new TIntermSwitch(indexParam->deepCopy(), statementList); in GetIndexFunctionDefinition()
221 new TIntermBinary(EOpLessThan, indexParam->deepCopy(), CreateIntConstantNode(0)); in GetIndexFunctionDefinition()
228 new TIntermBinary(EOpIndexDirect, baseParam->deepCopy(), CreateIndexNode(0)); in GetIndexFunctionDefinition()
230 new TIntermBinary(EOpIndexDirect, baseParam->deepCopy(), CreateIndexNode(numCases - 1)); in GetIndexFunctionDefinition()
234 new TIntermBinary(EOpAssign, indexFirstNode, valueParam->deepCopy()); in GetIndexFunctionDefinition()
240 new TIntermBinary(EOpAssign, indexLastNode, valueParam->deepCopy()); in GetIndexFunctionDefinition()
343 arguments->push_back(node->getLeft()->deepCopy()); in CreateIndexedWriteFunctionCall()
DUseInterfaceBlockFields.cpp32 new TIntermBinary(EOpIndexDirect, node->deepCopy(), CreateIndexNode(i)); in AddNodeUseStatements()
56 blockNode->deepCopy(), CreateIndexNode(i)); in InsertUseCode()
81 new TIntermBinary(EOpIndexDirect, arraySymbol->deepCopy(), CreateIndexNode(i)); in InsertUseCode()
DRewriteAtomicCounters.cpp104 new TIntermBinary(EOpIndexDirectStruct, bindingOffset->deepCopy(), bindingFieldRef); in CreateAtomicCounterRef()
106 new TIntermBinary(EOpIndexDirectStruct, bindingOffset->deepCopy(), offsetFieldRef); in CreateAtomicCounterRef()
118 new TIntermBinary(EOpDiv, binding->deepCopy(), CreateUIntConstant(4)); in CreateAtomicCounterRef()
120 new TIntermBinary(EOpIndexDirect, bufferOffsets->deepCopy(), bindingDivFour); in CreateAtomicCounterRef()
124 new TIntermBinary(EOpIMod, binding->deepCopy(), CreateUIntConstant(4)); in CreateAtomicCounterRef()
465 thisDimensionOffset = thisDimensionOffset->deepCopy(); in convertFunctionArgumentHelper()
569 *bindingOffset = modifiedSymbol->deepCopy(); in convertFunctionArgument()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/
DRewriteExpressionsWithShaderStorageBlock.cpp194 insertInitStatementAndReturnTempSymbol(node->getLeft()->deepCopy(), &insertions); in visitBinary()
196 new TIntermBinary(node->getOp(), tempSymbol->deepCopy(), rightNode->deepCopy()); in visitBinary()
201 new TIntermBinary(EOpAssign, node->getLeft(), tempSymbol->deepCopy()); in visitBinary()
208 new TIntermBinary(node->getOp(), node->getLeft(), rightNode->deepCopy()); in visitBinary()
237 new TIntermBinary(node->getOp(), leftNode->deepCopy(), rightNode->deepCopy()); in visitBinary()
301 EOpAssign, ssboArgument->deepCopy(), argumentCopy->deepCopy()); in visitAggregate()
329 queueReplacement(tempSymbol->deepCopy(), OriginalNode::IS_DROPPED); in visitAggregate()
368 TIntermUnary *newUnary = new TIntermUnary(node->getOp(), temp1->deepCopy(), nullptr); in visitUnary()
371 new TIntermBinary(EOpAssign, node->getOperand()->deepCopy(), temp1->deepCopy()); in visitUnary()
374 queueReplacement(temp2->deepCopy(), OriginalNode::IS_DROPPED); in visitUnary()
[all …]
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyProtobuf.java59 … public static IRubyObject deepCopy(ThreadContext context, IRubyObject self, IRubyObject message) { in deepCopy() method in RubyProtobuf
61 return ((RubyMessage) message).deepCopy(context); in deepCopy()
63 return ((RubyRepeatedField) message).deepCopy(context); in deepCopy()
65 return ((RubyMap) message).deepCopy(context); in deepCopy()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DIntermNode.h110 virtual TIntermNode *deepCopy() const = 0;
139 virtual TIntermTyped *deepCopy() const override = 0;
238 virtual TIntermLoop *deepCopy() const override { return new TIntermLoop(*this); } in deepCopy() function
269 virtual TIntermBranch *deepCopy() const override { return new TIntermBranch(*this); } in deepCopy() function
287 TIntermTyped *deepCopy() const override { return new TIntermSymbol(*this); } in deepCopy() function
347 TIntermTyped *deepCopy() const override { return new TIntermConstantUnion(*this); } in deepCopy() function
451 TIntermTyped *deepCopy() const override { return new TIntermSwizzle(*this); } in deepCopy() function
497 TIntermTyped *deepCopy() const override { return new TIntermBinary(*this); } in deepCopy() function
549 TIntermTyped *deepCopy() const override { return new TIntermUnary(*this); } in deepCopy() function
625 TIntermTyped *deepCopy() const override { return new TIntermAggregate(*this); } in deepCopy() function
[all …]
DTranslatorMetalDirect.cpp264 TIntermBinary *plusPivot = new TIntermBinary(EOpAdd, inverseXY, pivot->deepCopy()); in RotateAndFlipBuiltinVariable()
268 sequence.push_back(builtinRef->deepCopy()); in RotateAndFlipBuiltinVariable()
275 new TIntermSwizzle(flippedBuiltinRef->deepCopy(), swizzleOffsetXY); in RotateAndFlipBuiltinVariable()
453 TIntermBinary *inverseY = new TIntermBinary(EOpMul, positionY->deepCopy(), negFlipY); in AppendVertexShaderPositionYCorrectionToMain()
456 TIntermTyped *positionYLHS = positionY->deepCopy(); in AppendVertexShaderPositionYCorrectionToMain()
521 args->push_back(gl_SampleMask->deepCopy()); in insertSampleMaskWritingLogic()
562 new TIntermBinary(TOperator::EOpAssign, positionRef->deepCopy(), constVarConstructor); in insertRasterizationDiscardLogic()
591 TIntermBinary *zScale = new TIntermBinary(EOpMul, positionZ->deepCopy(), viewportZScale); in transformDepthBeforeCorrection()
594 TIntermTyped *positionZLHS = positionZ->deepCopy(); in transformDepthBeforeCorrection()
619 TIntermSwizzle *positionW = new TIntermSwizzle(positionRef->deepCopy(), swizzleOffsetW); in appendVertexShaderDepthCorrectionToMain()
[all …]
DTranslatorMetal.cpp66 TIntermBinary *inverseY = new TIntermBinary(EOpMul, positionY->deepCopy(), negFlipY); in AppendVertexShaderPositionYCorrectionToMain()
69 TIntermTyped *positionYLHS = positionY->deepCopy(); in AppendVertexShaderPositionYCorrectionToMain()
205 TIntermBinary *zScale = new TIntermBinary(EOpMul, positionZ->deepCopy(), viewportZScale); in transformDepthBeforeCorrection()
208 TIntermTyped *positionZLHS = positionZ->deepCopy(); in transformDepthBeforeCorrection()
319 new TIntermBinary(TOperator::EOpAssign, positionRef->deepCopy(), constVarConstructor); in insertRasterizerDiscardLogic()
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DTranslatorVulkan.cpp236 TIntermBinary *plusPivot = new TIntermBinary(EOpAdd, inverseY, pivot->deepCopy()); in FlipBuiltinVariable()
299 TIntermSwizzle *positionW = new TIntermSwizzle(positionRef->deepCopy(), swizzleOffsetW); in AppendVertexShaderDepthCorrectionToMain()
302 TIntermBinary *zPlusW = new TIntermBinary(EOpAdd, positionZ->deepCopy(), positionW->deepCopy()); in AppendVertexShaderDepthCorrectionToMain()
303 TIntermBinary *halfZPlusW = new TIntermBinary(EOpMul, zPlusW, oneHalf->deepCopy()); in AppendVertexShaderDepthCorrectionToMain()
306 TIntermTyped *positionZLHS = positionZ->deepCopy(); in AppendVertexShaderDepthCorrectionToMain()
511 TIntermSwizzle *viewportXY = new TIntermSwizzle(viewportRef->deepCopy(), swizzleOffsetXY); in AddLineSegmentRasterizationEmulation()
521 TIntermSwizzle *positionW = new TIntermSwizzle(position->deepCopy(), swizzleOffsetW); in AddLineSegmentRasterizationEmulation()
530 new TIntermBinary(EOpAdd, halfPosition, oneHalf->deepCopy()); in AddLineSegmentRasterizationEmulation()
560 TIntermBinary *baSq = new TIntermBinary(EOpMul, ba, ba->deepCopy()); in AddLineSegmentRasterizationEmulation()
576 TIntermBinary *ba2PlusBaYX2 = new TIntermBinary(EOpAdd, ba2->deepCopy(), ba2YX); in AddLineSegmentRasterizationEmulation()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DReplaceClipCullDistanceVariable.cpp186 queueReplacement(mReplacement->deepCopy(), OriginalNode::IS_DROPPED); in visitSymbol()
204 new TIntermBinary(EOpIndexDirect, leftSymbol->deepCopy(), CreateIndexNode(index)); in simpleAssignFunc()
206 new TIntermBinary(EOpIndexDirect, rightSymbol->deepCopy(), CreateIndexNode(index)); in simpleAssignFunc()
222 TIntermBinary *bitwiseAnd = new TIntermBinary(EOpBitwiseAnd, enableFlags->deepCopy(), bitMask); in assignFuncWithEnableFlags()
226 new TIntermBinary(EOpIndexDirect, leftSymbol->deepCopy(), CreateIndexNode(index)); in assignFuncWithEnableFlags()
228 new TIntermBinary(EOpIndexDirect, rightSymbol->deepCopy(), CreateIndexNode(index)); in assignFuncWithEnableFlags()
234 new TIntermBinary(EOpAssign, left->deepCopy(), CreateFloatNode(0, EbpMedium)); in assignFuncWithEnableFlags()
389 EOpIndexDirect, glClipCullDistanceSymbol->deepCopy(), CreateIndexNode(i)); in assignANGLEValueToOriginalVariableImpl()
DReplaceArrayOfMatrixVarying.cpp122 new TIntermBinary(EOpIndexDirect, tempReplaceSymbol->deepCopy(), CreateIndexNode(i)); in ReplaceArrayOfMatrixVarying()
127 EOpIndexDirect, tempMatrixIndexed->deepCopy(), CreateIndexNode(col)); in ReplaceArrayOfMatrixVarying()
129 new TIntermBinary(EOpIndexDirect, varyingReplaceSymbol->deepCopy(), in ReplaceArrayOfMatrixVarying()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DFixTypeConstructors.cpp62 newSwizzle = new TIntermSwizzle(targ->deepCopy(), {0}); in visitAggregate()
65 newSwizzle = new TIntermSwizzle(targ->deepCopy(), {0, 1}); in visitAggregate()
68 newSwizzle = new TIntermSwizzle(targ->deepCopy(), {0, 1, 2}); in visitAggregate()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/apple/
DRewriteRowMajorMatrices.cpp153 TIntermTyped *rhs = binaryNode->getRight()->deepCopy(); in GetIndex()
281 TIntermTyped *element = expression->deepCopy(); in getCurrentElement()
1122 baseExpression->deepCopy(), primaryIndex, &secondaryIndices, structure, in transformExpression()
1144 baseExpression = baseExpression->deepCopy(); in transformExpression()
1238 secondaryIndexOp, baseExpression->deepCopy(), secondaryIndexAsTyped->deepCopy()); in transformReadExpression()
1240 new TIntermBinary(primaryIndexOp, colIndexed, primaryIndexAsTyped->deepCopy()); in transformReadExpression()
1297 CreateStructCopyCall(copyFromOriginal, valueExpression->deepCopy()); in transformWriteExpression()
1328 CreateTransposeCall(mSymbolTable, valueExpression->deepCopy()); in transformWriteExpression()
1355 secondaryIndexOp, baseExpression->deepCopy(), secondaryIndexAsTyped->deepCopy()); in transformWriteExpression()
1357 new TIntermBinary(primaryIndexOp, colIndexed, primaryIndexAsTyped->deepCopy()); in transformWriteExpression()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/tests/compiler_tests/
DIntermNode_test.cpp151 TIntermTyped *copy = original->deepCopy(); in TEST_F()
165 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
182 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
201 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
226 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
252 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
DIntermNode_test.cpp151 TIntermTyped *copy = original->deepCopy(); in TEST_F()
165 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
182 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
201 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
226 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
252 TIntermTyped *copyTyped = original->deepCopy(); in TEST_F()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/gl/
DUseInterfaceBlockFields.cpp33 new TIntermBinary(EOpIndexDirect, node->deepCopy(), CreateIndexNode(i)); in AddNodeUseStatements()
57 blockNode->deepCopy(), CreateIndexNode(i)); in InsertUseCode()
82 new TIntermBinary(EOpIndexDirect, arraySymbol->deepCopy(), CreateIndexNode(i)); in InsertUseCode()

1234