aboutsummaryrefslogtreecommitdiff
path: root/gcc/jit/jit-playback.h
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2024-04-04 18:57:07 -0400
committerAntoni Boucher <bouanto@zoho.com>2024-06-27 17:44:30 -0400
commit445c62ee492b363e7ad86260c7a91a7fdf984f50 (patch)
tree8df3671de2edea0a2460ae681d79c73277302009 /gcc/jit/jit-playback.h
parentda7976a015a4388b8ed843412c3c1c840451cf0f (diff)
downloadgcc-445c62ee492b363e7ad86260c7a91a7fdf984f50.zip
gcc-445c62ee492b363e7ad86260c7a91a7fdf984f50.tar.gz
gcc-445c62ee492b363e7ad86260c7a91a7fdf984f50.tar.bz2
libgccjit: Add ability to get the alignment of a type
gcc/jit/ChangeLog: * docs/topics/compatibility.rst (LIBGCCJIT_ABI_28): New ABI tag. * docs/topics/expressions.rst: Document gcc_jit_context_new_alignof. * jit-playback.cc (new_alignof): New method. * jit-playback.h: New method. * jit-recording.cc (recording::context::new_alignof): New method. (recording::memento_of_sizeof::replay_into, recording::memento_of_typeinfo::replay_into, recording::memento_of_sizeof::make_debug_string, recording::memento_of_typeinfo::make_debug_string, recording::memento_of_sizeof::write_reproducer, recording::memento_of_typeinfo::write_reproducer): Rename. * jit-recording.h (enum type_info_type): New enum. (class memento_of_sizeof class memento_of_typeinfo): Rename. * libgccjit.cc (gcc_jit_context_new_alignof): New function. * libgccjit.h (gcc_jit_context_new_alignof): New function. * libgccjit.map: New function. gcc/testsuite/ChangeLog: * jit.dg/all-non-failing-tests.h: New test. * jit.dg/test-alignof.c: New test.
Diffstat (limited to 'gcc/jit/jit-playback.h')
-rw-r--r--gcc/jit/jit-playback.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/jit/jit-playback.h b/gcc/jit/jit-playback.h
index aa6a086..6e97b38 100644
--- a/gcc/jit/jit-playback.h
+++ b/gcc/jit/jit-playback.h
@@ -166,6 +166,9 @@ public:
new_sizeof (type *type);
rvalue *
+ new_alignof (type *type);
+
+ rvalue *
new_string_literal (const char *value);
rvalue *