X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Ftypewalk.h;h=9968375edb5ede1fe78f98c808b82003a64c822c;hb=328ae18da3e796f4f9fda2aba629cc34e2849ed7;hp=f6f67aa8b1700be77a516b30110126ead3bb9d96;hpb=37603354df338fe190fb29f3b1f58a6c4697bffd;p=libfirm diff --git a/ir/tr/typewalk.h b/ir/tr/typewalk.h index f6f67aa8b..9968375ed 100644 --- a/ir/tr/typewalk.h +++ b/ir/tr/typewalk.h @@ -10,6 +10,8 @@ ** - execute the post function after recursion */ +/* $Id$ */ + /* walk over all type information reachable from the ir graph. */ @@ -33,5 +35,15 @@ void type_walk_irg(ir_graph *irg, void (post)(type_or_ent*, void*), void *env); +/** Walks over all classes information reachable from global roots. + Touches every class in specified order: + - first the super class + - second the class itself + - third the sub classes. If new classes are created + during the traversal these will be visited, too. **/ +/** @@@ shoulc be named class-walk **/ +void type_walk_super2sub(void (pre)(type_or_ent*, void*), + void (post)(type_or_ent*, void*), + void *env); #endif /* _TYPEWALK_H_ */