Home
last modified time | relevance | path

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

/external/angle/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()
/external/angle/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()
797 TConstantUnion *constArray = nullptr; in getConstantValue() local
801 constArray = new TConstantUnion[elementSize * getOutermostArraySize()]; in getConstantValue()
810 memcpy(static_cast<void *>(&constArray[elementOffset]), in getConstantValue()
814 return constArray; in getConstantValue()
818 constArray = new TConstantUnion[resultSize]; in getConstantValue()
842 constArray[resultIndex].cast(basicType, argumentConstantValue[0]); in getConstantValue()
846 constArray[resultIndex].setFConst(0.0f); in getConstantValue()
[all …]
DSymbol.h129 void shareConstPointer(const TConstantUnion *constArray) { unionArray = constArray; } in shareConstPointer() argument
DParseContext.cpp2209 const TConstantUnion *constArray = variable->getConstPointer(); in parseVariableIdentifier() local
2210 node = new TIntermConstantUnion(constArray, variableType); in parseVariableIdentifier()
2217 TConstantUnion *constArray = new TConstantUnion[3]; in parseVariableIdentifier() local
2220 constArray[i].setUConst(static_cast<unsigned int>(workGroupSize[i])); in parseVariableIdentifier()
2228 node = new TIntermConstantUnion(constArray, type); in parseVariableIdentifier()
2337 const TConstantUnion *constArray = initializer->getConstantValue(); in executeInitializer() local
2338 if (constArray) in executeInitializer()
2340 variable->shareConstPointer(constArray); in executeInitializer()
DIntermNode.h380 const TConstantUnion *constArray,
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/
DSymbolTable.cpp361 if (! copyOf.constArray.empty()) { in TVariable()
363 TConstUnionArray newArray(copyOf.constArray, 0, copyOf.constArray.size()); in TVariable()
364 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.cpp1412 TConstUnionArray constArray(selectors.size()); in foldSwizzle() local
1415 constArray[i] = unionArray[selectors[i]]; in foldSwizzle()
1417 TIntermTyped* result = addConstantUnion(constArray, node->getType(), loc); in foldSwizzle()
DIntermediate.cpp68 …addSymbol(long long id, const TString& name, const TType& type, const TConstUnionArray& constArray, in addSymbol() argument
73 node->setConstArray(constArray); in addSymbol()
DParseHelper.cpp5205 const TConstUnionArray& constArray = symbol->getAsVariable()->getConstArray(); in limitCheck() local
5206 assert(! constArray.empty()); in limitCheck()
5207 if (value > constArray[0].getIConst()) in limitCheck()
5208 … error(loc, "must be less than or equal to", feature, "%s (%d)", limit, constArray[0].getIConst()); in limitCheck()
/external/deqp-deps/glslang/glslang/MachineIndependent/
DSymbolTable.cpp360 if (! copyOf.constArray.empty()) { in TVariable()
362 TConstUnionArray newArray(copyOf.constArray, 0, copyOf.constArray.size()); in TVariable()
363 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.cpp4921 const TConstUnionArray& constArray = symbol->getAsVariable()->getConstArray(); in limitCheck() local
4922 assert(! constArray.empty()); in limitCheck()
4923 if (value > constArray[0].getIConst()) in limitCheck()
4924 … error(loc, "must be less than or equal to", feature, "%s (%d)", limit, constArray[0].getIConst()); in limitCheck()
/external/angle/third_party/vulkan-deps/glslang/src/glslang/Include/
Dintermediate.h1297 void setConstArray(const TConstUnionArray& c) { constArray = c; } in setConstArray()
1298 const TConstUnionArray& getConstArray() const { return constArray; } in getConstArray()
1318 …TConstUnionArray constArray; // if the symbol is a front-end compile-time constant, this is its va… variable
1324 …TIntermConstantUnion(const TConstUnionArray& ua, const TType& t) : TIntermTyped(t), constArray(ua)… in TIntermConstantUnion()
1325 const TConstUnionArray& getConstArray() const { return constArray; } in getConstArray()
1338 const TConstUnionArray constArray; variable
/external/deqp-deps/glslang/glslang/Include/
Dintermediate.h1291 void setConstArray(const TConstUnionArray& c) { constArray = c; } in setConstArray()
1292 const TConstUnionArray& getConstArray() const { return constArray; } in getConstArray()
1312 …TConstUnionArray constArray; // if the symbol is a front-end compile-time constant, this is its va… variable
1318 …TIntermConstantUnion(const TConstUnionArray& ua, const TType& t) : TIntermTyped(t), constArray(ua)… in TIntermConstantUnion()
1319 const TConstUnionArray& getConstArray() const { return constArray; } in getConstArray()
1332 const TConstUnionArray constArray; variable
/external/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()
/external/llvm-project/flang/lib/Evaluate/
Dshape.cpp56 if (const auto *constArray{UnwrapConstantValue<ExtentType>(arrayExpr)}) { in AsShape() local
57 return AsShape(*constArray); in AsShape()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dmodernize-loop-convert-basic.cpp100 const int *constArray() { in constArray() function
/external/jsoncpp/src/test_lib_json/
Dmain.cpp308 const Json::Value& constArray = array1_; in JSONTEST_FIXTURE_LOCAL() local
309 JSONTEST_ASSERT_EQUAL(Json::Value(1234), constArray[index0]); in JSONTEST_FIXTURE_LOCAL()
310 JSONTEST_ASSERT_EQUAL(Json::Value(1234), constArray[0]); in JSONTEST_FIXTURE_LOCAL()