X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbesched.h;h=b080b0b2f091b85a000327a86adb47b8dea166a7;hb=6be797281b157f8f71b9c47d28b3d09f2a7918cc;hp=7c83f66dba3e7f0603d2b5202c2a562f6f045186;hpb=f8cc15664f571aa7ef89d6f6bc8d5bd2b8ca7d53;p=libfirm diff --git a/ir/be/besched.h b/ir/be/besched.h index 7c83f66db..b080b0b2f 100644 --- a/ir/be/besched.h +++ b/ir/be/besched.h @@ -20,7 +20,6 @@ /** * @file * @brief data structures for scheduling nodes in basic blocks. - * (This file does not contain the scheduling algorithms) * @author Sebastian Hack, Matthias Braun */ #ifndef FIRM_BE_BESCHED_H @@ -42,6 +41,8 @@ static sched_info_t *get_irn_sched_info(const ir_node *node) /** * Check, if the node is scheduled. + * Block nodes are reported as scheduled as they mark the begin and end + * of the scheduling list. * @param irn The node. * @return 1, if the node is scheduled, 0 if not. */ @@ -146,7 +147,6 @@ static inline ir_node *sched_last(const ir_node *block) /** * Add a node to a block schedule. - * @param block The block to whose schedule the node shall be added to. * @param irn The node to add. * @return The given node. */ @@ -155,7 +155,6 @@ void sched_add_before(ir_node *before, ir_node *irn); /** * Add a node to a block schedule. - * @param block The block to whose schedule the node shall be added to. * @param irn The node to add. * @return The given node. */ @@ -198,10 +197,10 @@ static inline bool sched_comes_after(const ir_node *n1, const ir_node *n2) } #define sched_foreach_from(from, irn) \ - for(irn = from; !sched_is_end(irn); irn = sched_next(irn)) + for (ir_node *irn = from; !sched_is_end(irn); irn = sched_next(irn)) #define sched_foreach_reverse_from(from, irn) \ - for(irn = from; !sched_is_begin(irn); irn = sched_prev(irn)) + for (ir_node *irn = from; !sched_is_begin(irn); irn = sched_prev(irn)) /** * A shorthand macro for iterating over a schedule. @@ -219,14 +218,6 @@ static inline bool sched_comes_after(const ir_node *n1, const ir_node *n2) #define sched_foreach_reverse(block,irn) \ sched_foreach_reverse_from(sched_last(block), irn) -/** - * A shorthand macro for iterating over all Phi nodes of a schedule. - * @param block The block. - * @param phi A ir node pointer used as an iterator. - */ -#define sched_foreach_Phi(block,phi) \ - for (phi = sched_first(block); is_Phi(phi); phi = sched_next(phi)) - /** * Type for a function scheduling a graph */