glsl: Rebalance expression trees that are reduction operations.
[mesa.git] / src / glsl / Makefile.sources
1 # shared source lists for Makefile, SConscript, and Android.mk
2
3 GLSL_SRCDIR = $(top_srcdir)/src/glsl
4 GLSL_BUILDDIR = $(top_builddir)/src/glsl
5
6 # libglcpp
7
8 LIBGLCPP_FILES = \
9 $(GLSL_SRCDIR)/ralloc.c \
10 $(GLSL_SRCDIR)/glcpp/pp.c
11
12 LIBGLCPP_GENERATED_FILES = \
13 $(GLSL_BUILDDIR)/glcpp/glcpp-lex.c \
14 $(GLSL_BUILDDIR)/glcpp/glcpp-parse.c
15
16 # libglsl
17
18 LIBGLSL_FILES = \
19 $(GLSL_SRCDIR)/ast_array_index.cpp \
20 $(GLSL_SRCDIR)/ast_expr.cpp \
21 $(GLSL_SRCDIR)/ast_function.cpp \
22 $(GLSL_SRCDIR)/ast_to_hir.cpp \
23 $(GLSL_SRCDIR)/ast_type.cpp \
24 $(GLSL_SRCDIR)/builtin_functions.cpp \
25 $(GLSL_SRCDIR)/builtin_types.cpp \
26 $(GLSL_SRCDIR)/builtin_variables.cpp \
27 $(GLSL_SRCDIR)/glsl_parser_extras.cpp \
28 $(GLSL_SRCDIR)/glsl_types.cpp \
29 $(GLSL_SRCDIR)/glsl_symbol_table.cpp \
30 $(GLSL_SRCDIR)/hir_field_selection.cpp \
31 $(GLSL_SRCDIR)/ir_basic_block.cpp \
32 $(GLSL_SRCDIR)/ir_builder.cpp \
33 $(GLSL_SRCDIR)/ir_clone.cpp \
34 $(GLSL_SRCDIR)/ir_constant_expression.cpp \
35 $(GLSL_SRCDIR)/ir.cpp \
36 $(GLSL_SRCDIR)/ir_equals.cpp \
37 $(GLSL_SRCDIR)/ir_expression_flattening.cpp \
38 $(GLSL_SRCDIR)/ir_function_can_inline.cpp \
39 $(GLSL_SRCDIR)/ir_function_detect_recursion.cpp \
40 $(GLSL_SRCDIR)/ir_function.cpp \
41 $(GLSL_SRCDIR)/ir_hierarchical_visitor.cpp \
42 $(GLSL_SRCDIR)/ir_hv_accept.cpp \
43 $(GLSL_SRCDIR)/ir_import_prototypes.cpp \
44 $(GLSL_SRCDIR)/ir_print_visitor.cpp \
45 $(GLSL_SRCDIR)/ir_reader.cpp \
46 $(GLSL_SRCDIR)/ir_rvalue_visitor.cpp \
47 $(GLSL_SRCDIR)/ir_set_program_inouts.cpp \
48 $(GLSL_SRCDIR)/ir_validate.cpp \
49 $(GLSL_SRCDIR)/ir_variable_refcount.cpp \
50 $(GLSL_SRCDIR)/linker.cpp \
51 $(GLSL_SRCDIR)/link_atomics.cpp \
52 $(GLSL_SRCDIR)/link_functions.cpp \
53 $(GLSL_SRCDIR)/link_interface_blocks.cpp \
54 $(GLSL_SRCDIR)/link_uniforms.cpp \
55 $(GLSL_SRCDIR)/link_uniform_initializers.cpp \
56 $(GLSL_SRCDIR)/link_uniform_block_active_visitor.cpp \
57 $(GLSL_SRCDIR)/link_uniform_blocks.cpp \
58 $(GLSL_SRCDIR)/link_varyings.cpp \
59 $(GLSL_SRCDIR)/loop_analysis.cpp \
60 $(GLSL_SRCDIR)/loop_controls.cpp \
61 $(GLSL_SRCDIR)/loop_unroll.cpp \
62 $(GLSL_SRCDIR)/lower_clip_distance.cpp \
63 $(GLSL_SRCDIR)/lower_discard.cpp \
64 $(GLSL_SRCDIR)/lower_discard_flow.cpp \
65 $(GLSL_SRCDIR)/lower_if_to_cond_assign.cpp \
66 $(GLSL_SRCDIR)/lower_instructions.cpp \
67 $(GLSL_SRCDIR)/lower_jumps.cpp \
68 $(GLSL_SRCDIR)/lower_mat_op_to_vec.cpp \
69 $(GLSL_SRCDIR)/lower_noise.cpp \
70 $(GLSL_SRCDIR)/lower_offset_array.cpp \
71 $(GLSL_SRCDIR)/lower_packed_varyings.cpp \
72 $(GLSL_SRCDIR)/lower_named_interface_blocks.cpp \
73 $(GLSL_SRCDIR)/lower_packing_builtins.cpp \
74 $(GLSL_SRCDIR)/lower_texture_projection.cpp \
75 $(GLSL_SRCDIR)/lower_variable_index_to_cond_assign.cpp \
76 $(GLSL_SRCDIR)/lower_vec_index_to_cond_assign.cpp \
77 $(GLSL_SRCDIR)/lower_vec_index_to_swizzle.cpp \
78 $(GLSL_SRCDIR)/lower_vector.cpp \
79 $(GLSL_SRCDIR)/lower_vector_insert.cpp \
80 $(GLSL_SRCDIR)/lower_output_reads.cpp \
81 $(GLSL_SRCDIR)/lower_ubo_reference.cpp \
82 $(GLSL_SRCDIR)/opt_algebraic.cpp \
83 $(GLSL_SRCDIR)/opt_array_splitting.cpp \
84 $(GLSL_SRCDIR)/opt_constant_folding.cpp \
85 $(GLSL_SRCDIR)/opt_constant_propagation.cpp \
86 $(GLSL_SRCDIR)/opt_constant_variable.cpp \
87 $(GLSL_SRCDIR)/opt_copy_propagation.cpp \
88 $(GLSL_SRCDIR)/opt_copy_propagation_elements.cpp \
89 $(GLSL_SRCDIR)/opt_cse.cpp \
90 $(GLSL_SRCDIR)/opt_dead_builtin_varyings.cpp \
91 $(GLSL_SRCDIR)/opt_dead_code.cpp \
92 $(GLSL_SRCDIR)/opt_dead_code_local.cpp \
93 $(GLSL_SRCDIR)/opt_dead_functions.cpp \
94 $(GLSL_SRCDIR)/opt_flatten_nested_if_blocks.cpp \
95 $(GLSL_SRCDIR)/opt_flip_matrices.cpp \
96 $(GLSL_SRCDIR)/opt_function_inlining.cpp \
97 $(GLSL_SRCDIR)/opt_if_simplification.cpp \
98 $(GLSL_SRCDIR)/opt_noop_swizzle.cpp \
99 $(GLSL_SRCDIR)/opt_rebalance_tree.cpp \
100 $(GLSL_SRCDIR)/opt_redundant_jumps.cpp \
101 $(GLSL_SRCDIR)/opt_structure_splitting.cpp \
102 $(GLSL_SRCDIR)/opt_swizzle_swizzle.cpp \
103 $(GLSL_SRCDIR)/opt_tree_grafting.cpp \
104 $(GLSL_SRCDIR)/opt_vectorize.cpp \
105 $(GLSL_SRCDIR)/s_expression.cpp \
106 $(GLSL_SRCDIR)/strtod.c
107
108 # glsl_compiler
109
110 GLSL_COMPILER_CXX_FILES = \
111 $(GLSL_SRCDIR)/standalone_scaffolding.cpp \
112 $(GLSL_SRCDIR)/main.cpp
113
114 # libglsl generated sources
115 LIBGLSL_GENERATED_CXX_FILES = \
116 $(GLSL_BUILDDIR)/glsl_lexer.cpp \
117 $(GLSL_BUILDDIR)/glsl_parser.cpp