X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Ftypewalk.h;h=f6f67aa8b1700be77a516b30110126ead3bb9d96;hb=37603354df338fe190fb29f3b1f58a6c4697bffd;hp=8086598701c1d76e0384ab0ae801a57bfe40507f;hpb=efbeaff549fcc6015da255ed4d453a95937ff0fd;p=libfirm diff --git a/ir/tr/typewalk.h b/ir/tr/typewalk.h index 808659870..f6f67aa8b 100644 --- a/ir/tr/typewalk.h +++ b/ir/tr/typewalk.h @@ -13,10 +13,25 @@ /* walk over all type information reachable from the ir graph. */ - +#ifndef _TYPEWALK_H_ +#define _TYPEWALK_H_ # include "type_or_entity.h" -void type_walk(ir_graph *irg, - void (pre)(type_or_ent*, void*), void (post)(type_or_ent*, void*), - void *env); + +/** Walks over all type information reachable from global roots. + Touches every type and entity in unspecified order. If new + types/entities are created during the traversal these will + be visited, too. **/ +void type_walk(void (pre)(type_or_ent*, void*), + void (post)(type_or_ent*, void*), + void *env); + +/** walks over all type information reachable from irg **/ +void type_walk_irg(ir_graph *irg, + void (pre)(type_or_ent*, void*), + void (post)(type_or_ent*, void*), + void *env); + + +#endif /* _TYPEWALK_H_ */