/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | glslang.y | 142 #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 …]
|
D | glslang.m4 | 142 #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 …]
|
D | Scan.cpp | 292 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 …]
|
D | glslang_tab.cpp | 695 #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 …]
|
D | ShaderLang.cpp | 244 …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/ |
D | glslang.y | 145 #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 …]
|
D | glslang.m4 | 145 #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 …]
|
D | Scan.cpp | 292 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 …]
|
D | glslang_tab.cpp | 725 #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/ |
D | PpScanner.cpp | 147 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() 267 … parseContext.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 …]
|
D | Pp.cpp | 103 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() 174 … parseContext.ppError(defineLoc, "Macro redefined; function-like versus object-like:", "#define", in CPPdefine() 177 … parseContext.ppError(defineLoc, "Macro redefined; different number of arguments:", "#define", in CPPdefine() 181 … parseContext.ppError(defineLoc, "Macro redefined; different argument names:", "#define", in CPPdefine() 193 oldToken = existing->body.getToken(parseContext, &oldPpToken); in CPPdefine() [all …]
|
D | PpTokens.cpp | 111 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/ |
D | PpScanner.cpp | 147 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() 267 … parseContext.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 …]
|
D | Pp.cpp | 103 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() 174 … parseContext.ppError(defineLoc, "Macro redefined; function-like versus object-like:", "#define", in CPPdefine() 177 … parseContext.ppError(defineLoc, "Macro redefined; different number of arguments:", "#define", in CPPdefine() 181 … parseContext.ppError(defineLoc, "Macro redefined; different argument names:", "#define", in CPPdefine() 193 oldToken = existing->body.getToken(parseContext, &oldPpToken); in CPPdefine() [all …]
|
D | PpTokens.cpp | 111 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/ |
D | hlslGrammar.cpp | 70 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() 390 …parseContext.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() 408 … parseContext.transferTypeAttributes(token.loc, declarator.attributes, declaredType, true); in acceptDeclaration() 411 parseContext.renameShaderFunction(fullName); in acceptDeclaration() [all …]
|
D | hlslScanContext.h | 76 HlslScanContext(TParseContextBase& parseContext, TPpContext& ppContext) in HlslScanContext() argument 77 : parseContext(parseContext), ppContext(ppContext) { } in HlslScanContext() 97 TParseContextBase& parseContext; variable
|
D | hlslGrammar.h | 53 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/ |
D | hlslGrammar.cpp | 70 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() 392 …parseContext.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() 410 … parseContext.transferTypeAttributes(token.loc, declarator.attributes, declaredType, true); in acceptDeclaration() 413 parseContext.renameShaderFunction(fullName); in acceptDeclaration() [all …]
|
D | hlslScanContext.h | 76 HlslScanContext(TParseContextBase& parseContext, TPpContext& ppContext) in HlslScanContext() argument 77 : parseContext(parseContext), ppContext(ppContext) { } in HlslScanContext() 97 TParseContextBase& parseContext; variable
|
D | hlslGrammar.h | 53 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/ |
D | Compiler.cpp | 403 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/ |
D | Compiler.cpp | 122 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()
|
D | debug.cpp | 30 TParseContext* parseContext = GetGlobalParseContext(); in Trace() local 31 if (parseContext) { in Trace() 39 parseContext->trace(buf); in Trace()
|
D | TranslatorASM.cpp | 25 TParseContext& parseContext = *GetGlobalParseContext(); in translate() local 26 glsl::OutputASM outputASM(parseContext, shaderObject); in translate() 30 return parseContext.numErrors() == 0; in translate()
|