• Home
  • Raw
  • Download

Lines Matching +refs:aggregate +refs:variable

480     const TVariable* variable;  in handleVariable()  local
486 variable = anon->getAnonContainer().getAsVariable(); in handleVariable()
487 TIntermTyped* container = intermediate.addSymbol(*variable, loc); in handleVariable()
491 node->setType(*(*variable->getType().getStruct())[anon->getMemberNumber()].type); in handleVariable()
499 variable = symbol ? symbol->getAsVariable() : nullptr; in handleVariable()
500 if (variable) { in handleVariable()
501 if (variable->getType().isUnusableName()) { in handleVariable()
503 variable = nullptr; in handleVariable()
506 if (language == EShLangMesh && variable) { in handleVariable()
508 …if ((variable->getMangledName() == "gl_PrimitiveTriangleIndicesEXT" && primitiveType != ElgTriangl… in handleVariable()
509 … (variable->getMangledName() == "gl_PrimitiveLineIndicesEXT" && primitiveType != ElgLines) || in handleVariable()
510 … (variable->getMangledName() == "gl_PrimitivePointIndicesEXT" && primitiveType != ElgPoints)) { in handleVariable()
512 variable = nullptr; in handleVariable()
521 if (! variable) in handleVariable()
522 variable = new TVariable(string, TType(EbtVoid)); in handleVariable()
524 if (variable->getType().getQualifier().isFrontEndConstant()) in handleVariable()
525 … node = intermediate.addConstantUnion(variable->getConstArray(), variable->getType(), loc); in handleVariable()
527 node = intermediate.addSymbol(*variable, loc); in handleVariable()
530 if (variable->getType().getQualifier().isIo()) in handleVariable()
533 if (variable->getType().isReference() && in handleVariable()
534 variable->getType().getQualifier().bufferReferenceNeedsVulkanMemoryModel()) { in handleVariable()
1117 const TVariable* variable = symbol->getAsVariable(); in blockMemberExtensionCheck() local
1118 if (variable == nullptr) in blockMemberExtensionCheck()
1120 if (!variable->hasMemberExtensions()) in blockMemberExtensionCheck()
1125 if (variable->getNumMemberExtensions(member) > 0) in blockMemberExtensionCheck()
1126 …requireExtensions(loc, variable->getNumMemberExtensions(member), variable->getMemberExtensions(mem… in blockMemberExtensionCheck()
1280 TVariable *variable = new TVariable(param.name, *param.type); in handleFunctionDefinition() local
1283 if (! symbolTable.insert(*variable)) in handleFunctionDefinition()
1284 error(loc, "redefinition", variable->getName().c_str(), ""); in handleFunctionDefinition()
1291 intermediate.addSymbol(*variable, loc), in handleFunctionDefinition()
1370 TIntermAggregate* aggregate = arguments->getAsAggregate(); in handleFunctionCall() local
1375 …ntermNode* arg = fnCandidate->getParamCount() == 1 ? arguments : (aggregate ? aggregate->getSequen… in handleFunctionCall()
1814 TIntermAggregate* aggregate = arguments->getAsAggregate(); in addInputArgumentConversions() local
1821 … arg = function.getParamCount() == 1 ? arguments->getAsTyped() : (aggregate ? aggregate->getSequen… in addInputArgumentConversions()
1832 if (aggregate) in addInputArgumentConversions()
1833 aggregate->getSequence()[i] = arg; in addInputArgumentConversions()
7383 TVariable* variable = symbol->getAsVariable(); in declareVariable() local
7384 if (! variable) { in declareVariable()
7388 initNode = executeInitializer(loc, initializer, variable); in declareVariable()
7422 TVariable* variable = new TVariable(nameString, type); in makeInternalVariable() local
7423 symbolTable.makeInternalVariable(*variable); in makeInternalVariable()
7425 return variable; in makeInternalVariable()
7437 TVariable* variable = new TVariable(&identifier, type); in declareNonArray() local
7444 if (symbolTable.insert(*variable)) { in declareNonArray()
7446 trackLinkage(*variable); in declareNonArray()
7447 return variable; in declareNonArray()
7450 error(loc, "redefinition", variable->getName().c_str(), ""); in declareNonArray()
7460 …eContext::executeInitializer(const TSourceLoc& loc, TIntermTyped* initializer, TVariable* variable) in executeInitializer() argument
7471 TStorageQualifier qualifier = variable->getType().getQualifier().storage; in executeInitializer()
7485 variable->getType().getStorageQualifierString(), ""); in executeInitializer()
7492 if (variable->getType().containsUnsizedArray()) { in executeInitializer()
7496 if (variable->getType().containsOpaque()) { in executeInitializer()
7500 variable->getWritableType().getQualifier().setNullInit(); in executeInitializer()
7504 arrayObjectCheck(loc, variable->getType(), "array initializer"); in executeInitializer()
7516 skeletalType.shallowCopy(variable->getType()); in executeInitializer()
7524 variable->getWritableType().getQualifier().makeTemporary(); in executeInitializer()
7529 if (initializer->getType().isSizedArray() && variable->getType().isUnsizedArray()) in executeInitializer()
7530variable->getWritableType().changeOuterArraySize(initializer->getType().getOuterArraySize()); in executeInitializer()
7533 if (initializer->getType().isArrayOfArrays() && variable->getType().isArrayOfArrays() && in executeInitializer()
7535 variable->getType().getArraySizes()->getNumDims()) { in executeInitializer()
7537 for (int d = 1; d < variable->getType().getArraySizes()->getNumDims(); ++d) { in executeInitializer()
7538 if (variable->getType().getArraySizes()->getDimSize(d) == UnsizedArraySize) { in executeInitializer()
7539 variable->getWritableType().getArraySizes()->setDimSize(d, in executeInitializer()
7548 variable->getType().getCompleteString(intermediate.getEnhancedMsgs()).c_str()); in executeInitializer()
7549 variable->getWritableType().getQualifier().makeTemporary(); in executeInitializer()
7555 variable->getType().getCompleteString(intermediate.getEnhancedMsgs()).c_str()); in executeInitializer()
7556 variable->getWritableType().getQualifier().makeTemporary(); in executeInitializer()
7566 variable->getWritableType().getQualifier().storage = EvqConstReadOnly; in executeInitializer()
7589 initializer = intermediate.addConversion(EOpAssign, variable->getType(), initializer); in executeInitializer()
7591 variable->getType() != initializer->getType()) { in executeInitializer()
7593 variable->getType().getStorageQualifierString(), ""); in executeInitializer()
7594 variable->getWritableType().getQualifier().makeTemporary(); in executeInitializer()
7603 variable->setConstArray(initializer->getAsConstantUnion()->getConstArray()); in executeInitializer()
7606 variable->getWritableType().getQualifier().makeSpecConstant(); in executeInitializer()
7610 variable->setConstSubtree(initializer); in executeInitializer()
7615 TIntermSymbol* intermSymbol = intermediate.addSymbol(*variable, loc); in executeInitializer()
8525 TVariable& variable = *new TVariable(instanceName, blockType); in declareBlock() local
8526 if (! symbolTable.insert(variable)) { in declareBlock()
8530 error(loc, "block instance name redefinition", variable.getName().c_str(), ""); in declareBlock()
8536 layoutObjectCheck(loc, variable); in declareBlock()
8541 ioArraySymbolResizeList.push_back(&variable); in declareBlock()
8544 fixIoArraySize(loc, variable.getWritableType()); in declareBlock()
8548 trackLinkage(variable); in declareBlock()