Home
last modified time | relevance | path

Searched refs:mSymbolTable (Results 1 – 25 of 57) sorted by relevance

123

/external/angle/src/compiler/translator/tree_ops/
DRewriteCubeMapSamplersAs2DArray.cpp292 TVariable *sampler2DArrayVar = new TVariable(mSymbolTable, samplerCubeVar->name(), newType, in declareSampler2DArray()
401 TVariable *pVar = new TVariable(mSymbolTable, ImmutableString("P"), inVec3Type, in declareCoordTranslationFunction()
403 TVariable *dPdxVar = new TVariable(mSymbolTable, ImmutableString("dPdx"), inVec3Type, in declareCoordTranslationFunction()
405 TVariable *dPdyVar = new TVariable(mSymbolTable, ImmutableString("dPdy"), inVec3Type, in declareCoordTranslationFunction()
412 TVariable *dUVdxVar = new TVariable(mSymbolTable, ImmutableString("dUVdx"), outVec2Type, in declareCoordTranslationFunction()
414 TVariable *dUVdyVar = new TVariable(mSymbolTable, ImmutableString("dUVdy"), outVec2Type, in declareCoordTranslationFunction()
438 TIntermSymbol *absX = new TIntermSymbol(CreateTempVariable(mSymbolTable, floatType)); in declareCoordTranslationFunction()
439 TIntermSymbol *absY = new TIntermSymbol(CreateTempVariable(mSymbolTable, floatType)); in declareCoordTranslationFunction()
440 TIntermSymbol *absZ = new TIntermSymbol(CreateTempVariable(mSymbolTable, floatType)); in declareCoordTranslationFunction()
444 CreateBuiltInUnaryFunctionCallNode("abs", x->deepCopy(), *mSymbolTable, 100)); in declareCoordTranslationFunction()
[all …]
DRemoveDynamicIndexing.cpp316 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 …]
DRewriteRowMajorMatrices.cpp599 new TInterfaceBlock(mSymbolTable, block->name(), newFields, blockLayoutQualifier, in convertInterfaceBlock()
625 TVariable *newVariable = new TVariable(mSymbolTable, variableName, newType, in convertInterfaceBlock()
683 TVariable *newVariable = new TVariable(mSymbolTable, variable->name(), newType, in convertNamelessInterfaceBlockField()
716 new TVariable(mSymbolTable, kEmptyImmutableString, StaticType::GetBasic<EbtUInt>(), in convertStruct()
719 TStructure *newStruct = new TStructure(mSymbolTable, newStructTypeName->name(), newFields, in convertStruct()
723 new TVariable(mSymbolTable, kEmptyImmutableString, newType, SymbolType::Empty); in convertStruct()
892 TOperator op = GetIndex(mSymbolTable, ancestor, &indices, &prependStatements); in transformExpression()
936 ReplicateIndexNode(mSymbolTable, ancestor, baseExpression, &indices); in transformExpression()
1023 CopyToTempVariable(mSymbolTable, readExpression, &prependStatements); in transformExpression()
1055 CreateTempVariable(mSymbolTable, &originalExpression->getAsTyped()->getType()); in transformExpression()
[all …]
DClampIndirectIndices.cpp41 bool valid = ClampIndirectIndices(mCompiler, node->getLeft(), mSymbolTable); in visitBinary()
43 valid = ClampIndirectIndices(mCompiler, node->getRight(), mSymbolTable); in visitBinary()
103 CreateBuiltInFunctionCallNode("clamp", &args, *mSymbolTable, useFloatClamp ? 100 : 300); in visitBinary()
DRewriteDfdy.cpp152 TIntermSymbol *tmpRotFlipXY = new TIntermSymbol(CreateTempVariable(mSymbolTable, vec2Type)); in visitAggregateWithRotation()
168 CreateBuiltInUnaryFunctionCallNode("dFdx", operand->deepCopy(), *mSymbolTable, 300); in visitAggregateWithRotation()
170 CreateBuiltInUnaryFunctionCallNode("dFdy", operand->deepCopy(), *mSymbolTable, 300); in visitAggregateWithRotation()
DEmulateGLFragColorBroadcast.cpp59 ReferenceBuiltInVariable(kGlFragDataString, *mSymbolTable, mShaderVersion); in constructGLFragDataNode()
100 return RunAtTheEndOfShader(compiler, root, broadcastBlock, mSymbolTable); in broadcastGLFragColor()
DRewriteStructSamplers.cpp481 new TStructure(mSymbolTable, structure->name(), newFieldList, structure->symbolType()); in stripStructSpecifierSamplers()
484 new TVariable(mSymbolTable, kEmptyImmutableString, newStructType, SymbolType::Empty); in stripStructSpecifierSamplers()
537 new TVariable(mSymbolTable, variable.name(), newType, variable.symbolType()); in extractStructSamplerUniforms()
613 new TVariable(mSymbolTable, nameBuilder, newType, SymbolType::AngleInternal); in extractSampler()
DRewriteAtomicCounters.cpp254 "memoryBarrierBuffer", &emptySequence, *mSymbolTable, 310); in convertBuiltinFunction()
296 kAtomicAddFunction, &substituteArguments, *mSymbolTable, 310); in convertBuiltinFunction()
DEmulatePrecision.cpp710 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()
/external/angle/src/compiler/translator/TranslatorMetalDirect/
DReduceInterfaceBlocks.cpp50 *new TStructure(&mSymbolTable, interfaceBlock->name(), in visitDeclarationPre()
52 auto &structVar = CreateStructTypeVariable(mSymbolTable, structure); in visitDeclarationPre()
55 mSymbolTable, structure, mIdGen.createNewName(interfaceBlock->name()), in visitDeclarationPre()
69 *new TStructure(&mSymbolTable, interfaceBlock->name(), in visitDeclarationPre()
71 auto &structVar = CreateStructTypeVariable(mSymbolTable, structure); in visitDeclarationPre()
73 CreateInstanceVariable(mSymbolTable, structure, Name(var), in visitDeclarationPre()
DSeparateCompoundStructDeclarations.cpp46 new TStructure(mSymbolTable, mIdGen.createNewName("__unnamed").rawName(), in visitDeclaration()
48 structVar = new TVariable(mSymbolTable, ImmutableString(""), in visitDeclaration()
54 structVar = new TVariable(mSymbolTable, ImmutableString(""), in visitDeclaration()
60 new TVariable(mSymbolTable, var.name(), instanceType, symbolType, var.extensions()); in visitDeclaration()
DRewritePipelines.cpp150 &CreateStructTypeVariable(mSymbolTable, *machinery.modifiedStruct)}); in exec()
265 auto &s = *new TStructure(&mSymbolTable, pipelineStructName.rawName(), &fields, in createInternalPipelineStruct()
268 outDeclSeq.push_back(new TIntermDeclaration{&CreateStructTypeVariable(mSymbolTable, s)}); in createInternalPipelineStruct()
330 TSymbolTable &mSymbolTable; member in __anon4e3055eb0111::PipelineFunctionEnv
349 mSymbolTable(symbolEnv.symbolTable()), in PipelineFunctionEnv()
386 newFunc = &CloneFunctionAndChangeReturnType(mSymbolTable, nullptr, func, in getUpdatedFunction()
395 variables.push_back(new TVariable(&mSymbolTable, field->name(), field->type(), in getUpdatedFunction()
398 newFunc = &CloneFunctionAndAppendParams(mSymbolTable, nullptr, func, variables); in getUpdatedFunction()
416 new TVariable(&mSymbolTable, name.rawName(), &type, name.symbolType()); in getUpdatedFunction()
421 newFunc = &CloneFunctionAndAppendParams(mSymbolTable, nullptr, func, variables); in getUpdatedFunction()
[all …]
DNameEmbeddedUniformStructsMetal.cpp70 TStructure *structure = new TStructure(mSymbolTable, kEmptyImmutableString, in doReplacement()
76 new TVariable(mSymbolTable, kEmptyImmutableString, namedType, SymbolType::Empty); in doReplacement()
92 TVariable *newVar = new TVariable(mSymbolTable, asSymbol->getName(), uniformType, in doReplacement()
DRewriteKeywords.cpp80 new TFunction(&mSymbolTable, maybeCreateNewName(function), SymbolType::AngleInternal, in createRenamed()
111 new TInterfaceBlock(&mSymbolTable, maybeCreateNewName(interfaceBlock), in createRenamed()
121 new TStructure(&mSymbolTable, maybeCreateNewName(structure), in createRenamed()
162 auto *renamed = new TVariable(&mSymbolTable, maybeCreateNewName(variable), in createRenamed()
DSymbolEnv.cpp282 : mSymbolTable(compiler.getSymbolTable()), in SymbolEnv()
321 func = new TFunction(&mSymbolTable, name.rawName(), name.symbolType(), &returnType, false); in getFunctionOverloadImpl()
325 new TVariable(&mSymbolTable, kEmptyImmutableString, &paramType, SymbolType::Empty)); in getFunctionOverloadImpl()
381 s = new TStructure(&mSymbolTable, name.rawName(), &fields, name.symbolType()); in newStructure()
416 mSampler = new TStructure(&mSymbolTable, ImmutableString("metal::sampler"), in getSamplerStruct()
DSymbolEnv.h144 TSymbolTable &symbolTable() { return mSymbolTable; }
203 TSymbolTable &mSymbolTable;
/external/angle/src/compiler/translator/
DCompiler.cpp403 TParseContext parseContext(mSymbolTable, mExtensionBehavior, mShaderType, mShaderSpec, in compileTreeImpl()
411 TScopedSymbolTableLevel globalLevel(&mSymbolTable); in compileTreeImpl()
412 ASSERT(mSymbolTable.atGlobalLevel()); in compileTreeImpl()
510 mSymbolTable.setGlobalInvariant(mPragma.stdgl.invariantAll); in setASTMetadata()
591 !ValidateLimitations(root, mShaderType, &mSymbolTable, &mDiagnostics)) in checkAndSimplifyAST()
596 if (shouldLimitTypeSizes() && !ValidateTypeSizeLimitations(root, &mSymbolTable, &mDiagnostics)) in checkAndSimplifyAST()
601 if (!ValidateFragColorAndFragData(mShaderType, mShaderVersion, mSymbolTable, &mDiagnostics)) in checkAndSimplifyAST()
629 if (!PruneNoOps(this, root, &mSymbolTable)) in checkAndSimplifyAST()
645 highPrecisionSupported, &mSymbolTable)) in checkAndSimplifyAST()
672 if (!ReplaceShadowingVariables(this, root, &mSymbolTable)) in checkAndSimplifyAST()
[all …]
DCollectVariables.cpp353 info.isInvariant = mSymbolTable->isVaryingInvariant(variable); in recordBuiltInVaryingUsed()
861 const bool staticUse = mSymbolTable->isStaticallyUsed(variable); in setCommonVariableProperties()
936 if (mSymbolTable->isVaryingInvariant(variable.variable()) || type.isInvariant()) in recordVarying()
1019 blockSymbol = mSymbolTable->getGlInVariableWithArraySize(); in recordInterfaceBlock()
1023 blockSymbol = mSymbolTable->findGlobal(ImmutableString(instanceName)); in recordInterfaceBlock()
1027 mSymbolTable->isStaticallyUsed(*static_cast<const TVariable *>(blockSymbol)); in recordInterfaceBlock()
1056 const TSymbol *fieldSymbol = mSymbolTable->findGlobal(field->name()); in recordInterfaceBlock()
1059 mSymbolTable->isStaticallyUsed(*static_cast<const TVariable *>(fieldSymbol)); in recordInterfaceBlock()
/external/angle/src/compiler/translator/tree_ops/vulkan/
DSeparateStructFromUniformDeclarations.cpp67 structure = new TStructure(mSymbolTable, kEmptyImmutableString, &structure->fields(), in doReplacement()
74 new TVariable(mSymbolTable, kEmptyImmutableString, namedType, SymbolType::Empty); in doReplacement()
91 TVariable *newVar = new TVariable(mSymbolTable, asSymbol->getName(), uniformType, in doReplacement()
DDeclarePerVertexBlocks.cpp179 TVariable *newVariable = new TVariable(mSymbolTable, variable->name(), newType, in visitSymbol()
244 new TInterfaceBlock(mSymbolTable, ImmutableString("gl_PerVertex"), fields, in declarePerVertex()
255 new TVariable(mSymbolTable, variableName, interfaceBlockType, in declarePerVertex()
292 mSymbolTable->getGlInVariableWithArraySize()->getType().getOutermostArraySize(); in declareDefaultGlIn()
/external/angle/src/compiler/translator/tree_ops/d3d/
DUnfoldShortCircuitToIf.cpp79 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()
DSeparateExpressionsReturningArrays.cpp78 DeclareTempVariable(mSymbolTable, node->getLeft(), EvqTemporary, &arrayVariableDeclaration); in visitBinary()
100 TVariable *arrayVariable = DeclareTempVariable(mSymbolTable, node->shallowCopy(), EvqTemporary, in visitAggregate()
DArrayReturnValueToOutParameter.cpp120 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()
/external/angle/src/compiler/translator/tree_util/
DReplaceClipCullDistanceVariable.cpp250 mSymbolTable(symbolTable), in ReplaceClipCullDistanceAssignments()
278 TSymbolTable *mSymbolTable; member in sh::__anona5741eba0111::ReplaceClipCullDistanceAssignments
315 new TVariable(mSymbolTable, mANGLEVarName, clipCullDistanceType, SymbolType::AngleInternal); in declareANGLEVariable()
393 return RunAtTheEndOfShader(mCompiler, mRoot, assignBlock, mSymbolTable); in assignANGLEValueToOriginalVariableImpl()
DSpecializationConstant.cpp251 : mSymbolTable(symbolTable), in SpecConst()
324 mLineRasterEmulationVar = new TVariable(mSymbolTable, kLineRasterEmulationSpecConstVarName, in getLineRasterEmulation()
338 mSurfaceRotationVar = new TVariable(mSymbolTable, kSurfaceRotationSpecConstVarName, type, in getFlipRotation()
495 mDrawableWidthVar = new TVariable(mSymbolTable, kDrawableWidthSpecConstVarName, type, in getDrawableWidth()
508 mDrawableHeightVar = new TVariable(mSymbolTable, kDrawableHeightSpecConstVarName, type, in getDrawableHeight()

123