Replace "mode" type tag with virtual as_foo() downcasting functions.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 26 Mar 2010 06:30:28 +0000 (23:30 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 26 Mar 2010 19:50:40 +0000 (12:50 -0700)
commit44e1dfa2df4de3e2de963f0505cdadade6fe8180
tree01ea06c0eeb9e2c09a043fa44f83e9a3002e03ea
parentb7592c362b69a8ddbef9c1c6c2bde33e40653774
Replace "mode" type tag with virtual as_foo() downcasting functions.

These should work well even in a non-flat IR hierarchy.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
ast_to_hir.cpp
ir.cpp
ir.h