This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Mon, Apr 24, 2017 at 11:43 AM, Richard Biener <richard.guenther@gmail.com> wrote: > On Tue, Apr 18, 2017 at 12:43 PM, Bin Cheng <Bin.Cheng@arm.com> wrote: >> Hi, >> This patch adds three simple interfaces for tree affine which will be used in >> cost computation later. >> >> Is it OK? > > > +static inline tree > +aff_combination_type (aff_tree *aff) > > misses a function comment. Please do not introduce new 'static inline' > function in headers but instead use plain 'inline'. > > +/* Return true if AFF is simple enough. */ > +static inline bool > +aff_combination_simple_p (aff_tree *aff) > +{ > > what is "simple"? Based on that find a better name. > "singleton"? But aff_combination_const_p isn't > simple_p (for whatever reason). Patch updated. The one (13th) depending on this one is updated too. Thanks, bin > > Richard. > > > >> Thanks, >> bin >> 2017-04-11 Bin Cheng <bin.cheng@arm.com> >> >> * tree-affine.h (aff_combination_type): New interface. >> (aff_combination_const_p, aff_combination_simple_p): New interfaces.
Attachment:
0011-add-tree-affine-interfaces-20170222.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |