From 28758e0e427ceca196937dc90efe3ab1cb35bd70 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 17 Jul 2025 14:59:33 +0800 Subject: Perf improvements to IR serialization (#7751) * option to use riff as serialization backend * option to use riff as serialization backend * perf * shuffle code * perf improvements to deserialization * formatting * remove bit_cast * correct IR verification * neaten serialized format * fix peek module info * formatting * remove temporary profiling code * cleanup * fix wasm build * more explicit sizes * deserialize via fossil on 32 bit wasm * Make serialized modules Int size agnostic * reorder stable names to allow range based check for 64 bit constants * format * review comments * fix build * fix * c++17 compat slang-common.h --- prelude/slang-cpp-prelude.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'prelude') diff --git a/prelude/slang-cpp-prelude.h b/prelude/slang-cpp-prelude.h index f9c77cd91..b11af0907 100644 --- a/prelude/slang-cpp-prelude.h +++ b/prelude/slang-cpp-prelude.h @@ -224,6 +224,12 @@ Any platforms not detected by the above logic are now now explicitly zeroed out. // GCC Specific #if SLANG_GCC_FAMILY +#if INTPTR_MAX == INT64_MAX +#define SLANG_64BIT 1 +#else +#define SLANG_64BIT 0 +#endif + #define SLANG_BREAKPOINT(id) __builtin_trap() // Use this macro instead of offsetof, because gcc produces warning if offsetof is used on a -- cgit v1.2.3