Home
last modified time | relevance | path

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

/external/angle/src/compiler/translator/tree_ops/
DDeferGlobalInitializers.cpp52 TIntermSymbol *symbolNode = init->getLeft()->getAsSymbolNode(); in GetDeferredInitializers() local
53 ASSERT(symbolNode); in GetDeferredInitializers()
67 ASSERT(symbolNode->getQualifier() == EvqConst || in GetDeferredInitializers()
68 symbolNode->getQualifier() == EvqGlobal); in GetDeferredInitializers()
69 if (symbolNode->getQualifier() == EvqConst) in GetDeferredInitializers()
71 variablesToReplaceOut->push_back(&symbolNode->variable()); in GetDeferredInitializers()
75 new TIntermBinary(EOpAssign, symbolNode->deepCopy(), init->getRight()); in GetDeferredInitializers()
79 declaration->replaceChildNode(init, symbolNode); in GetDeferredInitializers()
84 TIntermSymbol *symbolNode = declarator->getAsSymbolNode(); in GetDeferredInitializers() local
85 ASSERT(symbolNode); in GetDeferredInitializers()
[all …]
DScalarizeVecAndMatConstructorArgs.cpp29 TIntermBinary *ConstructVectorIndexBinaryNode(TIntermSymbol *symbolNode, int index) in ConstructVectorIndexBinaryNode() argument
31 return new TIntermBinary(EOpIndexDirect, symbolNode, CreateIndexNode(index)); in ConstructVectorIndexBinaryNode()
34 TIntermBinary *ConstructMatrixIndexBinaryNode(TIntermSymbol *symbolNode, int colIndex, int rowIndex) in ConstructMatrixIndexBinaryNode() argument
36 TIntermBinary *colVectorNode = ConstructVectorIndexBinaryNode(symbolNode, colIndex); in ConstructMatrixIndexBinaryNode()
146 TIntermSymbol *symbolNode = CreateTempSymbolNode(argVariable); in scalarizeArgs() local
147 TIntermBinary *newNode = ConstructVectorIndexBinaryNode(symbolNode, index); in scalarizeArgs()
153 TIntermSymbol *symbolNode = CreateTempSymbolNode(argVariable); in scalarizeArgs() local
154 sequence->push_back(symbolNode); in scalarizeArgs()
168 TIntermSymbol *symbolNode = CreateTempSymbolNode(argVariable); in scalarizeArgs() local
170 ConstructMatrixIndexBinaryNode(symbolNode, colIndex, rowIndex); in scalarizeArgs()
[all …]
DRemoveUnreferencedVariables.cpp247 TIntermSymbol *symbolNode = declarator->getAsSymbolNode(); in visitDeclaration() local
248 if (symbolNode != nullptr) in visitDeclaration()
250 canRemoveVariable = (*mSymbolIdRefCounts)[symbolNode->uniqueId().get()] == 1u || in visitDeclaration()
251 symbolNode->variable().symbolType() == SymbolType::Empty; in visitDeclaration()
/external/angle/src/compiler/translator/TranslatorMetalDirect/
DRewriteGlobalQualifierDecls.cpp25 TIntermSymbol *symbolNode = nullptr; in visitDeclarationPre() local
29 symbolNode = initNode->getLeft()->getAsSymbolNode(); in visitDeclarationPre()
33 symbolNode = declaratorNode->getAsSymbolNode(); in visitDeclarationPre()
36 ASSERT(symbolNode); in visitDeclarationPre()
37 const TVariable &var = symbolNode->variable(); in visitDeclarationPre()
67 TIntermSymbol &symbolNode = *gqDeclNode.getSymbol(); in visitGlobalQualifierDeclarationPre() local
68 const TVariable &var = symbolNode.variable(); in visitGlobalQualifierDeclarationPre()
77 return *new TIntermDeclaration{&symbolNode}; in visitGlobalQualifierDeclarationPre()
DReduceInterfaceBlocks.cpp39 if (TIntermSymbol *symbolNode = node.getAsSymbolNode()) in visitDeclarationPre() local
41 const TVariable &var = symbolNode->variable(); in visitDeclarationPre()
89 PreResult visitSymbolPre(TIntermSymbol &symbolNode) override in visitSymbolPre() argument
91 const TVariable &var = symbolNode.variable(); in visitSymbolPre()
107 return symbolNode; in visitSymbolPre()
DDiscoverDependentFunctions.cpp38 void visitSymbol(TIntermSymbol *symbolNode) override in visitSymbol() argument
40 const TVariable &var = symbolNode->variable(); in visitSymbol()
45 const TFunction *owner = discoverEnclosingFunction(symbolNode); in visitSymbol()
DMapSymbols.cpp28 PostResult visitSymbolPost(TIntermSymbol &symbolNode) override in visitSymbolPost() argument
30 return mMap(getParentFunction(), symbolNode); in visitSymbolPost()
DAstHelpers.cpp23 TIntermSymbol *symbolNode; in ViewDeclaration() local
24 if ((symbolNode = childNode->getAsSymbolNode())) in ViewDeclaration()
26 return {*symbolNode, nullptr}; in ViewDeclaration()
33 symbolNode = initNode->getLeft()->getAsSymbolNode(); in ViewDeclaration()
34 ASSERT(symbolNode); in ViewDeclaration()
35 return {*symbolNode, initNode->getRight()}; in ViewDeclaration()
DRewriteKeywords.cpp353 PostResult visitSymbolPost(TIntermSymbol &symbolNode) override in visitSymbolPost() argument
355 const TVariable &var = symbolNode.variable(); in visitSymbolPost()
361 return symbolNode; in visitSymbolPost()
DToposortStructs.cpp222 if (TIntermSymbol *symbolNode = childNode.getAsSymbolNode()) in GetAsDeclaredStructure() local
224 const TVariable &var = symbolNode->variable(); in GetAsDeclaredStructure()
DEmitMetal.cpp1309 void GenMetalTraverser::visitSymbol(TIntermSymbol *symbolNode) in visitSymbol() argument
1311 const TVariable &var = symbolNode->variable(); in visitSymbol()
2121 if (TIntermSymbol *symbolNode = childNode.getAsSymbolNode()) in NewlinePad() local
2123 const TVariable &var = symbolNode->variable(); in NewlinePad()
2209 if (TIntermSymbol *symbolNode = node.getAsSymbolNode()) in visitDeclaration() local
2211 const TVariable &var = symbolNode->variable(); in visitDeclaration()
/external/angle/src/compiler/translator/
DShaderStorageBlockOutputHLSL.cpp430 const TIntermSymbol *symbolNode = node->getAsSymbolNode(); in collectShaderStorageBlocks() local
431 const TType &type = symbolNode->getType(); in collectShaderStorageBlocks()
433 const TVariable &variable = symbolNode->variable(); in collectShaderStorageBlocks()
480 const TIntermSymbol *symbolNode = node->getAsSymbolNode(); in traverseSSBOAccess() local
481 const TVariable &variable = symbolNode->variable(); in traverseSSBOAccess()
482 const TInterfaceBlock *interfaceBlock = symbolNode->getType().getInterfaceBlock(); in traverseSSBOAccess()
516 if (TIntermSymbol *symbolNode = node->getAsSymbolNode()) in traverseNode() local
518 const TVariable &variable = symbolNode->variable(); in traverseNode()
DOutputGLSLBase.cpp915 TIntermSymbol *symbolNode = variable->getAsSymbolNode(); in visitDeclaration() local
916 if (symbolNode == nullptr) in visitDeclaration()
920 symbolNode = variable->getAsBinaryNode()->getLeft()->getAsSymbolNode(); in visitDeclaration()
922 ASSERT(symbolNode); in visitDeclaration()
924 if (symbolNode->getName() != "gl_ClipDistance" && in visitDeclaration()
925 symbolNode->getName() != "gl_CullDistance") in visitDeclaration()
928 writeLayoutQualifier(symbolNode); in visitDeclaration()
935 writeVariableType(variable->getType(), &symbolNode->variable(), false); in visitDeclaration()
936 if (symbolNode->variable().symbolType() != SymbolType::Empty) in visitDeclaration()
DOutputHLSL.cpp100 const TIntermSymbol *symbolNode = node->getAsSymbolNode(); in GetInterfaceBlockOfUniformBlockNearestIndexOperator() local
101 if (symbolNode) in GetInterfaceBlockOfUniformBlockNearestIndexOperator()
103 const TVariable &variable = symbolNode->variable(); in GetInterfaceBlockOfUniformBlockNearestIndexOperator()
1511 TIntermSymbol *symbolNode = node->getLeft()->getAsSymbolNode(); in visitBinary() local
1512 ASSERT(symbolNode); in visitBinary()
1516 ASSERT(symbolNode->getQualifier() != EvqGlobal || initializer->hasConstantValue()); in visitBinary()
1523 if (writeSameSymbolInitializer(out, symbolNode, initializer)) in visitBinary()
1528 else if (writeConstantInitialization(out, symbolNode, initializer)) in visitBinary()
3401 TIntermSymbol *symbolNode, in writeSameSymbolInitializer() argument
3404 ASSERT(symbolNode->variable().symbolType() != SymbolType::Empty); in writeSameSymbolInitializer()
[all …]
DOutputHLSL.h136 TIntermSymbol *symbolNode,
140 TIntermSymbol *symbolNode,
DCollectVariables.cpp1229 TIntermSymbol *symbolNode = blockNode->getAsSymbolNode(); in visitBinary() local
1230 ASSERT(symbolNode); in visitBinary()
1231 recordBuiltInVaryingUsed(symbolNode->variable(), &mPerVertexInAdded, mInputVaryings); in visitBinary()
1240 TIntermSymbol *symbolNode = blockNode->getAsSymbolNode(); in visitBinary() local
1241 ASSERT(symbolNode); in visitBinary()
1242 recordBuiltInVaryingUsed(symbolNode->variable(), &mPerVertexOutAdded, mOutputVaryings); in visitBinary()
DTranslatorMetalDirect.cpp100 TIntermSymbol *symbolNode = declarator->getAsSymbolNode(); in visitDeclaration() local
101 if (symbolNode && symbolNode->variable().symbolType() == SymbolType::Empty) in visitDeclaration()
DParseContext.cpp505 TIntermSymbol *symbolNode = node->getAsSymbolNode(); in markStaticReadIfSymbol() local
506 if (symbolNode) in markStaticReadIfSymbol()
508 symbolTable.markStaticRead(symbolNode->variable()); in markStaticReadIfSymbol()
/external/deqp-deps/glslang/glslang/MachineIndependent/
DlinkValidate.cpp1069 const TIntermSymbol& symbolNode = *linkerObjects[i]->getAsSymbolNode(); in userOutputUsed() local
1070 if (symbolNode.getQualifier().storage == EvqVaryingOut && in userOutputUsed()
1071 symbolNode.getName().compare(0, 3, "gl_") != 0 && in userOutputUsed()
1072 inIoAccessed(symbolNode.getName())) { in userOutputUsed()
DParseHelper.cpp623 TIntermSymbol* symbolNode = base->getAsSymbolNode(); in handleIoResizeArrayAccess() local
624 assert(symbolNode); in handleIoResizeArrayAccess()
625 if (! symbolNode) in handleIoResizeArrayAccess()
629 if (symbolNode->getType().isUnsizedArray()) { in handleIoResizeArrayAccess()
630 int newSize = getIoArrayImplicitSize(symbolNode->getType().getQualifier()); in handleIoResizeArrayAccess()
632 symbolNode->getWritableType().changeOuterArraySize(newSize); in handleIoResizeArrayAccess()
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/
DlinkValidate.cpp1398 const TIntermSymbol& symbolNode = *linkerObjects[i]->getAsSymbolNode(); in userOutputUsed() local
1399 if (symbolNode.getQualifier().storage == EvqVaryingOut && in userOutputUsed()
1400 symbolNode.getName().compare(0, 3, "gl_") != 0 && in userOutputUsed()
1401 inIoAccessed(symbolNode.getName())) { in userOutputUsed()
DParseHelper.cpp725 TIntermSymbol* symbolNode = base->getAsSymbolNode(); in handleIoResizeArrayAccess() local
726 assert(symbolNode); in handleIoResizeArrayAccess()
727 if (! symbolNode) in handleIoResizeArrayAccess()
731 if (symbolNode->getType().isUnsizedArray()) { in handleIoResizeArrayAccess()
732 int newSize = getIoArrayImplicitSize(symbolNode->getType().getQualifier()); in handleIoResizeArrayAccess()
734 symbolNode->getWritableType().changeOuterArraySize(newSize); in handleIoResizeArrayAccess()
/external/deqp-deps/glslang/glslang/HLSL/
DhlslParseHelper.cpp1373 const TIntermSymbol& symbolNode = *base->getAsSymbolNode(); in flattenAccess() local
1374 … TIntermTyped* flattened = flattenAccess(symbolNode.getId(), member, base->getQualifier().storage, in flattenAccess()
1375 dereferencedType, symbolNode.getFlattenSubset()); in flattenAccess()
2779 const TIntermSymbol* symbolNode = node->getAsSymbolNode(); in handleAssign() local
2780 if (symbolNode != nullptr) in handleAssign()
2781 return symbolNode; in handleAssign()
9760 …const auto addToLinkage = [&](const TType& type, const TString* name, TIntermSymbol** symbolNode) { in addPatchConstantInvocation() argument
9773 if (symbolNode != nullptr) in addPatchConstantInvocation()
9774 *symbolNode = intermediate.addSymbol(variable); in addPatchConstantInvocation()
/external/angle/third_party/vulkan-deps/glslang/src/glslang/HLSL/
DhlslParseHelper.cpp1373 const TIntermSymbol& symbolNode = *base->getAsSymbolNode(); in flattenAccess() local
1374 … TIntermTyped* flattened = flattenAccess(symbolNode.getId(), member, base->getQualifier().storage, in flattenAccess()
1375 dereferencedType, symbolNode.getFlattenSubset()); in flattenAccess()
2779 const TIntermSymbol* symbolNode = node->getAsSymbolNode(); in handleAssign() local
2780 if (symbolNode != nullptr) in handleAssign()
2781 return symbolNode; in handleAssign()
9764 …const auto addToLinkage = [&](const TType& type, const TString* name, TIntermSymbol** symbolNode) { in addPatchConstantInvocation() argument
9777 if (symbolNode != nullptr) in addPatchConstantInvocation()
9778 *symbolNode = intermediate.addSymbol(variable); in addPatchConstantInvocation()