Re: Add "fast" conversions from arrays to bitmaps

2019-09-17 Thread Richard Sandiford
Martin Liška writes: >> +··static·size_t·size·(const·T·(&x)[N])·{·return·N;·} > > Hello. > > This leads to a clang warning: > > gcc/array-traits.h:45:33: warning: unused parameter 'x' [-Wunused-parameter] > > Can you please fix it? > Thanks, > Martin Sure, done as follows, committed as r275805.

Re: Add "fast" conversions from arrays to bitmaps

2019-09-16 Thread Martin Liška
+··static·size_t·size·(const·T·(&x)[N])·{·return·N;·} Hello. This leads to a clang warning: gcc/array-traits.h:45:33: warning: unused parameter 'x' [-Wunused-parameter] Can you please fix it? Thanks, Martin

Re: Add "fast" conversions from arrays to bitmaps

2019-09-09 Thread Jeff Law
On 9/9/19 10:32 AM, Richard Sandiford wrote: > This patch adds a bitmap_view class that creates a read-only, > on-stack bitmap representation of an array-like object X. The main > use case is to allow HARD_REG_SETs to be used in REG_SET (i.e. bitmap) > operations. > > For now it only handles cons

Add "fast" conversions from arrays to bitmaps

2019-09-09 Thread Richard Sandiford
This patch adds a bitmap_view class that creates a read-only, on-stack bitmap representation of an array-like object X. The main use case is to allow HARD_REG_SETs to be used in REG_SET (i.e. bitmap) operations. For now it only handles constant-sized arrays, but I've tried to define the types in