ReactOS  0.4.15-dev-506-ga3ec01c
asmshader.tab.h
Go to the documentation of this file.
1 /* A Bison parser, made by GNU Bison 3.4.1. */
2 
3 /* Bison interface for Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
6  Inc.
7 
8  This program is free software: you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation, either version 3 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 
21 /* As a special exception, you may create a larger work that contains
22  part or all of the Bison parser skeleton and distribute that work
23  under terms of your choice, so long as that work isn't itself a
24  parser generator using the skeleton or a modified version thereof
25  as a parser skeleton. Alternatively, if you modify or redistribute
26  the parser skeleton itself, you may (at your option) remove this
27  special exception, which will cause the skeleton and the resulting
28  Bison output files to be licensed under the GNU General Public
29  License without this special exception.
30 
31  This special exception was added by the Free Software Foundation in
32  version 2.2 of Bison. */
33 
34 /* Undocumented macros, especially those whose name start with YY_,
35  are private implementation details. Do not rely on them. */
36 
37 #ifndef YY_ASMSHADER_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_ASMSHADER_TAB_H_INCLUDED
38 # define YY_ASMSHADER_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_ASMSHADER_TAB_H_INCLUDED
39 /* Debug traces. */
40 #ifndef YYDEBUG
41 # define YYDEBUG 0
42 #endif
43 #if YYDEBUG
44 extern int asmshader_debug;
45 #endif
46 
47 /* Token type. */
48 #ifndef YYTOKENTYPE
49 # define YYTOKENTYPE
51  {
52  INSTR_ADD = 258,
53  INSTR_NOP = 259,
54  INSTR_MOV = 260,
55  INSTR_SUB = 261,
56  INSTR_MAD = 262,
57  INSTR_MUL = 263,
58  INSTR_RCP = 264,
59  INSTR_RSQ = 265,
60  INSTR_DP3 = 266,
61  INSTR_DP4 = 267,
62  INSTR_MIN = 268,
63  INSTR_MAX = 269,
64  INSTR_SLT = 270,
65  INSTR_SGE = 271,
66  INSTR_ABS = 272,
67  INSTR_EXP = 273,
68  INSTR_LOG = 274,
69  INSTR_EXPP = 275,
70  INSTR_LOGP = 276,
71  INSTR_DST = 277,
72  INSTR_LRP = 278,
73  INSTR_FRC = 279,
74  INSTR_POW = 280,
75  INSTR_CRS = 281,
76  INSTR_SGN = 282,
77  INSTR_NRM = 283,
78  INSTR_SINCOS = 284,
79  INSTR_M4x4 = 285,
80  INSTR_M4x3 = 286,
81  INSTR_M3x4 = 287,
82  INSTR_M3x3 = 288,
83  INSTR_M3x2 = 289,
84  INSTR_DCL = 290,
85  INSTR_DEF = 291,
86  INSTR_DEFB = 292,
87  INSTR_DEFI = 293,
88  INSTR_REP = 294,
89  INSTR_ENDREP = 295,
90  INSTR_IF = 296,
91  INSTR_ELSE = 297,
92  INSTR_ENDIF = 298,
93  INSTR_BREAK = 299,
94  INSTR_BREAKP = 300,
95  INSTR_CALL = 301,
96  INSTR_CALLNZ = 302,
97  INSTR_LOOP = 303,
98  INSTR_RET = 304,
100  INSTR_LABEL = 306,
101  INSTR_SETP = 307,
103  INSTR_LIT = 309,
104  INSTR_MOVA = 310,
105  INSTR_CND = 311,
106  INSTR_CMP = 312,
111  INSTR_TEX = 317,
112  INSTR_TEXLD = 318,
129  INSTR_BEM = 335,
130  INSTR_DSX = 336,
131  INSTR_DSY = 337,
135  INSTR_PHASE = 341,
136  REG_TEMP = 342,
137  REG_OUTPUT = 343,
138  REG_INPUT = 344,
142  REG_TEXTURE = 348,
143  REG_SAMPLER = 349,
145  REG_OPOS = 351,
146  REG_OFOG = 352,
147  REG_OPTS = 353,
151  REG_VPOS = 357,
152  REG_VFACE = 358,
153  REG_ADDRESS = 359,
154  REG_LOOP = 360,
156  REG_LABEL = 362,
157  VER_VS10 = 363,
158  VER_VS11 = 364,
159  VER_VS20 = 365,
160  VER_VS2X = 366,
161  VER_VS30 = 367,
162  VER_PS10 = 368,
163  VER_PS11 = 369,
164  VER_PS12 = 370,
165  VER_PS13 = 371,
166  VER_PS14 = 372,
167  VER_PS20 = 373,
168  VER_PS2X = 374,
169  VER_PS30 = 375,
170  SHIFT_X2 = 376,
171  SHIFT_X4 = 377,
172  SHIFT_X8 = 378,
173  SHIFT_D2 = 379,
174  SHIFT_D4 = 380,
175  SHIFT_D8 = 381,
176  MOD_SAT = 382,
177  MOD_PP = 383,
179  COMP_GT = 385,
180  COMP_LT = 386,
181  COMP_GE = 387,
182  COMP_LE = 388,
183  COMP_EQ = 389,
184  COMP_NE = 390,
185  SMOD_BIAS = 391,
187  SMOD_DZ = 393,
188  SMOD_DW = 394,
189  SMOD_ABS = 395,
190  SMOD_NOT = 396,
191  SAMPTYPE_1D = 397,
192  SAMPTYPE_2D = 398,
199  USAGE_PSIZE = 405,
205  USAGE_COLOR = 411,
206  USAGE_FOG = 412,
207  USAGE_DEPTH = 413,
209  COMPONENT = 415,
210  IMMVAL = 416,
211  IMMBOOL = 417
212  };
213 #endif
214 
215 /* Value type. */
216 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
217 union YYSTYPE
218 {
219 #line 68 "asmshader.y"
220 
221  struct {
222  float val;
223  BOOL integer;
224  } immval;
225  BOOL immbool;
226  unsigned int regnum;
227  struct shader_reg reg;
228  DWORD srcmod;
230  struct {
232  DWORD idx;
233  DWORD last;
234  } wm_components;
235  DWORD swizzle;
236  struct {
237  DWORD swizzle;
238  DWORD idx;
239  } sw_components;
241  struct {
242  DWORD mod;
243  DWORD shift;
244  } modshift;
246  struct {
247  DWORD dclusage;
248  unsigned int regnum;
249  } declaration;
251  struct rel_reg rel_reg;
252  struct src_regs sregs;
253 
254 #line 255 "asmshader.tab.h"
255 
256 };
257 typedef union YYSTYPE YYSTYPE;
258 # define YYSTYPE_IS_TRIVIAL 1
259 # define YYSTYPE_IS_DECLARED 1
260 #endif
261 
262 
263 extern YYSTYPE asmshader_lval;
264 
265 int asmshader_parse (void);
266 
267 #endif /* !YY_ASMSHADER_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_ASMSHADER_TAB_H_INCLUDED */
DWORD component
int asmshader_parse(void)
enum bwriter_comparison_type comptype
DWORD shift
bwriter_comparison_type
DWORD last
struct YYSTYPE::@221 immval
DWORD writemask
BOOL integer
DWORD swizzle
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL immbool
struct YYSTYPE::@224 modshift
YYSTYPE asmshader_lval
DWORD mod
yytokentype
unsigned long DWORD
Definition: ntddk_ex.h:95
struct src_regs sregs
unsigned int regnum
bwritersampler_texture_type
enum bwritersampler_texture_type samplertype
DWORD dclusage
struct YYSTYPE::@223 sw_components
struct YYSTYPE::@225 declaration
struct shader_reg reg
DWORD srcmod
float val
DWORD idx
struct YYSTYPE::@222 wm_components