diff options
author | Kenneth Graunke <[email protected]> | 2010-04-21 15:14:02 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-04-21 15:37:10 -0700 |
commit | 32898866886e218fee4dab741ba8dfcef2c2aa5c (patch) | |
tree | 7db449c8cba6d1bb63fde944009e1adc45c407f2 | |
parent | 9fa99f3b6c84fe927ba97e6584cd919f097a6c9a (diff) |
Remove ir_label since it is no longer used.
-rw-r--r-- | ir.cpp | 6 | ||||
-rw-r--r-- | ir.h | 20 | ||||
-rw-r--r-- | ir_constant_expression.cpp | 9 | ||||
-rw-r--r-- | ir_constant_folding.cpp | 7 | ||||
-rw-r--r-- | ir_constant_folding.h | 1 | ||||
-rw-r--r-- | ir_expression_flattening.cpp | 8 | ||||
-rw-r--r-- | ir_function_inlining.cpp | 14 | ||||
-rw-r--r-- | ir_function_inlining.h | 1 | ||||
-rw-r--r-- | ir_if_simplification.cpp | 7 | ||||
-rw-r--r-- | ir_print_visitor.cpp | 9 | ||||
-rw-r--r-- | ir_print_visitor.h | 1 | ||||
-rw-r--r-- | ir_visitor.h | 1 |
12 files changed, 0 insertions, 84 deletions
@@ -108,12 +108,6 @@ ir_expression::get_num_operands(void) return num_operands[this->operation]; } -ir_label::ir_label(const char *label, ir_function_signature *signature) - : label(label), signature(signature) -{ - /* empty */ -} - ir_constant::ir_constant(const struct glsl_type *type, const void *data) { @@ -183,26 +183,6 @@ public: }; -class ir_label : public ir_instruction { -public: - ir_label(const char *label, ir_function_signature *signature); - - virtual ir_label *as_label() - { - return this; - } - - virtual void accept(ir_visitor *v) - { - v->visit(this); - } - - const char *label; - - ir_function_signature *signature; -}; - - /*@{*/ /** * The representation of a function instance; may be the full definition or diff --git a/ir_constant_expression.cpp b/ir_constant_expression.cpp index e3a0d9eaa11..e5626c53117 100644 --- a/ir_constant_expression.cpp +++ b/ir_constant_expression.cpp @@ -63,7 +63,6 @@ public: */ /*@{*/ virtual void visit(ir_variable *); - virtual void visit(ir_label *); virtual void visit(ir_function_signature *); virtual void visit(ir_function *); virtual void visit(ir_expression *); @@ -108,14 +107,6 @@ ir_constant_visitor::visit(ir_variable *ir) void -ir_constant_visitor::visit(ir_label *ir) -{ - (void) ir; - value = NULL; -} - - -void ir_constant_visitor::visit(ir_function_signature *ir) { (void) ir; diff --git a/ir_constant_folding.cpp b/ir_constant_folding.cpp index 294f2c2409f..1b53440669f 100644 --- a/ir_constant_folding.cpp +++ b/ir_constant_folding.cpp @@ -44,13 +44,6 @@ ir_constant_folding_visitor::visit(ir_variable *ir) void -ir_constant_folding_visitor::visit(ir_label *ir) -{ - ir->signature->accept(this); -} - - -void ir_constant_folding_visitor::visit(ir_function_signature *ir) { visit_exec_list(&ir->body, this); diff --git a/ir_constant_folding.h b/ir_constant_folding.h index 843b3ad0b77..44bdbd01755 100644 --- a/ir_constant_folding.h +++ b/ir_constant_folding.h @@ -47,7 +47,6 @@ public: */ /*@{*/ virtual void visit(ir_variable *); - virtual void visit(ir_label *); virtual void visit(ir_function_signature *); virtual void visit(ir_function *); virtual void visit(ir_expression *); diff --git a/ir_expression_flattening.cpp b/ir_expression_flattening.cpp index 5072940d629..28c96a787de 100644 --- a/ir_expression_flattening.cpp +++ b/ir_expression_flattening.cpp @@ -64,7 +64,6 @@ public: */ /*@{*/ virtual void visit(ir_variable *); - virtual void visit(ir_label *); virtual void visit(ir_loop *); virtual void visit(ir_loop_jump *); virtual void visit(ir_function_signature *); @@ -101,13 +100,6 @@ ir_expression_flattening_visitor::visit(ir_variable *ir) (void) ir; } - -void -ir_expression_flattening_visitor::visit(ir_label *ir) -{ - ir->signature->accept(this); -} - void ir_expression_flattening_visitor::visit(ir_loop *ir) { diff --git a/ir_function_inlining.cpp b/ir_function_inlining.cpp index 117b460ae5c..c0e77b42730 100644 --- a/ir_function_inlining.cpp +++ b/ir_function_inlining.cpp @@ -92,7 +92,6 @@ public: */ /*@{*/ virtual void visit(ir_variable *); - virtual void visit(ir_label *); virtual void visit(ir_loop *); virtual void visit(ir_loop_jump *); virtual void visit(ir_function_signature *); @@ -121,13 +120,6 @@ ir_function_cloning_visitor::visit(ir_variable *ir) } void -ir_function_cloning_visitor::visit(ir_label *ir) -{ - (void)ir; - this->result = NULL; -} - -void ir_function_cloning_visitor::visit(ir_loop *ir) { (void)ir; @@ -453,12 +445,6 @@ ir_function_inlining_visitor::visit(ir_variable *ir) void -ir_function_inlining_visitor::visit(ir_label *ir) -{ - ir->signature->accept(this); -} - -void ir_function_inlining_visitor::visit(ir_loop *ir) { do_function_inlining(&ir->body_instructions); diff --git a/ir_function_inlining.h b/ir_function_inlining.h index 60c80a6dfbf..0e5123b2970 100644 --- a/ir_function_inlining.h +++ b/ir_function_inlining.h @@ -48,7 +48,6 @@ public: */ /*@{*/ virtual void visit(ir_variable *); - virtual void visit(ir_label *); virtual void visit(ir_loop *); virtual void visit(ir_loop_jump *); virtual void visit(ir_function_signature *); diff --git a/ir_if_simplification.cpp b/ir_if_simplification.cpp index bc5663f4734..1e6fd8da8c5 100644 --- a/ir_if_simplification.cpp +++ b/ir_if_simplification.cpp @@ -55,7 +55,6 @@ public: */ /*@{*/ virtual void visit(ir_variable *); - virtual void visit(ir_label *); virtual void visit(ir_loop *); virtual void visit(ir_loop_jump *); virtual void visit(ir_function_signature *); @@ -139,12 +138,6 @@ ir_if_simplification_visitor::visit(ir_variable *ir) void -ir_if_simplification_visitor::visit(ir_label *ir) -{ - ir->signature->accept(this); -} - -void ir_if_simplification_visitor::visit(ir_loop *ir) { do_if_simplification(&ir->body_instructions); diff --git a/ir_print_visitor.cpp b/ir_print_visitor.cpp index 5d98937c9c2..8f917e48b22 100644 --- a/ir_print_visitor.cpp +++ b/ir_print_visitor.cpp @@ -64,15 +64,6 @@ void ir_print_visitor::visit(ir_variable *ir) } -void ir_print_visitor::visit(ir_label *ir) -{ - printf("\n(label %s\n", ir->label); - - ir->signature->accept(this); - printf(")"); -} - - void ir_print_visitor::visit(ir_function_signature *ir) { printf("(signature\n (parameters\n"); diff --git a/ir_print_visitor.h b/ir_print_visitor.h index 82ebbac81f0..b241f92e040 100644 --- a/ir_print_visitor.h +++ b/ir_print_visitor.h @@ -54,7 +54,6 @@ public: */ /*@{*/ virtual void visit(ir_variable *); - virtual void visit(ir_label *); virtual void visit(ir_function_signature *); virtual void visit(ir_function *); virtual void visit(ir_expression *); diff --git a/ir_visitor.h b/ir_visitor.h index 323720e93ed..579eee701d7 100644 --- a/ir_visitor.h +++ b/ir_visitor.h @@ -45,7 +45,6 @@ public: */ /*@{*/ virtual void visit(class ir_variable *) = 0; - virtual void visit(class ir_label *) = 0; virtual void visit(class ir_function_signature *) = 0; virtual void visit(class ir_function *) = 0; virtual void visit(class ir_expression *) = 0; |