diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2025-07-17 14:59:33 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-17 06:59:33 +0000 |
| commit | 28758e0e427ceca196937dc90efe3ab1cb35bd70 (patch) | |
| tree | 7a609525e686772854d8cd82b7a91f69a97c0e30 /prelude | |
| parent | 020a16072923a66ae0985be618fd32310aa87242 (diff) | |
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
Diffstat (limited to 'prelude')
| -rw-r--r-- | prelude/slang-cpp-prelude.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
