Home
last modified time | relevance | path

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

12

/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/
Dglslang.y145 #define parseContext (*pParseContext) macro
153 %lex-param {parseContext}
396 $$ = parseContext.handleVariable($1.loc, $1.symbol, $1.string);
410 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true);
413 $$ = parseContext.intermediate.addConstantUnion($1.i, $1.loc, true);
416 parseContext.fullIntegerCheck($1.loc, "unsigned literal");
417 $$ = parseContext.intermediate.addConstantUnion($1.u, $1.loc, true);
420 $$ = parseContext.intermediate.addConstantUnion($1.b, $1.loc, true);
424 $$ = parseContext.intermediate.addConstantUnion($1.string, $1.loc, true);
427 parseContext.explicitInt32Check($1.loc, "32-bit signed literal");
[all …]
Dglslang.m4145 #define parseContext (*pParseContext)
153 %lex-param {parseContext}
396 $$ = parseContext.handleVariable($1.loc, $1.symbol, $1.string);
410 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true);
413 $$ = parseContext.intermediate.addConstantUnion($1.i, $1.loc, true);
416 parseContext.fullIntegerCheck($1.loc, "unsigned literal");
417 $$ = parseContext.intermediate.addConstantUnion($1.u, $1.loc, true);
420 $$ = parseContext.intermediate.addConstantUnion($1.b, $1.loc, true);
424 $$ = parseContext.intermediate.addConstantUnion($1.string, $1.loc, true);
427 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()
870 parseContext.error(loc, "illegal use of escape character", "\\", ""); in tokenize()
901 parseContext.error(loc, "not supported", "::", ""); in tokenize()
929 parseContext.error(loc, "unexpected token", buf, ""); in tokenize()
969 if (!parseContext.extensionTurnedOn(E_GL_EXT_terminate_invocation)) in tokenizeIdentifier()
975 if (!parseContext.extensionTurnedOn(E_GL_EXT_ray_tracing)) in tokenizeIdentifier()
981 if ((parseContext.isEsProfile() && parseContext.version < 310) || in tokenizeIdentifier()
982 (!parseContext.isEsProfile() && (parseContext.version < 430 && in tokenizeIdentifier()
983 !parseContext.extensionTurnedOn(E_GL_ARB_shader_storage_buffer_object)))) in tokenizeIdentifier()
[all …]
Dglslang_tab.cpp736 #define parseContext (*pParseContext) macro
5125 yychar = yylex (&yylval, parseContext); in yyparse()
5215 …(yyval.interm.intermTypedNode) = parseContext.handleVariable((yyvsp[0].lex).loc, (yyvsp[0].lex).sy… in yyparse()
5241 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtF… in yyparse()
5249 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyv… in yyparse()
5257 parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned literal"); in yyparse()
5258 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyv… in yyparse()
5266 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).b, (yyv… in yyparse()
5274 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string,… in yyparse()
5282 parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal"); in yyparse()
[all …]
DShaderLang.cpp248 …std::unique_ptr<TParseContextBase> parseContext(CreateParseContext(symbolTable, intermediate, vers… in InitializeSymbolTable() local
253 TPpContext ppContext(*parseContext, "", includer); in InitializeSymbolTable()
254 TScanContext scanContext(*parseContext); in InitializeSymbolTable()
255 parseContext->setScanContext(&scanContext); in InitializeSymbolTable()
256 parseContext->setPpContext(&ppContext); in InitializeSymbolTable()
275 if (! parseContext->parseShaderStrings(ppContext, input) != 0) { in InitializeSymbolTable()
967 …std::unique_ptr<TParseContextBase> parseContext(CreateParseContext(*symbolTable, intermediate, ver… in ProcessDeferred() local
970 TPpContext ppContext(*parseContext, names[numPre] ? names[numPre] : "", includer); in ProcessDeferred()
973 glslang::TScanContext scanContext(*parseContext); in ProcessDeferred()
975 parseContext->setScanContext(&scanContext); in ProcessDeferred()
[all …]
DScanContext.h54 parseContext(pc), in TScanContext()
80 TParseContextBase& parseContext; variable
/external/deqp-deps/glslang/glslang/MachineIndependent/
Dglslang.y145 #define parseContext (*pParseContext) macro
153 %lex-param {parseContext}
395 $$ = parseContext.handleVariable($1.loc, $1.symbol, $1.string);
409 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true);
412 $$ = parseContext.intermediate.addConstantUnion($1.i, $1.loc, true);
415 parseContext.fullIntegerCheck($1.loc, "unsigned literal");
416 $$ = parseContext.intermediate.addConstantUnion($1.u, $1.loc, true);
419 $$ = parseContext.intermediate.addConstantUnion($1.b, $1.loc, true);
423 $$ = parseContext.intermediate.addConstantUnion($1.string, $1.loc, true);
426 parseContext.explicitInt32Check($1.loc, "32-bit signed literal");
[all …]
Dglslang.m4145 #define parseContext (*pParseContext)
153 %lex-param {parseContext}
395 $$ = parseContext.handleVariable($1.loc, $1.symbol, $1.string);
409 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true);
412 $$ = parseContext.intermediate.addConstantUnion($1.i, $1.loc, true);
415 parseContext.fullIntegerCheck($1.loc, "unsigned literal");
416 $$ = parseContext.intermediate.addConstantUnion($1.u, $1.loc, true);
419 $$ = parseContext.intermediate.addConstantUnion($1.b, $1.loc, true);
423 $$ = parseContext.intermediate.addConstantUnion($1.string, $1.loc, true);
426 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()
868 parseContext.error(loc, "illegal use of escape character", "\\", ""); in tokenize()
899 parseContext.error(loc, "not supported", "::", ""); in tokenize()
927 parseContext.error(loc, "unexpected token", buf, ""); in tokenize()
967 if (!parseContext.extensionTurnedOn(E_GL_EXT_terminate_invocation)) in tokenizeIdentifier()
973 if (!parseContext.extensionTurnedOn(E_GL_EXT_ray_tracing)) in tokenizeIdentifier()
979 if ((parseContext.isEsProfile() && parseContext.version < 310) || in tokenizeIdentifier()
980 (!parseContext.isEsProfile() && (parseContext.version < 430 && in tokenizeIdentifier()
981 !parseContext.extensionTurnedOn(E_GL_ARB_shader_storage_buffer_object)))) in tokenizeIdentifier()
[all …]
Dglslang_tab.cpp735 #define parseContext (*pParseContext) macro
5155 yychar = yylex (&yylval, parseContext); in yyparse()
5245 …(yyval.interm.intermTypedNode) = parseContext.handleVariable((yyvsp[0].lex).loc, (yyvsp[0].lex).sy… in yyparse()
5271 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtF… in yyparse()
5279 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyv… in yyparse()
5287 parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned literal"); in yyparse()
5288 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyv… in yyparse()
5296 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).b, (yyv… in yyparse()
5304 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string,… in yyparse()
5312 parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal"); in yyparse()
[all …]
DShaderLang.cpp248 …std::unique_ptr<TParseContextBase> parseContext(CreateParseContext(symbolTable, intermediate, vers… in InitializeSymbolTable() local
253 TPpContext ppContext(*parseContext, "", includer); in InitializeSymbolTable()
254 TScanContext scanContext(*parseContext); in InitializeSymbolTable()
255 parseContext->setScanContext(&scanContext); in InitializeSymbolTable()
256 parseContext->setPpContext(&ppContext); in InitializeSymbolTable()
275 if (! parseContext->parseShaderStrings(ppContext, input) != 0) { in InitializeSymbolTable()
967 …std::unique_ptr<TParseContextBase> parseContext(CreateParseContext(*symbolTable, intermediate, ver… in ProcessDeferred() local
970 TPpContext ppContext(*parseContext, names[numPre] ? names[numPre] : "", includer); in ProcessDeferred()
973 glslang::TScanContext scanContext(*parseContext); in ProcessDeferred()
975 parseContext->setScanContext(&scanContext); in ProcessDeferred()
[all …]
DScanContext.h54 parseContext(pc), in TScanContext()
80 TParseContextBase& parseContext; variable
/external/deqp-deps/glslang/glslang/MachineIndependent/preprocessor/
DPpScanner.cpp148 if (ch == '#' && (ifdepth > 0 || parseContext.intermediate.getSource() == EShSourceHlsl)) { in lFloatConst()
153 parseContext.ppError(ppToken->loc, "unexpected use of", "#", ""); in lFloatConst()
159 parseContext.ppError(ppToken->loc, "expected 'INF'", "#", ""); in lFloatConst()
228 parseContext.ppError(ppToken->loc, "bad character in float exponent", "", ""); in lFloatConst()
265 if (ifdepth == 0 && parseContext.intermediate.getSource() == EShSourceGlsl) in lFloatConst()
266 parseContext.doubleCheck(ppToken->loc, "double floating-point suffix"); in lFloatConst()
268parseContext.ppError(ppToken->loc, "float literal needs a decimal point or exponent", "", ""); in lFloatConst()
269 if (parseContext.intermediate.getSource() == EShSourceGlsl) { in lFloatConst()
279 } else if (parseContext.intermediate.getSource() == EShSourceHlsl) { in lFloatConst()
284 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.cpp108 int TPpContext::TokenStream::getToken(TParseContextBase& parseContext, TPpToken *ppToken) in getToken() argument
114 ppToken->loc = parseContext.getCurrentLoc(); in getToken()
120 parseContext.requireProfile(ppToken->loc, ~EEsProfile, "token pasting (##)"); in getToken()
121parseContext.profileRequires(ppToken->loc, ~EEsProfile, 130, nullptr, "token pasting (##)"); in getToken()
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/preprocessor/
DPpScanner.cpp148 if (ch == '#' && (ifdepth > 0 || parseContext.intermediate.getSource() == EShSourceHlsl)) { in lFloatConst()
153 parseContext.ppError(ppToken->loc, "unexpected use of", "#", ""); in lFloatConst()
159 parseContext.ppError(ppToken->loc, "expected 'INF'", "#", ""); in lFloatConst()
228 parseContext.ppError(ppToken->loc, "bad character in float exponent", "", ""); in lFloatConst()
265 if (ifdepth == 0 && parseContext.intermediate.getSource() == EShSourceGlsl) in lFloatConst()
266 parseContext.doubleCheck(ppToken->loc, "double floating-point suffix"); in lFloatConst()
268parseContext.ppError(ppToken->loc, "float literal needs a decimal point or exponent", "", ""); in lFloatConst()
269 if (parseContext.intermediate.getSource() == EShSourceGlsl) { in lFloatConst()
279 } else if (parseContext.intermediate.getSource() == EShSourceHlsl) { in lFloatConst()
284 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.cpp108 int TPpContext::TokenStream::getToken(TParseContextBase& parseContext, TPpToken *ppToken) in getToken() argument
114 ppToken->loc = parseContext.getCurrentLoc(); in getToken()
120 parseContext.requireProfile(ppToken->loc, ~EEsProfile, "token pasting (##)"); in getToken()
121parseContext.profileRequires(ppToken->loc, ~EEsProfile, 130, nullptr, "token pasting (##)"); in getToken()
/external/angle/third_party/vulkan-deps/glslang/src/glslang/HLSL/
DhlslGrammar.cpp71 parseContext.error(token.loc, "Expected", syntax, ""); in expected()
76 parseContext.error(token.loc, "Unimplemented", error, ""); in unimplemented()
199 parseContext.warn(token.loc, "unimplemented", "immediate sampler state", ""); in acceptSamplerState()
341 parseContext.pushNamespace(*namespaceToken.string); in acceptDeclaration()
354 parseContext.popNamespace(); in acceptDeclaration()
393parseContext.error(token.loc, "in/out qualifiers are only valid on parameters", token.string->c_st… in acceptDeclaration()
405 if (parseContext.symbolTable.atGlobalLevel()) in acceptDeclaration()
406 parseContext.getFullNamespaceName(fullName); in acceptDeclaration()
411parseContext.transferTypeAttributes(token.loc, declarator.attributes, declaredType, true); in acceptDeclaration()
414 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.h54 HlslGrammar(HlslScanContext& scanner, HlslParseContext& parseContext) in HlslGrammar() argument
55 … : HlslTokenStream(scanner), parseContext(parseContext), intermediate(parseContext.intermediate), in HlslGrammar()
136 …HlslParseContext& parseContext; // state of parsing and helper functions for building the interme… variable
/external/deqp-deps/glslang/glslang/HLSL/
DhlslGrammar.cpp71 parseContext.error(token.loc, "Expected", syntax, ""); in expected()
76 parseContext.error(token.loc, "Unimplemented", error, ""); in unimplemented()
199 parseContext.warn(token.loc, "unimplemented", "immediate sampler state", ""); in acceptSamplerState()
341 parseContext.pushNamespace(*namespaceToken.string); in acceptDeclaration()
354 parseContext.popNamespace(); in acceptDeclaration()
393parseContext.error(token.loc, "in/out qualifiers are only valid on parameters", token.string->c_st… in acceptDeclaration()
405 if (parseContext.symbolTable.atGlobalLevel()) in acceptDeclaration()
406 parseContext.getFullNamespaceName(fullName); in acceptDeclaration()
411parseContext.transferTypeAttributes(token.loc, declarator.attributes, declaredType, true); in acceptDeclaration()
414 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.h54 HlslGrammar(HlslScanContext& scanner, HlslParseContext& parseContext) in HlslGrammar() argument
55 … : HlslTokenStream(scanner), parseContext(parseContext), intermediate(parseContext.intermediate), in HlslGrammar()
136 …HlslParseContext& parseContext; // state of parsing and helper functions for building the interme… variable
/external/angle/src/compiler/translator/
DCompiler.cpp474 TParseContext parseContext(mSymbolTable, mExtensionBehavior, mShaderType, mShaderSpec, in compileTreeImpl() local
478 parseContext.setFragmentPrecisionHighOnESSL1(mResources.FragmentPrecisionHigh == 1); in compileTreeImpl()
487 &parseContext) != 0) in compileTreeImpl()
492 if (!postParseChecks(parseContext)) in compileTreeImpl()
497 setASTMetadata(parseContext); in compileTreeImpl()
499 if (!checkShaderVersion(&parseContext)) in compileTreeImpl()
504 TIntermBlock *root = parseContext.getTreeRoot(); in compileTreeImpl()
505 if (!checkAndSimplifyAST(root, parseContext, compileOptions)) in compileTreeImpl()
513 bool TCompiler::checkShaderVersion(TParseContext *parseContext) in checkShaderVersion() argument
521 ASSERT(parseContext); in checkShaderVersion()
[all …]

12