diff options
author | Antoni Boucher <bouanto@zoho.com> | 2023-10-08 09:12:12 -0400 |
---|---|---|
committer | Antoni Boucher <bouanto@zoho.com> | 2024-11-20 11:01:35 -0500 |
commit | 16cf1c010dbee4e411f0d1289830bfb6ed5c7807 (patch) | |
tree | aa43b6652cfbe488077abbc717b495e69b1022e6 /gcc/jit/jit-common.h | |
parent | ede14092bc33e182ee6c811c335bf9aac789d7be (diff) | |
download | gcc-16cf1c010dbee4e411f0d1289830bfb6ed5c7807.zip gcc-16cf1c010dbee4e411f0d1289830bfb6ed5c7807.tar.gz gcc-16cf1c010dbee4e411f0d1289830bfb6ed5c7807.tar.bz2 |
libgccjit: Allow comparing aligned int types
gcc/jit/ChangeLog:
* jit-common.h: Add forward declaration of memento_of_get_aligned.
* jit-recording.h (type::is_same_type_as): Compare integer
types.
(dyn_cast_aligned_type): New method.
(type::is_aligned, memento_of_get_aligned::is_same_type_as,
memento_of_get_aligned::is_aligned): new methods.
gcc/testsuite/ChangeLog:
* jit.dg/test-types.c: Add checks comparing aligned types.
Diffstat (limited to 'gcc/jit/jit-common.h')
-rw-r--r-- | gcc/jit/jit-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/jit/jit-common.h b/gcc/jit/jit-common.h index 655d94e..6ab9622 100644 --- a/gcc/jit/jit-common.h +++ b/gcc/jit/jit-common.h @@ -134,6 +134,7 @@ namespace recording { class statement; class extended_asm; class case_; + class memento_of_get_aligned; class top_level_asm; /* End of recording types. */ |