X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firnode_t.h;h=98f6352442a6c0397cffeaac5772ef32753eeafa;hb=69d11aa49aa17358468bbb2f5506ef5f009514e9;hp=ddf15fef5546af4c97fba2936ee3685e43b9a53c;hpb=4ff92a60c59a46e5958285afb6971867f47a3c20;p=libfirm diff --git a/ir/ir/irnode_t.h b/ir/ir/irnode_t.h index ddf15fef5..98f635244 100644 --- a/ir/ir/irnode_t.h +++ b/ir/ir/irnode_t.h @@ -99,6 +99,14 @@ ir_op_ops *firm_set_default_get_type_attr(ir_opcode code, ir_op_ops *ops); */ ir_op_ops *firm_set_default_get_entity_attr(ir_opcode code, ir_op_ops *ops); +/** + * Returns an array with the predecessors of the Block. Depending on + * the implementation of the graph data structure this can be a copy of + * the internal representation of predecessors as well as the internal + * array itself. Therefore writing to this array might obstruct the IR. + */ +ir_node **get_Block_cfgpred_arr(ir_node *node); + /*-------------------------------------------------------------------*/ /* These function are most used in libfirm. Give them as static */ /* functions so they can be inlined. */ @@ -798,7 +806,7 @@ _get_Block_cfgpred(const ir_node *node, int pos) { * We walk from the predecessor to the next pinned node * (skip_Proj) and return the block that node is in. * - If we encounter the Bad node, this function does not return - * Start, but the Bad node. + * the Start block, but the Bad node. */ static inline ir_node * _get_Block_cfgpred_block(const ir_node *node, int pos) {