summaryrefslogtreecommitdiff
path: root/ir_vec_index_to_swizzle.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-06-23exec_node: Add new talloc-based new()Carl Worth1-1/+3
And fix all callers to use the tallbac-based new for exec_node construction. We make ready use of talloc_parent in order to get valid, (and appropriate) talloc owners for everything we construct without having to add new 'ctx' parameters up and down all the call trees. This closes the majority of the memory leaks in the glsl-orangebook-ch06-bump.frag test: total heap usage: 55,623 allocs, 42,672 frees (was 14,533 frees) Now 76.7% leak-free. Woo-hoo!
2010-06-22ir: Give ir_instruction a print visitor helper.Eric Anholt1-1/+0
This avoids spamming each file with includes of ir_print_visitor.h because someone was doing debugging at some point, and is less typing when doing debugging.
2010-06-22Include stdio.h and stdlib.h everywhere, and don't cook our own #define NULL.Eric Anholt1-1/+0
2010-06-02ir_dereference_array always operates on an r-valueIan Romanick1-9/+1
ir_dereference_array::array is always an r-value. If the dereference is of a varaible, that r-value will be an ir_dereference_variable. This simplifies the code a bit.
2010-06-01ir_vec_index_to_swizzle: Pass to convert indexing of vectors to swizzles.Eric Anholt1-0/+166
This should remove the burden of handling constant vector indexing well from backend codegen, and could help with swizzle optimizations.