Home
last modified time | relevance | path

Searched refs:parseContext (Results 1 – 25 of 36) sorted by relevance

12

/external/deqp-deps/glslang/glslang/MachineIndependent/
Dglslang.y142 #define parseContext (*pParseContext) macro
150 %lex-param {parseContext}
372 $$ = parseContext.handleVariable($1.loc, $1.symbol, $1.string);
386 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true);
389 $$ = parseContext.intermediate.addConstantUnion($1.i, $1.loc, true);
392 parseContext.fullIntegerCheck($1.loc, "unsigned literal");
393 $$ = parseContext.intermediate.addConstantUnion($1.u, $1.loc, true);
396 $$ = parseContext.intermediate.addConstantUnion($1.b, $1.loc, true);
400 $$ = parseContext.intermediate.addConstantUnion($1.string, $1.loc, true);
403 parseContext.explicitInt32Check($1.loc, "32-bit signed literal");
[all …]
Dglslang.m4142 #define parseContext (*pParseContext)
150 %lex-param {parseContext}
372 $$ = parseContext.handleVariable($1.loc, $1.symbol, $1.string);
386 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true);
389 $$ = parseContext.intermediate.addConstantUnion($1.i, $1.loc, true);
392 parseContext.fullIntegerCheck($1.loc, "unsigned literal");
393 $$ = parseContext.intermediate.addConstantUnion($1.u, $1.loc, true);
396 $$ = parseContext.intermediate.addConstantUnion($1.b, $1.loc, true);
400 $$ = parseContext.intermediate.addConstantUnion($1.string, $1.loc, true);
403 parseContext.explicitInt32Check($1.loc, "32-bit signed literal");
[all …]
DScan.cpp292 int yylex(YYSTYPE* glslangTokenDesc, glslang::TParseContext& parseContext) in yylex() argument
296 return parseContext.getScanContext()->tokenize(parseContext.getPpContext(), token); in yylex()
845 parseContext.error(loc, "illegal use of escape character", "\\", ""); in tokenize()
876 parseContext.error(loc, "not supported", "::", ""); in tokenize()
904 parseContext.error(loc, "unexpected token", buf, ""); in tokenize()
943 if (!parseContext.extensionTurnedOn(E_GL_EXT_terminate_invocation)) in tokenizeIdentifier()
949 if (!parseContext.extensionTurnedOn(E_GL_EXT_ray_tracing)) in tokenizeIdentifier()
955 if ((parseContext.isEsProfile() && parseContext.version < 310) || in tokenizeIdentifier()
956 (!parseContext.isEsProfile() && (parseContext.version < 430 && in tokenizeIdentifier()
957 !parseContext.extensionTurnedOn(E_GL_ARB_shader_storage_buffer_object)))) in tokenizeIdentifier()
[all …]
Dglslang_tab.cpp695 #define parseContext (*pParseContext) macro
4585 yychar = yylex (&yylval, parseContext); in yyparse()
4675 …(yyval.interm.intermTypedNode) = parseContext.handleVariable((yyvsp[0].lex).loc, (yyvsp[0].lex).sy… in yyparse()
4701 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtF… in yyparse()
4709 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyv… in yyparse()
4717 parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned literal"); in yyparse()
4718 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyv… in yyparse()
4726 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).b, (yyv… in yyparse()
4734 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string,… in yyparse()
4742 parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal"); in yyparse()
[all …]
DShaderLang.cpp244 …std::unique_ptr<TParseContextBase> parseContext(CreateParseContext(symbolTable, intermediate, vers… in InitializeSymbolTable() local
249 TPpContext ppContext(*parseContext, "", includer); in InitializeSymbolTable()
250 TScanContext scanContext(*parseContext); in InitializeSymbolTable()
251 parseContext->setScanContext(&scanContext); in InitializeSymbolTable()
252 parseContext->setPpContext(&ppContext); in InitializeSymbolTable()
271 if (! parseContext->parseShaderStrings(ppContext, input) != 0) { in InitializeSymbolTable()
966 …std::unique_ptr<TParseContextBase> parseContext(CreateParseContext(*symbolTable, intermediate, ver… in ProcessDeferred() local
969 TPpContext ppContext(*parseContext, names[numPre] ? names[numPre] : "", includer); in ProcessDeferred()
972 glslang::TScanContext scanContext(*parseContext); in ProcessDeferred()
974 parseContext->setScanContext(&scanContext); in ProcessDeferred()
[all …]
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/
Dglslang.y145 #define parseContext (*pParseContext) macro
153 %lex-param {parseContext}
393 $$ = parseContext.handleVariable($1.loc, $1.symbol, $1.string);
407 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true);
410 $$ = parseContext.intermediate.addConstantUnion($1.i, $1.loc, true);
413 parseContext.fullIntegerCheck($1.loc, "unsigned literal");
414 $$ = parseContext.intermediate.addConstantUnion($1.u, $1.loc, true);
417 $$ = parseContext.intermediate.addConstantUnion($1.b, $1.loc, true);
421 $$ = parseContext.intermediate.addConstantUnion($1.string, $1.loc, true);
424 parseContext.explicitInt32Check($1.loc, "32-bit signed literal");
[all …]
Dglslang.m4145 #define parseContext (*pParseContext)
153 %lex-param {parseContext}
393 $$ = parseContext.handleVariable($1.loc, $1.symbol, $1.string);
407 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true);
410 $$ = parseContext.intermediate.addConstantUnion($1.i, $1.loc, true);
413 parseContext.fullIntegerCheck($1.loc, "unsigned literal");
414 $$ = parseContext.intermediate.addConstantUnion($1.u, $1.loc, true);
417 $$ = parseContext.intermediate.addConstantUnion($1.b, $1.loc, true);
421 $$ = parseContext.intermediate.addConstantUnion($1.string, $1.loc, true);
424 parseContext.explicitInt32Check($1.loc, "32-bit signed literal");
[all …]
DScan.cpp292 int yylex(YYSTYPE* glslangTokenDesc, glslang::TParseContext& parseContext) in yylex() argument
296 return parseContext.getScanContext()->tokenize(parseContext.getPpContext(), token); in yylex()
857 parseContext.error(loc, "illegal use of escape character", "\\", ""); in tokenize()
888 parseContext.error(loc, "not supported", "::", ""); in tokenize()
916 parseContext.error(loc, "unexpected token", buf, ""); in tokenize()
955 if (!parseContext.extensionTurnedOn(E_GL_EXT_terminate_invocation)) in tokenizeIdentifier()
961 if (!parseContext.extensionTurnedOn(E_GL_EXT_ray_tracing)) in tokenizeIdentifier()
967 if ((parseContext.isEsProfile() && parseContext.version < 310) || in tokenizeIdentifier()
968 (!parseContext.isEsProfile() && (parseContext.version < 430 && in tokenizeIdentifier()
969 !parseContext.extensionTurnedOn(E_GL_ARB_shader_storage_buffer_object)))) in tokenizeIdentifier()
[all …]
Dglslang_tab.cpp725 #define parseContext (*pParseContext) macro
5088 yychar = yylex (&yylval, parseContext); in yyparse()
5178 …(yyval.interm.intermTypedNode) = parseContext.handleVariable((yyvsp[0].lex).loc, (yyvsp[0].lex).sy… in yyparse()
5204 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtF… in yyparse()
5212 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyv… in yyparse()
5220 parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned literal"); in yyparse()
5221 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyv… in yyparse()
5229 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).b, (yyv… in yyparse()
5237 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string,… in yyparse()
5245 parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal"); in yyparse()
[all …]
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/preprocessor/
DPpScanner.cpp147 if (ch == '#' && (ifdepth > 0 || parseContext.intermediate.getSource() == EShSourceHlsl)) { in lFloatConst()
152 parseContext.ppError(ppToken->loc, "unexpected use of", "#", ""); in lFloatConst()
158 parseContext.ppError(ppToken->loc, "expected 'INF'", "#", ""); in lFloatConst()
227 parseContext.ppError(ppToken->loc, "bad character in float exponent", "", ""); in lFloatConst()
264 if (ifdepth == 0 && parseContext.intermediate.getSource() == EShSourceGlsl) in lFloatConst()
265 parseContext.doubleCheck(ppToken->loc, "double floating-point suffix"); in lFloatConst()
267parseContext.ppError(ppToken->loc, "float literal needs a decimal point or exponent", "", ""); in lFloatConst()
268 if (parseContext.intermediate.getSource() == EShSourceGlsl) { in lFloatConst()
278 } else if (parseContext.intermediate.getSource() == EShSourceHlsl) { in lFloatConst()
283 if (ifdepth == 0 && parseContext.intermediate.getSource() == EShSourceGlsl) in lFloatConst()
[all …]
DPp.cpp103 parseContext.ppError(ppToken->loc, "must be followed by macro name", "#define", ""); in CPPdefine()
108 parseContext.reservedPpErrorCheck(ppToken->loc, ppToken->name, "#define"); in CPPdefine()
124 parseContext.ppError(ppToken->loc, "bad argument", "#define", ""); in CPPdefine()
134 parseContext.ppError(ppToken->loc, "duplicate macro parameter", "#define", ""); in CPPdefine()
144 parseContext.ppError(ppToken->loc, "missing parenthesis", "#define", ""); in CPPdefine()
151 parseContext.ppWarn(ppToken->loc, "missing space after macro name", "#define", ""); in CPPdefine()
174parseContext.ppError(defineLoc, "Macro redefined; function-like versus object-like:", "#define", in CPPdefine()
177parseContext.ppError(defineLoc, "Macro redefined; different number of arguments:", "#define", in CPPdefine()
181parseContext.ppError(defineLoc, "Macro redefined; different argument names:", "#define", in CPPdefine()
193 oldToken = existing->body.getToken(parseContext, &oldPpToken); in CPPdefine()
[all …]
DPpTokens.cpp111 int TPpContext::TokenStream::getToken(TParseContextBase& parseContext, TPpToken *ppToken) in getToken() argument
117 ppToken->loc = parseContext.getCurrentLoc(); in getToken()
123 parseContext.requireProfile(ppToken->loc, ~EEsProfile, "token pasting (##)"); in getToken()
124 parseContext.profileRequires(ppToken->loc, ~EEsProfile, 130, 0, "token pasting (##)"); in getToken()
/external/deqp-deps/glslang/glslang/MachineIndependent/preprocessor/
DPpScanner.cpp147 if (ch == '#' && (ifdepth > 0 || parseContext.intermediate.getSource() == EShSourceHlsl)) { in lFloatConst()
152 parseContext.ppError(ppToken->loc, "unexpected use of", "#", ""); in lFloatConst()
158 parseContext.ppError(ppToken->loc, "expected 'INF'", "#", ""); in lFloatConst()
227 parseContext.ppError(ppToken->loc, "bad character in float exponent", "", ""); in lFloatConst()
264 if (ifdepth == 0 && parseContext.intermediate.getSource() == EShSourceGlsl) in lFloatConst()
265 parseContext.doubleCheck(ppToken->loc, "double floating-point suffix"); in lFloatConst()
267parseContext.ppError(ppToken->loc, "float literal needs a decimal point or exponent", "", ""); in lFloatConst()
268 if (parseContext.intermediate.getSource() == EShSourceGlsl) { in lFloatConst()
278 } else if (parseContext.intermediate.getSource() == EShSourceHlsl) { in lFloatConst()
283 if (ifdepth == 0 && parseContext.intermediate.getSource() == EShSourceGlsl) in lFloatConst()
[all …]
DPp.cpp103 parseContext.ppError(ppToken->loc, "must be followed by macro name", "#define", ""); in CPPdefine()
108 parseContext.reservedPpErrorCheck(ppToken->loc, ppToken->name, "#define"); in CPPdefine()
124 parseContext.ppError(ppToken->loc, "bad argument", "#define", ""); in CPPdefine()
134 parseContext.ppError(ppToken->loc, "duplicate macro parameter", "#define", ""); in CPPdefine()
144 parseContext.ppError(ppToken->loc, "missing parenthesis", "#define", ""); in CPPdefine()
151 parseContext.ppWarn(ppToken->loc, "missing space after macro name", "#define", ""); in CPPdefine()
174parseContext.ppError(defineLoc, "Macro redefined; function-like versus object-like:", "#define", in CPPdefine()
177parseContext.ppError(defineLoc, "Macro redefined; different number of arguments:", "#define", in CPPdefine()
181parseContext.ppError(defineLoc, "Macro redefined; different argument names:", "#define", in CPPdefine()
193 oldToken = existing->body.getToken(parseContext, &oldPpToken); in CPPdefine()
[all …]
DPpTokens.cpp111 int TPpContext::TokenStream::getToken(TParseContextBase& parseContext, TPpToken *ppToken) in getToken() argument
117 ppToken->loc = parseContext.getCurrentLoc(); in getToken()
123 parseContext.requireProfile(ppToken->loc, ~EEsProfile, "token pasting (##)"); in getToken()
124 parseContext.profileRequires(ppToken->loc, ~EEsProfile, 130, 0, "token pasting (##)"); in getToken()
/external/deqp-deps/glslang/glslang/HLSL/
DhlslGrammar.cpp70 parseContext.error(token.loc, "Expected", syntax, ""); in expected()
75 parseContext.error(token.loc, "Unimplemented", error, ""); in unimplemented()
196 parseContext.warn(token.loc, "unimplemented", "immediate sampler state", ""); in acceptSamplerState()
338 parseContext.pushNamespace(*namespaceToken.string); in acceptDeclaration()
351 parseContext.popNamespace(); in acceptDeclaration()
390parseContext.error(token.loc, "in/out qualifiers are only valid on parameters", token.string->c_st… in acceptDeclaration()
402 if (parseContext.symbolTable.atGlobalLevel()) in acceptDeclaration()
403 parseContext.getFullNamespaceName(fullName); in acceptDeclaration()
408parseContext.transferTypeAttributes(token.loc, declarator.attributes, declaredType, true); in acceptDeclaration()
411 parseContext.renameShaderFunction(fullName); in acceptDeclaration()
[all …]
DhlslScanContext.h76 HlslScanContext(TParseContextBase& parseContext, TPpContext& ppContext) in HlslScanContext() argument
77 : parseContext(parseContext), ppContext(ppContext) { } in HlslScanContext()
97 TParseContextBase& parseContext; variable
DhlslGrammar.h53 HlslGrammar(HlslScanContext& scanner, HlslParseContext& parseContext) in HlslGrammar() argument
54 … : HlslTokenStream(scanner), parseContext(parseContext), intermediate(parseContext.intermediate), in HlslGrammar()
134 …HlslParseContext& parseContext; // state of parsing and helper functions for building the interme… variable
/external/angle/third_party/vulkan-deps/glslang/src/glslang/HLSL/
DhlslGrammar.cpp70 parseContext.error(token.loc, "Expected", syntax, ""); in expected()
75 parseContext.error(token.loc, "Unimplemented", error, ""); in unimplemented()
198 parseContext.warn(token.loc, "unimplemented", "immediate sampler state", ""); in acceptSamplerState()
340 parseContext.pushNamespace(*namespaceToken.string); in acceptDeclaration()
353 parseContext.popNamespace(); in acceptDeclaration()
392parseContext.error(token.loc, "in/out qualifiers are only valid on parameters", token.string->c_st… in acceptDeclaration()
404 if (parseContext.symbolTable.atGlobalLevel()) in acceptDeclaration()
405 parseContext.getFullNamespaceName(fullName); in acceptDeclaration()
410parseContext.transferTypeAttributes(token.loc, declarator.attributes, declaredType, true); in acceptDeclaration()
413 parseContext.renameShaderFunction(fullName); in acceptDeclaration()
[all …]
DhlslScanContext.h76 HlslScanContext(TParseContextBase& parseContext, TPpContext& ppContext) in HlslScanContext() argument
77 : parseContext(parseContext), ppContext(ppContext) { } in HlslScanContext()
97 TParseContextBase& parseContext; variable
DhlslGrammar.h53 HlslGrammar(HlslScanContext& scanner, HlslParseContext& parseContext) in HlslGrammar() argument
54 … : HlslTokenStream(scanner), parseContext(parseContext), intermediate(parseContext.intermediate), in HlslGrammar()
134 …HlslParseContext& parseContext; // state of parsing and helper functions for building the interme… variable
/external/angle/src/compiler/translator/
DCompiler.cpp403 TParseContext parseContext(mSymbolTable, mExtensionBehavior, mShaderType, mShaderSpec, in compileTreeImpl() local
407 parseContext.setFragmentPrecisionHighOnESSL1(mResources.FragmentPrecisionHigh == 1); in compileTreeImpl()
416 &parseContext) != 0) in compileTreeImpl()
421 if (parseContext.getTreeRoot() == nullptr) in compileTreeImpl()
426 setASTMetadata(parseContext); in compileTreeImpl()
428 if (!checkShaderVersion(&parseContext)) in compileTreeImpl()
433 TIntermBlock *root = parseContext.getTreeRoot(); in compileTreeImpl()
434 if (!checkAndSimplifyAST(root, parseContext, compileOptions)) in compileTreeImpl()
442 bool TCompiler::checkShaderVersion(TParseContext *parseContext) in checkShaderVersion() argument
450 ASSERT(parseContext); in checkShaderVersion()
[all …]
/external/swiftshader/src/OpenGL/compiler/
DCompiler.cpp122 TParseContext parseContext(symbolTable, extensionBehavior, intermediate, in compile() local
125 SetGlobalParseContext(&parseContext); in compile()
135 …(PaParseStrings(numStrings - firstSource, &shaderStrings[firstSource], nullptr, &parseContext) == … in compile()
136 (parseContext.getTreeRoot() != nullptr); in compile()
138 shaderVersion = parseContext.getShaderVersion(); in compile()
141 TIntermNode* root = parseContext.getTreeRoot(); in compile()
Ddebug.cpp30 TParseContext* parseContext = GetGlobalParseContext(); in Trace() local
31 if (parseContext) { in Trace()
39 parseContext->trace(buf); in Trace()
DTranslatorASM.cpp25 TParseContext& parseContext = *GetGlobalParseContext(); in translate() local
26 glsl::OutputASM outputASM(parseContext, shaderObject); in translate()
30 return parseContext.numErrors() == 0; in translate()

12