Home
last modified time | relevance | path

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

/third_party/glslang/glslang/MachineIndependent/
Dglslang.y113 #define parseContext (*pParseContext) macro
121 %lex-param {parseContext}
356 $$ = parseContext.handleVariable($1.loc, $1.symbol, $1.string);
370 $$ = parseContext.intermediate.addConstantUnion($1.d, EbtFloat, $1.loc, true);
373 $$ = parseContext.intermediate.addConstantUnion($1.i, $1.loc, true);
376 parseContext.fullIntegerCheck($1.loc, "unsigned literal");
377 $$ = parseContext.intermediate.addConstantUnion($1.u, $1.loc, true);
380 $$ = parseContext.intermediate.addConstantUnion($1.b, $1.loc, true);
383 $$ = parseContext.intermediate.addConstantUnion($1.string, $1.loc, true);
386 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()
862 parseContext.error(loc, "illegal use of escape character", "\\", ""); in tokenize()
893 parseContext.error(loc, "not supported", "::", ""); in tokenize()
919 parseContext.error(loc, "unexpected token", buf, ""); in tokenize()
957 if (!parseContext.extensionTurnedOn(E_GL_EXT_terminate_invocation)) in tokenizeIdentifier()
963 if (!parseContext.extensionTurnedOn(E_GL_EXT_ray_tracing)) in tokenizeIdentifier()
969 if ((parseContext.isEsProfile() && parseContext.version < 310) || in tokenizeIdentifier()
970 (!parseContext.isEsProfile() && (parseContext.version < 430 && in tokenizeIdentifier()
971 !parseContext.extensionTurnedOn(E_GL_ARB_shader_storage_buffer_object)))) in tokenizeIdentifier()
[all …]
Dglslang_tab.cpp729 #define parseContext (*pParseContext) macro
5118 yychar = yylex (&yylval, parseContext); in yyparse()
5208 …(yyval.interm.intermTypedNode) = parseContext.handleVariable((yyvsp[0].lex).loc, (yyvsp[0].lex).sy… in yyparse()
5234 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).d, EbtF… in yyparse()
5242 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).i, (yyv… in yyparse()
5250 parseContext.fullIntegerCheck((yyvsp[0].lex).loc, "unsigned literal"); in yyparse()
5251 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).u, (yyv… in yyparse()
5259 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).b, (yyv… in yyparse()
5267 …(yyval.interm.intermTypedNode) = parseContext.intermediate.addConstantUnion((yyvsp[0].lex).string,… in yyparse()
5275 parseContext.explicitInt32Check((yyvsp[0].lex).loc, "32-bit signed literal"); in yyparse()
[all …]
DShaderLang.cpp251 …std::unique_ptr<TParseContextBase> parseContext(CreateParseContext(symbolTable, intermediate, vers… in InitializeSymbolTable() local
256 TPpContext ppContext(*parseContext, "", includer); in InitializeSymbolTable()
257 TScanContext scanContext(*parseContext); in InitializeSymbolTable()
258 parseContext->setScanContext(&scanContext); in InitializeSymbolTable()
259 parseContext->setPpContext(&ppContext); in InitializeSymbolTable()
278 if (! parseContext->parseShaderStrings(ppContext, input) != 0) { in InitializeSymbolTable()
942 …std::unique_ptr<TParseContextBase> parseContext(CreateParseContext(*symbolTable, intermediate, ver… in ProcessDeferred() local
945 parseContext->compileOnly = compileOnly; in ProcessDeferred()
946 TPpContext ppContext(*parseContext, names[numPre] ? names[numPre] : "", includer); in ProcessDeferred()
949 glslang::TScanContext scanContext(*parseContext); in ProcessDeferred()
[all …]
DScanContext.h54 parseContext(pc), in TScanContext()
80 TParseContextBase& parseContext; variable
/third_party/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()
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.cpp108 int TPpContext::TokenStream::getToken(TParseContextBase& parseContext, TPpToken *ppToken) in getToken() argument
114 ppToken->loc = parseContext.getCurrentLoc(); in getToken()
119 parseContext.requireProfile(ppToken->loc, ~EEsProfile, "token pasting (##)"); in getToken()
120parseContext.profileRequires(ppToken->loc, ~EEsProfile, 130, nullptr, "token pasting (##)"); in getToken()
DPpContext.h358 TParseContextBase& parseContext; variable
386parseContext.ppError(lastLineTokenLocs[curPos], "(#) can be preceded in its line only by spaces or… in scanToken()
513 int token = tokens->getToken(pp->parseContext, ppToken); in scan()
563 … bool allowed = pp->parseContext.lineContinuationCheck(input->getSourceLoc(), pp->inComment); in getch()
666 prevScanner = pp->parseContext.getScanner(); in notifyActivated()
667 pp->parseContext.setScanner(&scanner); in notifyActivated()
673 pp->parseContext.setScanner(prevScanner); in notifyDeleted()
DPpContext.cpp88 …preamble(nullptr), strings(nullptr), previous_token('\n'), parseContext(pc), includer(inclr), inCo… in TPpContext()
/third_party/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
DhlslScanContext.cpp600 parseContext.error(loc, "illegal use of escape character", "\\", ""); in tokenizeClass()
655 parseContext.error(loc, "unexpected token", buf, ""); in tokenizeClass()
657 parseContext.error(loc, "unexpected token", tokenText, ""); in tokenizeClass()
659 parseContext.error(loc, "unexpected token", "", ""); in tokenizeClass()
1041 parseContext.infoSink.info.message(EPrefixInternalError, "Unknown glslang keyword", loc); in tokenizeIdentifier()
1058 if (! parseContext.symbolTable.atBuiltInLevel()) in reservedWord()
1059 parseContext.error(loc, "Reserved word.", tokenText, "", ""); in reservedWord()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DCompiler.cpp445 TParseContext parseContext(mSymbolTable, mExtensionBehavior, mShaderType, mShaderSpec, in compileTreeImpl() local
449 parseContext.setFragmentPrecisionHighOnESSL1(mResources.FragmentPrecisionHigh == 1); in compileTreeImpl()
458 &parseContext) != 0) in compileTreeImpl()
463 if (parseContext.getTreeRoot() == nullptr) in compileTreeImpl()
468 setASTMetadata(parseContext); in compileTreeImpl()
470 if (!checkShaderVersion(&parseContext)) in compileTreeImpl()
475 TIntermBlock *root = parseContext.getTreeRoot(); in compileTreeImpl()
476 if (!checkAndSimplifyAST(root, parseContext, compileOptions)) in compileTreeImpl()
484 bool TCompiler::checkShaderVersion(TParseContext *parseContext) in checkShaderVersion() argument
492 ASSERT(parseContext); in checkShaderVersion()
[all …]
DCompiler.h282 void setASTMetadata(const TParseContext &parseContext);
285 bool checkShaderVersion(TParseContext *parseContext);
289 const TParseContext &parseContext,
/third_party/skia/third_party/externals/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()