Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-04-28 | Reject conflicting struct declarations, generate struct constructor | Ian Romanick | |
2010-04-28 | glsl_type::generate_constructor_prototype now generates the function too | Ian Romanick | |
Also, change the name of the method to generate_constructor. | |||
2010-04-28 | Always return a value from ast_type_specifier::hir | Ian Romanick | |
2010-04-28 | Support structures in glsl_type::generate_constructor_prototype | Ian Romanick | |
2010-04-28 | Implement structures and arrays in ir_dereference::is_lvalue | Ian Romanick | |
2010-04-28 | Ensure that structure fields have non-NULL types | Ian Romanick | |
2010-04-28 | Ensure that anonymous structures have non-NULL names | Ian Romanick | |
2010-04-28 | Convert structure field dereferences to HIR | Ian Romanick | |
2010-04-28 | Add ir_dereference constructor for structure field dereferences | Ian Romanick | |
2010-04-28 | Add glsl_type::field_type | Ian Romanick | |
Query the type of a structure field | |||
2010-04-28 | Begin converting structure definitions to IR | Ian Romanick | |
2010-04-28 | Use IDENTIFIER instead of TYPE_NAME for structure names | Ian Romanick | |
Since there is no track of which names are structure names during parsing, TYPE_NAME cannot be produced by the lexer. Use IDENTIFIER and let the AST processor sort it out. | |||
2010-04-28 | ir_reader: Slightly better error message when failing to read swizzles. | Kenneth Graunke | |
2010-04-28 | ir_reader: Don't print out the S-Expression. | Kenneth Graunke | |
It's no longer useful for debugging. | |||
2010-04-28 | ir_reader: Read function calls. | Kenneth Graunke | |
2010-04-28 | ir_reader: Replace function prototypes with the definition. | Kenneth Graunke | |
Previously, we just created a new one, which was wrong. | |||
2010-04-28 | ir_reader: Fix incorrect error message for expressions. | Kenneth Graunke | |
2010-04-28 | Make ir_read_error print out the given S-Expression, for context. | Kenneth Graunke | |
2010-04-28 | ir_reader: Fix for swizzles. | Kenneth Graunke | |
2010-04-28 | ir_reader: Preliminary work toward reading functions. | Kenneth Graunke | |
2010-04-28 | ir_reader: Perform a preliminary pass to scan for function prototypes. | Kenneth Graunke | |
2010-04-28 | ir_reader: Don't initialize globals, builtins, or constructors. | Kenneth Graunke | |
All of these are currently emitted as part of the IR, so by initializing them, we actually end up with two copies. For constructors, we may eventually wish to avoid emitting them as part of the IR output. | |||
2010-04-28 | Make ir_read_error set state->error. | Kenneth Graunke | |
2010-04-28 | ir_reader: Add support for "break" and "continue" in loops. | Kenneth Graunke | |
Includes threading the ir_loop * context through various functions. | |||
2010-04-28 | ir_reader: Add initial loop support; doesn't yet support break/continue. | Kenneth Graunke | |
2010-04-28 | ir_reader: Add support for reading (var_ref ...) and (array_ref ...) | Kenneth Graunke | |
2010-04-28 | ir_reader: rvalues are instructions too! | Kenneth Graunke | |
2010-04-28 | ir_reader: Add support for reading conditionals: (if ...) | Kenneth Graunke | |
2010-04-28 | ir_reader: Add support for reading array types. | Kenneth Graunke | |
Also, constify glsl_type pointers; this was necessary to use glsl_type::get_array_instance. | |||
2010-04-28 | ir_reader: Add support for reading (return ...) | Kenneth Graunke | |
2010-04-28 | ir_reader: Add support for reading variable declarations. | Kenneth Graunke | |
It also now reads a list of instructions, as it should, rather than a single rvalue. | |||
2010-04-28 | Partial IR reader. | Kenneth Graunke | |
Currently reads assignments, constants, expressions, and swizzles. | |||
2010-04-28 | Set language_version to 130 (the max currently supported) when reading IR. | Kenneth Graunke | |
This is necessary so _mesa_glsl_initialize_types can create appropriate glsl_types and add them to the symbol table. In the future, we'll want to set it to the max GLSL version supported by the current driver. | |||
2010-04-28 | Add stub ir_reader and new 'i' mode for reading IR rather than GLSL. | Kenneth Graunke | |
2010-04-28 | Add a simple S-Expression reader and printer. | Kenneth Graunke | |
2010-04-28 | Use "neg" when printing/reading unary negation rather than "-". | Kenneth Graunke | |
"-" is now only used for binary subtraction. | |||
2010-04-28 | Move array of operator strings out of ir_print_visitor.cpp. | Kenneth Graunke | |
Also implement a reverse-lookup function for use in the IR reader. | |||
2010-04-28 | Factor out parameter list replacement for later reuse. | Kenneth Graunke | |
2010-04-28 | Factor out parameter list matching from ast_function::hir for later reuse. | Kenneth Graunke | |
Unfortunately, we still have two kinds of matching - one, with implicit conversions (for use in calls) and another without them (for finding a prototype to overwrite when processing a function body). This commit does not attempt to coalesce the two. | |||
2010-04-28 | Factor out qualifier checking code for later reuse. | Kenneth Graunke | |
2010-04-28 | ir_print_visitor: Re-parenthesize ir_call output. | Kenneth Graunke | |
2010-04-28 | ir_print_visitor: Print return type of ir_function_signatures. | Kenneth Graunke | |
2010-04-28 | ir_print_visitor: Print (constant bool (1)) instead of "true" | Kenneth Graunke | |
It might be better to simply handle "true" in the reader, but since booleans normally aren't printed as "true" or "false", we may as well go for consistency. | |||
2010-04-28 | ir_print_visitor: Remove unnecessary parens around expression operands. | Kenneth Graunke | |
2010-04-28 | ir_print_visitor: Remove unnecessary parens around array size in types. | Kenneth Graunke | |
2010-04-28 | ir_print_visitor: Fix unclosed parenthesis in (call... | Kenneth Graunke | |
2010-04-28 | ir_print_visitor: Fix unclosed parenthesis in (assign ... | Kenneth Graunke | |
Also remove useless parens around subexpressions. | |||
2010-04-28 | Add parens around printed IR so it's an official list of instructions. | Kenneth Graunke | |
2010-04-28 | ir_print_visitor: Remove unnecessary parenthesis around variable names. | Kenneth Graunke | |
2010-04-28 | Refactor ir_expression::get_num_operands. | Kenneth Graunke | |
A new static version takes an ir_expression_operation enum, and the original non-static version now uses it. This will make it easier to read operations (where the ir_expression doesn't yet exist). |