Home
last modified time | relevance | path

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

123

/external/angle/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()
77 initializedNode->deepCopy(), CreateIndexNode(i)); in AddStructZeroInitSequence()
95 new TIntermBinary(EOpIndexDirect, initializedNode->deepCopy(), CreateIndexNode(i)); in AddArrayZeroInitStatementList()
117 new TIntermBinary(EOpLessThan, indexSymbolNode->deepCopy(), arraySizeNode); in AddArrayZeroInitForLoop()
119 new TIntermUnary(EOpPreIncrement, indexSymbolNode->deepCopy(), nullptr); in AddArrayZeroInitForLoop()
124 TIntermBinary *element = new TIntermBinary(EOpIndexIndirect, initializedNode->deepCopy(), in AddArrayZeroInitForLoop()
125 indexSymbolNode->deepCopy()); in AddArrayZeroInitForLoop()
DRemoveDynamicIndexing.cpp196 new TIntermBinary(EOpIndexDirect, baseParam->deepCopy(), CreateIndexNode(i)); in GetIndexFunctionDefinition()
200 new TIntermBinary(EOpAssign, indexNode, valueParam->deepCopy()); in GetIndexFunctionDefinition()
218 TIntermSwitch *switchNode = new TIntermSwitch(indexParam->deepCopy(), statementList); in GetIndexFunctionDefinition()
224 new TIntermBinary(EOpLessThan, indexParam->deepCopy(), CreateIntConstantNode(0)); in GetIndexFunctionDefinition()
231 new TIntermBinary(EOpIndexDirect, baseParam->deepCopy(), CreateIndexNode(0)); in GetIndexFunctionDefinition()
233 new TIntermBinary(EOpIndexDirect, baseParam->deepCopy(), CreateIndexNode(numCases - 1)); in GetIndexFunctionDefinition()
237 new TIntermBinary(EOpAssign, indexFirstNode, valueParam->deepCopy()); in GetIndexFunctionDefinition()
243 new TIntermBinary(EOpAssign, indexLastNode, valueParam->deepCopy()); in GetIndexFunctionDefinition()
350 arguments.push_back(node->getLeft()->deepCopy()); in CreateIndexedWriteFunctionCall()
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 …]
DRewriteDfdy.cpp161 multiplierY = new TIntermSwizzle(tmpRotFlipXY->deepCopy(), swizzleOffsetY); in visitAggregateWithRotation()
168 CreateBuiltInUnaryFunctionCallNode("dFdx", operand->deepCopy(), *mSymbolTable, 300); in visitAggregateWithRotation()
170 CreateBuiltInUnaryFunctionCallNode("dFdy", operand->deepCopy(), *mSymbolTable, 300); in visitAggregateWithRotation()
196 TIntermAggregate *newDfdy = node->deepCopy()->getAsAggregate(); in visitAggregateWithoutRotation()
DDeclareAndInitBuiltinsForInstancedMultiview.cpp70 new TIntermBinary(EOpIMod, glInstanceIDAsUint->deepCopy(), numberOfViewsUint->deepCopy()); in InitializeViewIDAndInstanceID()
104 EOpAdd, viewIDAsInt->deepCopy(), new TIntermSymbol(multiviewBaseViewLayerIndex)); in SelectViewIndexInVertexShader()
DSimplifyLoopConditions.cpp149 seq.push_back(mLoop.expression->deepCopy()); in visitBranch()
155 CreateTempAssignmentNode(mLoop.conditionVariable, mLoop.condition->deepCopy())); in visitBranch()
247 CreateTempAssignmentNode(mLoop.conditionVariable, mLoop.condition->deepCopy())); in traverseLoop()
445 CreateTempAssignmentNode(mLoop.conditionVariable, mLoop.condition->deepCopy())); in traverseLoop()
/external/angle/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 …]
DWrapSwitchStatementsInBlocks.cpp83 declarationInBlock->appendDeclarator(declaratorAsSymbol->deepCopy()); in visitSwitch()
103 declarationInBlock->appendDeclarator(declaratorAsBinary->getLeft()->deepCopy()); in visitSwitch()
/external/okio/okio/src/jvmTest/kotlin/okio/
DBufferCursorKotlinTest.kt19 import okio.TestUtil.deepCopy in <lambda>()
45 val buffer = deepCopy(bufferFactory.newBuffer()) in <lambda>()
58 val buffer = deepCopy(bufferFactory.newBuffer()) in <lambda>()
71 val buffer = deepCopy(bufferFactory.newBuffer()) in <lambda>()
87 val deepCopy = deepCopy(buffer) in <lambda>() constant
88 assertTrue(deepCopy.head == null || !deepCopy.head!!.shared) in <lambda>()
108 assertEquals(deepCopy, shallowCopy) in <lambda>()
/external/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()
/external/angle/src/compiler/translator/
DIntermNode.h110 virtual TIntermNode *deepCopy() const = 0;
139 virtual TIntermTyped *deepCopy() const override = 0;
221 virtual TIntermLoop *deepCopy() const override { return new TIntermLoop(*this); } in deepCopy() function
252 virtual TIntermBranch *deepCopy() const override { return new TIntermBranch(*this); } in deepCopy() function
270 TIntermTyped *deepCopy() const override { return new TIntermSymbol(*this); } in deepCopy() function
329 TIntermTyped *deepCopy() const override { return new TIntermConstantUnion(*this); } in deepCopy() function
432 TIntermTyped *deepCopy() const override { return new TIntermSwizzle(*this); } in deepCopy() function
476 TIntermTyped *deepCopy() const override { return new TIntermBinary(*this); } in deepCopy() function
526 TIntermTyped *deepCopy() const override { return new TIntermUnary(*this); } in deepCopy() function
600 TIntermTyped *deepCopy() const override { return new TIntermAggregate(*this); } in deepCopy() function
[all …]
DTranslatorMetal.cpp71 TIntermBinary *inverseY = new TIntermBinary(EOpMul, positionY->deepCopy(), negFlipY); in AppendVertexShaderPositionYCorrectionToMain()
74 TIntermTyped *positionYLHS = positionY->deepCopy(); in AppendVertexShaderPositionYCorrectionToMain()
269 TIntermBinary *zScale = new TIntermBinary(EOpMul, positionZ->deepCopy(), viewportZScale); in transformDepthBeforeCorrection()
272 TIntermTyped *positionZLHS = positionZ->deepCopy(); in transformDepthBeforeCorrection()
381 new TIntermBinary(TOperator::EOpAssign, positionRef->deepCopy(), constVarConstructor); in insertRasterizerDiscardLogic()
DTranslatorMetalDirect.cpp241 new TIntermBinary(TOperator::EOpAssign, glPosXY->deepCopy(), zRotated); in AppendPreRotation()
294 TIntermBinary *plusPivot = new TIntermBinary(EOpAdd, inverseXY, pivot->deepCopy()); in RotateAndFlipBuiltinVariable()
298 sequence.push_back(builtinRef->deepCopy()); in RotateAndFlipBuiltinVariable()
305 new TIntermSwizzle(flippedBuiltinRef->deepCopy(), swizzleOffsetXY); in RotateAndFlipBuiltinVariable()
468 TIntermBinary *inverseY = new TIntermBinary(EOpMul, positionY->deepCopy(), negFlipY); in AppendVertexShaderPositionYCorrectionToMain()
471 TIntermTyped *positionYLHS = positionY->deepCopy(); in AppendVertexShaderPositionYCorrectionToMain()
527 args->push_back(gl_SampleMask->deepCopy()); in insertSampleMaskWritingLogic()
568 new TIntermBinary(TOperator::EOpAssign, positionRef->deepCopy(), constVarConstructor); in insertRasterizationDiscardLogic()
597 TIntermBinary *zScale = new TIntermBinary(EOpMul, positionZ->deepCopy(), viewportZScale); in transformDepthBeforeCorrection()
600 TIntermTyped *positionZLHS = positionZ->deepCopy(); in transformDepthBeforeCorrection()
DTranslatorVulkan.cpp113 queueReplacement(mVariableMap.at(&variable)->deepCopy(), OriginalNode::IS_DROPPED); in visitSymbol()
235 TIntermBinary *plusPivot = new TIntermBinary(EOpAdd, inverseXY, pivot->deepCopy()); in RotateAndFlipBuiltinVariable()
239 new TIntermBinary(EOpAssign, flippedBuiltinRef, builtinRef->deepCopy()); in RotateAndFlipBuiltinVariable()
243 new TIntermSwizzle(flippedBuiltinRef->deepCopy(), swizzleOffsetXY); in RotateAndFlipBuiltinVariable()
314 TIntermSwizzle *glPosW = CreateSwizzle(glPos->deepCopy(), 3); in AddBresenhamEmulationVS()
327 TIntermSwizzle *viewportXY = CreateSwizzle(viewportRef->deepCopy(), 0, 1); in AddBresenhamEmulationVS()
341 new TIntermBinary(EOpDiv, windowRounded, scaleConstant->deepCopy()); in AddBresenhamEmulationVS()
349 EOpSub, CreateTempSymbolNode(clampedWindowCoords), viewportXY->deepCopy()); in AddBresenhamEmulationVS()
352 TIntermBinary *clampedDivided = new TIntermBinary(EOpDiv, clampedOff2x, viewportZW->deepCopy()); in AddBresenhamEmulationVS()
664 TIntermSwizzle *viewportXY = CreateSwizzle(viewportRef->deepCopy(), 0, 1); in AddBresenhamEmulationFS()
[all …]
/external/angle/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()
/external/angle/src/compiler/translator/tree_util/
DReplaceClipCullDistanceVariable.cpp184 queueReplacement(mReplacement->deepCopy(), OriginalNode::IS_DROPPED); in visitSymbol()
202 new TIntermBinary(EOpIndexDirect, leftSymbol->deepCopy(), CreateIndexNode(index)); in simpleAssignFunc()
204 new TIntermBinary(EOpIndexDirect, rightSymbol->deepCopy(), CreateIndexNode(index)); in simpleAssignFunc()
220 TIntermBinary *bitwiseAnd = new TIntermBinary(EOpBitwiseAnd, enableFlags->deepCopy(), bitMask); in assignFuncWithEnableFlags()
224 new TIntermBinary(EOpIndexDirect, leftSymbol->deepCopy(), CreateIndexNode(index)); in assignFuncWithEnableFlags()
226 new TIntermBinary(EOpIndexDirect, rightSymbol->deepCopy(), CreateIndexNode(index)); in assignFuncWithEnableFlags()
232 new TIntermBinary(EOpAssign, left->deepCopy(), CreateFloatNode(0)); in assignFuncWithEnableFlags()
385 EOpIndexDirect, glClipCullDistanceSymbol->deepCopy(), CreateIndexNode(i)); in assignANGLEValueToOriginalVariableImpl()
DReplaceArrayOfMatrixVarying.cpp127 new TIntermBinary(EOpIndexDirect, tempReplaceSymbol->deepCopy(), CreateIndexNode(i)); in ReplaceArrayOfMatrixVarying()
132 EOpIndexDirect, tempMatrixIndexed->deepCopy(), CreateIndexNode(col)); in ReplaceArrayOfMatrixVarying()
134 new TIntermBinary(EOpIndexDirect, varyingReplaceSymbol->deepCopy(), in ReplaceArrayOfMatrixVarying()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/
DTestDeepCopy.java19 ObjectNode copy = root.deepCopy(); in testWithObjectSimple()
39 ArrayNode copy = root.deepCopy(); in testWithArraySimple()
65 ObjectNode copy = root.deepCopy(); in testWithNested()
/external/angle/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()
DVectorizeVectorScalarArithmetic.cpp178 TIntermTyped *tempAssignmentTargetInitializer = Vectorize(left->deepCopy(), vecType, nullptr); in replaceAssignInsideConstructor()
191 compoundAssignmentOp, CreateTempSymbolNode(tempAssignmentTarget), right->deepCopy()); in replaceAssignInsideConstructor()
200 new TIntermBinary(EOpAssign, left->deepCopy(), tempAssignmentTargetX); in replaceAssignInsideConstructor()
/external/angle/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()
/external/opencensus-java/api/src/main/java/io/opencensus/stats/
DViewData.java126 final Map<List</*@Nullable*/ TagValue>, AggregationData> deepCopy = in create() local
131 deepCopy.put( in create()
140 view, Collections.unmodifiableMap(deepCopy), arg, arg.getStart(), arg.getEnd()); in create()
149 Collections.unmodifiableMap(deepCopy), in create()
176 Map<List</*@Nullable*/ TagValue>, AggregationData> deepCopy =
181 deepCopy.put(
187 Collections.unmodifiableMap(deepCopy),
/external/okio/okio/src/jvmTest/java/okio/
DBufferCursorTest.java30 import static okio.TestUtil.deepCopy;
226 Buffer expected = deepCopy(buffer); in enlarge()
246 Buffer expected = deepCopy(buffer); in enlargeByManySegments()
304 deepCopy(buffer).copyTo(expected, 0, originalSize - 3); in shrink()
320 deepCopy(buffer).copyTo(toShrink, 0, originalSize); in shrinkByManySegments()
369 Buffer expected = deepCopy(buffer); in resizeEnlargeMovesCursorToOldSize()
406 Buffer expected = deepCopy(buffer); in expand()
/external/angle/src/compiler/translator/tree_ops/vulkan/
DEmulateFragColorData.cpp44 queueReplacement(replacement->second->deepCopy(), OriginalNode::IS_DROPPED); in visitSymbol()
106 TIntermSymbol *symbol = replaced.second->deepCopy()->getAsSymbolNode(); in addDeclarations()

123