/external/angle/src/compiler/translator/tree_ops/ |
D | RewriteStructSamplersOld.cpp | 93 mSymbolTable->push(); in Traverser() 96 ~Traverser() override { mSymbolTable->pop(); } in ~Traverser() 149 static_cast<const TVariable *>(mSymbolTable->findUserDefined(newName)); in visitBinary() 173 const TSymbol *foundFunction = mSymbolTable->findUserDefined(function->name()); in visitFunctionPrototype() 182 mSymbolTable->declareUserDefinedFunction(newFunction, true); in visitFunctionPrototype() 196 mSymbolTable->push(); in visitFunctionDefinition() 201 mSymbolTable->pop(); in visitFunctionDefinition() 220 TFunction *newFunction = mSymbolTable->findUserDefinedFunction(function->name()); in visitAggregate() 287 mSymbolTable->findUserDefined(fieldType.getStruct()->name()); in stripStructSpecifierSamplers() 315 new TStructure(mSymbolTable, structure->name(), newFieldList, structure->symbolType()); in stripStructSpecifierSamplers() [all …]
|
D | RewriteCubeMapSamplersAs2DArray.cpp | 261 mRetyper.convertFunctionPrototype(mSymbolTable, function); in visitFunctionPrototype() 360 new TVariable(mSymbolTable, samplerCubeVar->name(), newType, SymbolType::UserDefined); in declareSampler2DArray() 468 new TVariable(mSymbolTable, ImmutableString("P"), vec3Type, SymbolType::AngleInternal); in declareCoordTranslationFunction() 469 TVariable *dPdxVar = new TVariable(mSymbolTable, ImmutableString("dPdx"), vec3Type, in declareCoordTranslationFunction() 471 TVariable *dPdyVar = new TVariable(mSymbolTable, ImmutableString("dPdy"), vec3Type, in declareCoordTranslationFunction() 478 TVariable *dUVdxVar = new TVariable(mSymbolTable, ImmutableString("dUVdx"), outVec2Type, in declareCoordTranslationFunction() 480 TVariable *dUVdyVar = new TVariable(mSymbolTable, ImmutableString("dUVdy"), outVec2Type, in declareCoordTranslationFunction() 504 TIntermSymbol *absX = new TIntermSymbol(CreateTempVariable(mSymbolTable, floatType)); in declareCoordTranslationFunction() 505 TIntermSymbol *absY = new TIntermSymbol(CreateTempVariable(mSymbolTable, floatType)); in declareCoordTranslationFunction() 506 TIntermSymbol *absZ = new TIntermSymbol(CreateTempVariable(mSymbolTable, floatType)); in declareCoordTranslationFunction() [all …]
|
D | RewriteStructSamplers.cpp | 313 mSymbolTable->push(); in Traverser() 316 ~Traverser() override { mSymbolTable->pop(); } in ~Traverser() 388 static_cast<const TVariable *>(mSymbolTable->findUserDefined(newName)); in visitBinary() 431 const TSymbol *foundFunction = mSymbolTable->findUserDefined(function->name()); in visitFunctionPrototype() 440 mSymbolTable->declareUserDefinedFunction(newFunction, true); in visitFunctionPrototype() 454 mSymbolTable->push(); in visitFunctionDefinition() 459 mSymbolTable->pop(); in visitFunctionDefinition() 481 function, newArguments, mSymbolTable, &mFunctionInstantiations, &mFunctionMap, nullptr); in visitAggregate() 550 mSymbolTable->findUserDefined(fieldType.getStruct()->name()); in stripStructSpecifierSamplers() 578 new TStructure(mSymbolTable, structure->name(), newFieldList, structure->symbolType()); in stripStructSpecifierSamplers() [all …]
|
D | RemoveDynamicIndexing.cpp | 316 GetIndexFunctionDefinition(type.first, false, *type.second, mSymbolTable)); in insertHelperDefinitions() 321 GetIndexFunctionDefinition(type.first, true, *type.second, mSymbolTable)); in insertHelperDefinitions() 376 TVariable *indexVariable = DeclareTempVariable(mSymbolTable, node->getRight(), in visitBinary() 410 new TFunction(mSymbolTable, indexingFunctionName, SymbolType::AngleInternal, in visitBinary() 413 mSymbolTable, kBaseName, GetBaseType(type, false), SymbolType::AngleInternal)); in visitBinary() 415 new TVariable(mSymbolTable, kIndexName, kIndexType, SymbolType::AngleInternal)); in visitBinary() 460 new TFunction(mSymbolTable, functionName, SymbolType::AngleInternal, in visitBinary() 462 indexedWriteFunction->addParameter(new TVariable(mSymbolTable, kBaseName, in visitBinary() 466 mSymbolTable, kIndexName, kIndexType, SymbolType::AngleInternal)); in visitBinary() 470 mSymbolTable, kValueName, static_cast<const TType *>(valueType), in visitBinary() [all …]
|
D | RewriteRowMajorMatrices.cpp | 595 new TInterfaceBlock(mSymbolTable, block->name(), newFields, blockLayoutQualifier, in convertInterfaceBlock() 621 TVariable *newVariable = new TVariable(mSymbolTable, variableName, newType, in convertInterfaceBlock() 681 new TVariable(mSymbolTable, variable->name(), newType, variable->symbolType(), in convertNamelessInterfaceBlockField() 717 new TVariable(mSymbolTable, kEmptyImmutableString, StaticType::GetBasic<EbtUInt>(), in convertStruct() 720 TStructure *newStruct = new TStructure(mSymbolTable, newStructTypeName->name(), newFields, in convertStruct() 724 new TVariable(mSymbolTable, kEmptyImmutableString, newType, SymbolType::Empty); in convertStruct() 893 TOperator op = GetIndex(mSymbolTable, ancestor, &indices, &prependStatements); in transformExpression() 937 ReplicateIndexNode(mSymbolTable, ancestor, baseExpression, &indices); in transformExpression() 1024 CopyToTempVariable(mSymbolTable, readExpression, &prependStatements); in transformExpression() 1056 CreateTempVariable(mSymbolTable, &originalExpression->getAsTyped()->getType()); in transformExpression() [all …]
|
D | NameEmbeddedUniformStructs.cpp | 60 TStructure *structure = new TStructure(mSymbolTable, kEmptyImmutableString, in doReplacement() 66 new TVariable(mSymbolTable, kEmptyImmutableString, namedType, SymbolType::Empty); in doReplacement() 82 TVariable *newVar = new TVariable(mSymbolTable, asSymbol->getName(), uniformType, in doReplacement()
|
D | RewriteAtomicCounters.cpp | 202 mRetyper.convertFunctionPrototype(mSymbolTable, function); in visitFunctionPrototype() 355 TVariable *bindingOffset = new TVariable(mSymbolTable, atomicCounterVar->name(), in declareAtomicCounter() 394 new TStructure(mSymbolTable, kAtomicCounterTypeName, fields, SymbolType::AngleInternal); in declareAtomicCounterType() 398 TVariable *emptyVariable = new TVariable(mSymbolTable, kEmptyImmutableString, in declareAtomicCounterType() 423 new TVariable(mSymbolTable, param->name(), newType, SymbolType::UserDefined); in convertFunctionParameter() 552 TVariable *modified = CreateTempVariable(mSymbolTable, mAtomicCounterType); in convertFunctionArgument() 581 "memoryBarrierBuffer", new TIntermSequence, *mSymbolTable, 310); in convertBuiltinFunction() 628 kAtomicAddFunction, substituteArguments, *mSymbolTable, 310); in convertBuiltinFunction()
|
D | UnfoldShortCircuitToIf.cpp | 79 TVariable *resultVariable = CreateTempVariable(mSymbolTable, boolType); in visitBinary() 106 TVariable *resultVariable = CreateTempVariable(mSymbolTable, boolType); in visitBinary() 147 TVariable *resultVariable = DeclareTempVariable(mSymbolTable, new TType(node->getType()), in visitTernary()
|
D | RemovePow.cpp | 62 TIntermTyped *log = CreateBuiltInFunctionCallNode("log2", logArgs, *mSymbolTable, 100); in visitAggregate() 71 TIntermTyped *exp = CreateBuiltInFunctionCallNode("exp2", expArgs, *mSymbolTable, 100); in visitAggregate()
|
D | SeparateExpressionsReturningArrays.cpp | 78 DeclareTempVariable(mSymbolTable, node->getLeft(), EvqTemporary, &arrayVariableDeclaration); in visitBinary() 100 TVariable *arrayVariable = DeclareTempVariable(mSymbolTable, node->shallowCopy(), EvqTemporary, in visitAggregate()
|
D | EmulateGLFragColorBroadcast.cpp | 59 ReferenceBuiltInVariable(kGlFragDataString, *mSymbolTable, mShaderVersion); in constructGLFragDataNode() 100 return RunAtTheEndOfShader(compiler, root, broadcastBlock, mSymbolTable); in broadcastGLFragColor()
|
D | ArrayReturnValueToOutParameter.cpp | 120 new TVariable(mSymbolTable, kReturnValueVariableName, returnValueVariableType, in visitFunctionPrototype() 122 TFunction *func = new TFunction(mSymbolTable, node->getFunction()->name(), in visitFunctionPrototype() 166 TVariable *returnValue = DeclareTempVariable(mSymbolTable, new TType(node->getType()), in visitAggregate()
|
D | EmulatePrecision.cpp | 710 TFunction *func = new TFunction(mSymbolTable, functionName, SymbolType::AngleInternal, in getInternalFunction() 734 parameters.push_back(new TVariable(mSymbolTable, kParamXName, in createRoundingFunctionCallNode() 762 parameters.push_back(new TVariable(mSymbolTable, kParamXName, in createCompoundAssignmentFunctionCallNode() 768 parameters.push_back(new TVariable(mSymbolTable, kParamYName, in createCompoundAssignmentFunctionCallNode()
|
D | NameNamelessUniformBuffers.cpp | 55 TVariable *newVariable = new TVariable(mSymbolTable, kEmptyImmutableString, &type, in visitDeclaration()
|
D | RecordConstantPrecision.cpp | 141 TVariable *variable = DeclareTempVariable(mSymbolTable, node, EvqConst, &variableDeclaration); in visitConstantUnion()
|
D | RewriteDoWhile.cpp | 76 TVariable *conditionVariable = CreateTempVariable(mSymbolTable, boolType); in visitBlock()
|
D | ExpandIntegerPowExpressions.cpp | 118 DeclareTempVariable(mSymbolTable, lhs, EvqTemporary, &lhsVariableDeclaration); in visitAggregate()
|
D | RewriteElseBlocks.cpp | 74 DeclareTempVariable(mSymbolTable, ifElse->getCondition(), EvqTemporary, &storeCondition); in rewriteIfElse()
|
D | PruneNoOps.cpp | 119 new TVariable(mSymbolTable, kEmptyImmutableString, type, SymbolType::Empty); in visitDeclaration()
|
D | RewriteAtomicFunctionExpressions.cpp | 108 DeclareTempVariable(mSymbolTable, type, EvqTemporary, &variableDeclaration); in getTempVariable()
|
D | SimplifyLoopConditions.cpp | 153 TVariable *conditionVariable = CreateTempVariable(mSymbolTable, boolType); in traverseLoop()
|
/external/angle/src/compiler/translator/ |
D | Compiler.cpp | 387 TParseContext parseContext(mSymbolTable, mExtensionBehavior, mShaderType, mShaderSpec, in compileTreeImpl() 395 TScopedSymbolTableLevel globalLevel(&mSymbolTable); in compileTreeImpl() 396 ASSERT(mSymbolTable.atGlobalLevel()); in compileTreeImpl() 475 mSymbolTable.setGlobalInvariant(mPragma.stdgl.invariantAll); in setASTMetadata() 530 !ValidateLimitations(root, mShaderType, &mSymbolTable, &mDiagnostics)) in checkAndSimplifyAST() 535 if (!ValidateFragColorAndFragData(mShaderType, mShaderVersion, mSymbolTable, &mDiagnostics)) in checkAndSimplifyAST() 556 if (!PruneNoOps(this, root, &mSymbolTable)) in checkAndSimplifyAST() 571 highPrecisionSupported, &mSymbolTable)) in checkAndSimplifyAST() 601 if (!ReplaceShadowingVariables(this, root, &mSymbolTable)) in checkAndSimplifyAST() 638 this, root, mNumViews, mShaderType, compileOptions, mOutputType, &mSymbolTable)) in checkAndSimplifyAST() [all …]
|
D | CollectVariables.cpp | 308 info.isInvariant = mSymbolTable->isVaryingInvariant(variable); in recordBuiltInVaryingUsed() 680 variableOut->staticUse = mSymbolTable->isStaticallyUsed(variable); in setCommonVariableProperties() 730 if (mSymbolTable->isVaryingInvariant(variable.variable()) || type.isInvariant()) in recordVarying() 762 blockSymbol = mSymbolTable->getGlInVariableWithArraySize(); in recordInterfaceBlock() 766 blockSymbol = mSymbolTable->findGlobal(ImmutableString(instanceName)); in recordInterfaceBlock() 770 mSymbolTable->isStaticallyUsed(*static_cast<const TVariable *>(blockSymbol)); in recordInterfaceBlock() 797 const TSymbol *fieldSymbol = mSymbolTable->findGlobal(field->name()); in recordInterfaceBlock() 800 mSymbolTable->isStaticallyUsed(*static_cast<const TVariable *>(fieldSymbol)); in recordInterfaceBlock()
|
D | Compiler.h | 126 TSymbolTable &getSymbolTable() { return mSymbolTable; } in getSymbolTable() 267 TSymbolTable mSymbolTable; variable
|
/external/angle/src/compiler/translator/tree_util/ |
D | ReplaceShadowingVariables.cpp | 98 CreateTempVariable(mSymbolTable, &symNode->variable().getType()), in visitDeclaration()
|