Home
last modified time | relevance | path

Searched refs:constArray (Results 1 – 21 of 21) sorted by relevance

/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRemoveArrayLengthMethod.cpp60 TConstantUnion *constArray = new TConstantUnion[1]; in visitUnary() local
61 constArray->setIConst(node->getOperand()->getOutermostArraySize()); in visitUnary()
62 queueReplacement(new TIntermConstantUnion(constArray, node->getType()), in visitUnary()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRemoveArrayLengthMethod.cpp57 TConstantUnion *constArray = new TConstantUnion[1]; in visitUnary() local
58 constArray->setIConst(node->getOperand()->getOutermostArraySize()); in visitUnary()
59 queueReplacement(new TIntermConstantUnion(constArray, node->getType()), in visitUnary()
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DIntermNode.cpp99 TIntermTyped *CreateFoldedNode(const TConstantUnion *constArray, const TIntermTyped *originalNode) in CreateFoldedNode() argument
101 ASSERT(constArray != nullptr); in CreateFoldedNode()
104 TIntermTyped *folded = new TIntermConstantUnion(constArray, originalNode->getType()); in CreateFoldedNode()
714 TConstantUnion *constArray = nullptr; in getConstantValue() local
718 constArray = new TConstantUnion[elementSize * getOutermostArraySize()]; in getConstantValue()
727 memcpy(static_cast<void *>(&constArray[elementOffset]), in getConstantValue()
731 return constArray; in getConstantValue()
735 constArray = new TConstantUnion[resultSize]; in getConstantValue()
759 constArray[resultIndex].cast(basicType, argumentConstantValue[0]); in getConstantValue()
763 constArray[resultIndex].setFConst(0.0f); in getConstantValue()
[all …]
DSymbol.h93 void shareConstPointer(const TConstantUnion *constArray) { unionArray = constArray; } in shareConstPointer() argument
DParseContext.cpp1901 const TConstantUnion *constArray = variable->getConstPointer(); in parseVariableIdentifier() local
1902 node = new TIntermConstantUnion(constArray, variableType); in parseVariableIdentifier()
1909 TConstantUnion *constArray = new TConstantUnion[3]; in parseVariableIdentifier() local
1912 constArray[i].setUConst(static_cast<unsigned int>(workGroupSize[i])); in parseVariableIdentifier()
1920 node = new TIntermConstantUnion(constArray, type); in parseVariableIdentifier()
2027 const TConstantUnion *constArray = initializer->getConstantValue(); in executeInitializer() local
2028 if (constArray) in executeInitializer()
2030 variable->shareConstPointer(constArray); in executeInitializer()
DIntermNode.h361 const TConstantUnion *constArray,
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DIntermNode.cpp100 TIntermTyped *CreateFoldedNode(const TConstantUnion *constArray, const TIntermTyped *originalNode) in CreateFoldedNode() argument
102 ASSERT(constArray != nullptr); in CreateFoldedNode()
105 TIntermTyped *folded = new TIntermConstantUnion(constArray, originalNode->getType()); in CreateFoldedNode()
841 TConstantUnion *constArray = nullptr; in getConstantValue() local
845 constArray = new TConstantUnion[elementSize * getOutermostArraySize()]; in getConstantValue()
854 memcpy(static_cast<void *>(&constArray[elementOffset]), in getConstantValue()
858 return constArray; in getConstantValue()
862 constArray = new TConstantUnion[resultSize]; in getConstantValue()
886 constArray[resultIndex].cast(basicType, argumentConstantValue[0]); in getConstantValue()
890 constArray[resultIndex].setFConst(0.0f); in getConstantValue()
[all …]
DSymbol.h129 void shareConstPointer(const TConstantUnion *constArray) { unionArray = constArray; } in shareConstPointer() argument
DParseContext.cpp2225 const TConstantUnion *constArray = variable->getConstPointer(); in parseVariableIdentifier() local
2226 node = new TIntermConstantUnion(constArray, variableType); in parseVariableIdentifier()
2233 TConstantUnion *constArray = new TConstantUnion[3]; in parseVariableIdentifier() local
2236 constArray[i].setUConst(static_cast<unsigned int>(workGroupSize[i])); in parseVariableIdentifier()
2244 node = new TIntermConstantUnion(constArray, type); in parseVariableIdentifier()
2369 const TConstantUnion *constArray = initializer->getConstantValue(); in executeInitializer() local
2370 if (constArray) in executeInitializer()
2372 variable->shareConstPointer(constArray); in executeInitializer()
DIntermNode.h398 const TConstantUnion *constArray,
/third_party/glslang/glslang/MachineIndependent/
DSymbolTable.cpp356 if (! copyOf.constArray.empty()) { in TVariable()
358 TConstUnionArray newArray(copyOf.constArray, 0, copyOf.constArray.size()); in TVariable()
359 constArray = newArray; in TVariable()
DSymbolTable.h173 virtual const TConstUnionArray& getConstArray() const { return constArray; } in getConstArray()
174 virtual TConstUnionArray& getWritableConstArray() { assert(writable); return constArray; } in getWritableConstArray()
175 virtual void setConstArray(const TConstUnionArray& array) { constArray = array; } in setConstArray()
213 TConstUnionArray constArray; // for compile-time constant value variable
DConstant.cpp1413 TConstUnionArray constArray(selectors.size()); in foldSwizzle() local
1416 constArray[i] = unionArray[selectors[i]]; in foldSwizzle()
1418 TIntermTyped* result = addConstantUnion(constArray, node->getType(), loc); in foldSwizzle()
DIntermediate.cpp68 …iate::addSymbol(int id, const TString& name, const TType& type, const TConstUnionArray& constArray, in addSymbol() argument
73 node->setConstArray(constArray); in addSymbol()
DParseHelper.cpp4878 const TConstUnionArray& constArray = symbol->getAsVariable()->getConstArray(); in limitCheck() local
4879 assert(! constArray.empty()); in limitCheck()
4880 if (value > constArray[0].getIConst()) in limitCheck()
4881 … error(loc, "must be less than or equal to", feature, "%s (%d)", limit, constArray[0].getIConst()); in limitCheck()
/third_party/glslang/glslang/Include/
Dintermediate.h1279 void setConstArray(const TConstUnionArray& c) { constArray = c; } in setConstArray()
1280 const TConstUnionArray& getConstArray() const { return constArray; } in getConstArray()
1298 …TConstUnionArray constArray; // if the symbol is a front-end compile-time constant, this is its va… variable
1304 …TIntermConstantUnion(const TConstUnionArray& ua, const TType& t) : TIntermTyped(t), constArray(ua)… in TIntermConstantUnion()
1305 const TConstUnionArray& getConstArray() const { return constArray; } in getConstArray()
1318 const TConstUnionArray constArray; variable
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DSymbolTable.h108 void shareConstPointer( ConstantUnion *constArray) in shareConstPointer() argument
110 if (unionArray == constArray) in shareConstPointer()
114 unionArray = constArray; in shareConstPointer()
DParseHelper.cpp1303 ConstantUnion* constArray = tVar->getConstPointer(); in executeInitializer() local
1304 variable->shareConstPointer(constArray); in executeInitializer()
2202 ConstantUnion* constArray = new ConstantUnion[fields.num]; in addConstVectorNode() local
2215 constArray[i] = unionArray[fields.offsets[i]]; in addConstVectorNode()
2220 typedNode = intermediate.addConstantUnion(constArray, type, line); in addConstVectorNode()
2318 ConstantUnion* constArray = tempConstantNode->getUnionArrayPointer(); in addConstStruct() local
2320 …typedNode = intermediate.addConstantUnion(constArray+instanceSize, tempConstantNode->getType(), li… in addConstStruct()
Dglslang.y237 ConstantUnion *constArray = variable->getConstPointer(); variable
238 if (constArray && variable->getType().getArraySize() <= 1) {
240 $$ = context->intermediate.addConstantUnion(constArray, t, @1);
Dglslang_tab.cpp2379 ConstantUnion *constArray = variable->getConstPointer(); in yyparse() local
2380 if (constArray && variable->getType().getArraySize() <= 1) { in yyparse()
2382 …(yyval.interm.intermTypedNode) = context->intermediate.addConstantUnion(constArray, t, (yylsp[0])); in yyparse()
/third_party/jsoncpp/src/test_lib_json/
Dmain.cpp316 const Json::Value& constArray = array1_; in JSONTEST_FIXTURE_LOCAL() local
317 JSONTEST_ASSERT_EQUAL(Json::Value(1234), constArray[index0]); in JSONTEST_FIXTURE_LOCAL()
318 JSONTEST_ASSERT_EQUAL(Json::Value(1234), constArray[0]); in JSONTEST_FIXTURE_LOCAL()