/external/mesa3d/src/glsl/ |
ir_set_program_inouts.cpp | 34 * from the GLSL IR. 41 #include "ir.h" 89 ir_set_program_inouts_visitor::visit(ir_dereference_variable *ir) 91 if (hash_table_find(this->ht, ir->var) == NULL) 94 if (ir->type->is_array()) { 95 for (unsigned int i = 0; i < ir->type->length; i++) { 96 mark(this->prog, ir->var, i, 97 ir->type->length * ir->type->fields.array->matrix_columns); 100 mark(this->prog, ir->var, 0, ir->type->matrix_columns) [all...] |
lower_if_to_cond_assign.cpp | 49 #include "ir.h" 79 check_control_flow(ir_instruction *ir, void *data) 82 switch (ir->ir_type) { 108 ir_instruction *ir = (ir_instruction *)iter.get(); local 110 if (ir->ir_type == ir_type_assignment) { 111 ir_assignment *assign = (ir_assignment *)ir; 135 ir->remove(); 136 if_ir->insert_before(ir); 141 ir_if_to_cond_assign_visitor::visit_enter(ir_if *ir) 143 (void) ir; [all...] |
lower_discard.cpp | 109 #include "ir.h" 139 ir_discard *ir = ((ir_instruction *) n)->as_discard(); local 140 if (ir != NULL) 141 return ir; 148 replace_discard(void *mem_ctx, ir_variable *var, ir_discard *ir) 150 ir_rvalue *condition = ir->condition; 160 ir->replace_with(assignment); 165 lower_discard_visitor::visit_leave(ir_if *ir) 167 ir_discard *then_discard = find_discard(ir->then_instructions); 168 ir_discard *else_discard = find_discard(ir->else_instructions) [all...] |
ir_to_llvm.h | 5 #include "ir.h" 7 struct llvm::Module * glsl_ir_to_llvm_module(struct exec_list *ir, llvm::Module * mod,
|
ir_variable_refcount.cpp | 32 #include "ir.h" 67 ir_variable_refcount_visitor::visit(ir_variable *ir) 69 variable_entry *entry = this->get_variable_entry(ir); 78 ir_variable_refcount_visitor::visit(ir_dereference_variable *ir) 80 ir_variable *const var = ir->variable_referenced(); 91 ir_variable_refcount_visitor::visit_enter(ir_function_signature *ir) 96 visit_list_elements(this, &ir->body); 102 ir_variable_refcount_visitor::visit_leave(ir_assignment *ir) 105 entry = this->get_variable_entry(ir->lhs->variable_referenced()); 109 entry->assign = ir; [all...] |
opt_redundant_jumps.cpp | 29 #include "ir.h" 46 redundant_jumps_visitor::visit_leave(ir_if *ir) 53 (ir_instruction *) ir->then_instructions.get_tail(); 55 (ir_instruction *) ir->else_instructions.get_tail(); 74 ir->insert_after(then_jump); 79 if (ir->then_instructions.is_empty() && ir->else_instructions.is_empty()) 80 ir->remove(); 87 redundant_jumps_visitor::visit_leave(ir_loop *ir) 92 (ir_instruction *) ir->body_instructions.get_tail() [all...] |
opt_copy_propagation.cpp | 35 #include "ir.h" 91 void add_copy(ir_assignment *ir); 92 void kill(ir_variable *ir); 111 ir_copy_propagation_visitor::visit_enter(ir_function_signature *ir) 125 visit_list_elements(this, &ir->body); 135 ir_copy_propagation_visitor::visit_leave(ir_assignment *ir) 137 kill(ir->lhs->variable_referenced()); 139 add_copy(ir); 145 ir_copy_propagation_visitor::visit_enter(ir_function *ir) 147 (void) ir; 187 ir_instruction *ir = (ir_instruction *)iter.get(); local [all...] |
ir_import_prototypes.cpp | 26 * Import function prototypes from one IR tree into another. 31 #include "ir.h" 55 virtual ir_visitor_status visit_enter(ir_function *ir) 59 this->function = this->symbols->get_function(ir->name); 61 this->function = new(this->mem_ctx) ir_function(ir->name); 72 virtual ir_visitor_status visit_leave(ir_function *ir) 74 (void) ir; 81 ir_visitor_status visit_enter(ir_function_signature *ir) 85 ir_function_signature *copy = ir->clone_prototype(mem_ctx, NULL); 105 * Import function prototypes from one IR tree into anothe [all...] |
main.cpp | 72 shader->ir = new(shader) exec_list; 74 _mesa_ast_to_hir(shader->ir, state); 76 /* Print out the unoptimized IR. */ 78 validate_ir_tree(shader->ir); 79 _mesa_print_ir(shader->ir, state); 83 if (!state->error && !shader->ir->is_empty()) { 86 progress = do_common_optimization(shader->ir, false, 32); 89 validate_ir_tree(shader->ir); 93 /* Print out the resulting IR */ 95 _mesa_print_ir(shader->ir, state) [all...] |
loop_analysis.cpp | 28 static bool is_loop_terminator(ir_if *ir); 52 loop_state::insert(ir_loop *ir) 55 hash_table_insert(this->ht, ls, ir); 62 loop_state::get(const ir_loop *ir) 64 return (loop_variable_state *) hash_table_find(this->ht, ir); 69 loop_variable_state::get(const ir_variable *ir) 71 return (loop_variable *) hash_table_find(this->var_hash, ir); 96 t->ir = if_stmt; 137 loop_analysis::visit(ir_loop_jump *ir) 139 (void) ir; [all...] |
opt_function_inlining.cpp | 31 #include "ir.h" 67 automatic_inlining_predicate(ir_instruction *ir) 69 ir_call *call = ir->as_call(); 90 replace_return_with_assignment(ir_instruction *ir, void *data) 92 void *ctx = hieralloc_parent(ir); 94 ir_return *ret = ir->as_return(); 184 ir_instruction *ir = (ir_instruction *)iter.get(); local 185 ir_instruction *new_ir = ir->clone(ctx, ht); 212 ir_instruction *ir = (ir_instruction *)iter.get(); local 213 next_ir->insert_before(ir); [all...] |
loop_unroll.cpp | 37 virtual ir_visitor_status visit_leave(ir_loop *ir); 47 is_break(ir_instruction *ir) 49 return ir != NULL && ir->ir_type == ir_type_loop_jump 50 && ((ir_loop_jump *) ir)->is_break(); 55 loop_unroll_visitor::visit_leave(ir_loop *ir) 57 loop_variable_state *const ls = this->state->get(ir); 84 ir_instruction *last_ir = (ir_instruction *) ir->body_instructions.get_tail(); 101 foreach_list(node, &ir->body_instructions) { 153 void *const mem_ctx = hieralloc_parent(ir); [all...] |
opt_dead_functions.cpp | 30 #include "ir.h" 65 bool (*predicate)(ir_instruction *ir); 89 ir_dead_functions_visitor::visit_enter(ir_function_signature *ir) 91 signature_entry *entry = this->get_signature_entry(ir); 93 if (strcmp(ir->function_name(), "main") == 0) { 102 ir_dead_functions_visitor::visit_enter(ir_call *ir) 104 signature_entry *entry = this->get_signature_entry(ir->get_callee()); 138 ir_instruction *ir = (ir_instruction *)iter.get(); local 139 ir_function *func = ir->as_function();
|
loop_controls.cpp | 50 ir_instruction *ir = (ir_instruction *) node; local 52 switch (ir->ir_type) { 66 ir_assignment *assign = ir->as_assignment(); 163 virtual ir_visitor_status visit_leave(ir_loop *ir); 172 loop_control_visitor::visit_leave(ir_loop *ir) 174 loop_variable_state *const ls = this->state->get(ir); 190 if(ir->from && ir->to && ir->increment) 191 max_iterations = calculate_iterations(ir->from, ir->to, ir->increment, (ir_expression_operation)ir->cmp) [all...] |
opt_structure_splitting.cpp | 35 #include "ir.h" 121 ir_structure_reference_visitor::visit(ir_variable *ir) 123 variable_entry2 *entry = this->get_variable_entry2(ir); 132 ir_structure_reference_visitor::visit(ir_dereference_variable *ir) 134 ir_variable *const var = ir->variable_referenced(); 144 ir_structure_reference_visitor::visit_enter(ir_dereference_record *ir) 146 (void) ir; 152 ir_structure_reference_visitor::visit_enter(ir_assignment *ir) 154 if (ir->lhs->as_dereference_variable() && 155 ir->rhs->as_dereference_variable() & [all...] |
link_functions.cpp | 31 #include "ir.h" 60 virtual ir_visitor_status visit(ir_variable *ir) 62 hash_table_insert(locals, ir, ir); 66 virtual ir_visitor_status visit_enter(ir_call *ir) 68 /* If ir is an ir_call from a function that was imported from another 74 const ir_function_signature *const callee = ir->get_callee(); 84 ir->set_callee(sig); 91 sig = find_matching_signature(name, &ir->actual_parameters, shader_list, 116 /* At this point linked_sig and called may be the same. If ir is a [all...] |
opt_constant_variable.cpp | 35 #include "ir.h" 75 ir_constant_variable_visitor::visit(ir_variable *ir) 77 struct assignment_entry *entry = get_assignment_entry(ir, &this->list); 84 ir_constant_variable_visitor::visit_enter(ir_dereference_variable *ir) 86 (void)ir; 91 ir_constant_variable_visitor::visit_enter(ir_assignment *ir) 96 entry = get_assignment_entry(ir->lhs->variable_referenced(), &this->list); 107 if (ir->condition) { 108 constval = ir->condition->constant_expression_value(); 113 ir_variable *var = ir->whole_variable_written() 185 ir_instruction *ir = (ir_instruction *)iter.get(); local [all...] |
ir_to_llvm.cpp | 30 * Translates the IR to LLVM 62 #include "ir.h" 310 llvm::Value* llvm_value(class ir_instruction* ir) 313 ir->accept(this); 317 llvm::Constant* llvm_constant(class ir_instruction* ir) 319 return (llvm::Constant *)llvm_value(ir); 320 //return &dynamic_cast<llvm::Constant&>(*llvm_value(ir)); 328 llvm::Value* llvm_pointer(class ir_rvalue* ir) 330 if(ir_dereference_variable* deref = ir->as_dereference_variable()) 332 else if(ir_dereference_array* deref = ir->as_dereference_array() 1370 ir_instruction *ir = (ir_instruction *)iter.get(); local [all...] |
opt_constant_propagation.cpp | 37 #include "ir.h" 97 void add_constant(ir_assignment *ir); 98 void kill(ir_variable *ir, unsigned write_mask); 203 ir_constant_propagation_visitor::visit_enter(ir_function_signature *ir) 217 visit_list_elements(this, &ir->body); 227 ir_constant_propagation_visitor::visit_leave(ir_assignment *ir) 232 kill(ir->lhs->variable_referenced(), ir->write_mask); 234 add_constant(ir); 240 ir_constant_propagation_visitor::visit_enter(ir_function *ir) [all...] |
/external/clang/test/CXX/over/over.match/over.match.best/ |
p1.cpp | 8 int &ir = f0(ip, 0); local
|
/external/clang/test/CXX/temp/temp.decls/temp.fct/temp.func.order/ |
p3-0x.cpp | 15 int &ir = b * a; local
|
/external/webkit/Source/WebCore/page/wince/ |
FrameWinCE.cpp | 114 IntRect ir((int)fr.x(), (int)fr.y(), (int)fr.width(), (int)fr.height()); 115 if (ir.isEmpty()) 122 ir.setLocation(view->parent()->convertChildToSelf(view, ir.location())); 123 w = ir.width() * frame->pageZoomFactor() + 0.5; 124 h = ir.height() * frame->pageZoomFactor() + 0.5; 126 ir = view->contentsToWindow(ir); 127 w = ir.width(); 128 h = ir.height() [all...] |
/external/skia/src/core/ |
SkScan_AntiPath.cpp | 48 BaseSuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, 71 BaseSuperBlitter::BaseSuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, 75 // take the union of the ir bounds and clip, since we may be called with an 77 const int left = SkMin32(ir.fLeft, clip.getBounds().fLeft); 78 const int right = SkMax32(ir.fRight, clip.getBounds().fRight); 90 SuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, 108 SuperBlitter::SuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, 110 : BaseSuperBlitter(realBlitter, ir, clip) { 213 MaskSuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, 250 MaskSuperBlitter::MaskSuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, [all...] |
/external/clang/test/Sema/ |
attr-unavailable-message.c | 10 int ir = foo(1); // expected-error {{'foo' is unavailable: USE IFOO INSTEAD}} local 24 int ir = foo(1); local
|
/external/clang/test/SemaCXX/ |
attr-unavailable.cpp | 11 int &ir = foo(1); local 35 int &ir = foo(1); local
|