X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fscalar_replace.h;h=4b53be83bb6f327f2336931b98ef019f99aca0e3;hb=73218d02f521d48156b8b10df1c0655a6279003c;hp=9313ca7b71a81c6ded8d99f7394e80d0c6b94309;hpb=2d0845f84ffddcc9e1b0fdf79a53bd78ebbc25a9;p=libfirm diff --git a/ir/opt/scalar_replace.h b/ir/opt/scalar_replace.h index 9313ca7b7..4b53be83b 100644 --- a/ir/opt/scalar_replace.h +++ b/ir/opt/scalar_replace.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -27,22 +27,14 @@ #define FIRM_OPT_SCALAR_REPLACE_H #include "firm_types.h" +#include /** * Returns non-zero, if the address of an entity - * represented by a Sel node (or it's successor Sels) is taken. + * represented by a Sel node (or its successor Sels) is taken. * * @param sel the Sel node */ -int is_address_taken(ir_node *sel); - -/** - * Do the scalar replacement optimization. - * Replace local compound entities (like structures and arrays) - * with atomic values if possible. Does not handle classes yet. - * - * @param irg the graph which should be optimized - */ -void scalar_replacement_opt(ir_graph *irg); +bool is_address_taken(ir_node *sel); #endif /* FIRM_OPT_SCALAR_REPLACE_H */