X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firdom.h;h=295b025afd4784c25cc868485b774879bf24b341;hb=544b8de70c3b5961b5ba6e0d9781306e0123502c;hp=2c6e10390bdc89fb40caf44ff515ca33c8a2da62;hpb=1ec30d95387eb392ba5a1adc7958ebd91383d59c;p=libfirm diff --git a/include/libfirm/irdom.h b/include/libfirm/irdom.h index 2c6e10390..295b025af 100644 --- a/include/libfirm/irdom.h +++ b/include/libfirm/irdom.h @@ -132,12 +132,24 @@ ir_node *get_Block_dominated_next(const ir_node *dom); /** * Check, if a block dominates another block. - * @param a The first block. - * @param b The second block. + * + * @param a The potential dominator block. + * @param b The potentially dominated block. + * * @return 1, if @p a dominates @p b, else 0. */ int block_dominates(const ir_node *a, const ir_node *b); +/** + * Check, if a block strictly dominates another block, i.e. a != b. + * + * @param a The potential dominator block. + * @param b The potentially dominated block. + * + * @return 1, if @p a strictly dominates @p b, else 0. + */ +int block_strictly_dominates(const ir_node *a, const ir_node *b); + /** * Returns the smallest common dominator block of two nodes. * @param a A node. @@ -162,12 +174,24 @@ ir_node *node_users_smallest_common_dominator(ir_node *irn, int handle_phi); /** * Check, if a block post dominates another block. - * @param a The first block. - * @param b The second block. + * + * @param a The potential post dominator block. + * @param b The potentially post dominated block. + * * @return 1, if @p a post dominates @p b, else 0. */ int block_postdominates(const ir_node *a, const ir_node *b); +/** + * Check, if a block strictly post dominates another block, i.e. a != b. + * + * @param a The potential post dominator block. + * @param b The potentially post dominated block. + * + * @return 1, if @p a strictly post dominates @p b, else 0. + */ +int block_strictly_postdominates(const ir_node *a, const ir_node *b); + /** * Visit all nodes in the dominator subtree of a given node. * Call a pre-visitor before descending to the children and call a