Re: [PATCH] libgccjit: Allow comparing aligned int types

2024-11-20 Thread David Malcolm
On Thu, 2024-02-22 at 12:40 -0500, Antoni Boucher wrote: > Thanks for the review. > Here's the updated patch. Thanks; the updated patch is good for trunk. Dave > > On Wed, 2024-01-24 at 12:18 -0500, David Malcolm wrote: > > On Thu, 2023-12-21 at 08:33 -0500, Antoni Boucher wrote: > > > Hi. > >

Re: [PATCH] libgccjit: Allow comparing aligned int types

2024-02-22 Thread Antoni Boucher
g_type, 4); > > +  gcc_jit_type *aligned_int64 = gcc_jit_type_get_aligned > > (int64_type, 4); > > +  CHECK (gcc_jit_compatible_types (aligned_long, aligned_int64)); > > This CHECK should be guarded on sizeof(long) == 8 like the check > above. > > > Dave >

Re: [PATCH] libgccjit: Allow comparing aligned int types

2024-01-24 Thread David Malcolm
On Thu, 2023-12-21 at 08:33 -0500, Antoni Boucher wrote: > Hi. > This patch allows comparing aligned integer types as equal. > There's a TODO in the code about whether we should check that the > alignment is equal. > What are your thoughts on this? I think we should check for equal alignment. [..

Re: [PATCH] libgccjit: Allow comparing aligned int types

2024-01-19 Thread Antoni Boucher
David: Ping. On Thu, 2023-12-21 at 08:33 -0500, Antoni Boucher wrote: > Hi. > This patch allows comparing aligned integer types as equal. > There's a TODO in the code about whether we should check that the > alignment is equal. > What are your thoughts on this? > > Thanks for the review.

[PATCH] libgccjit: Allow comparing aligned int types

2023-12-21 Thread Antoni Boucher
ucher Date: Sun, 8 Oct 2023 09:12:12 -0400 Subject: [PATCH] libgccjit: Allow comparing aligned int types gcc/jit/ChangeLog: * jit-recording.h (type::is_same_type_as): Compare integer types. (type::is_aligned, memento_of_get_aligned::is_same_type_as, memento_of_get_aligned::is_aligned): new me