From 69947dec841ea46e68ccdccae45a1080fcaea01c Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 8 Jul 2025 10:36:52 +0800 Subject: Use fossil for IR serialization (#7619) * bottleneck ir module reading and writing * compute/simple working * more complex tests working * neaten * factor out SourceLoc serialization * document changes * Appease clang * Correct name serialization * remove unnecessary code * neaten * neaten --- source/slang/slang-serialize-types.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/slang/slang-serialize-types.h') diff --git a/source/slang/slang-serialize-types.h b/source/slang/slang-serialize-types.h index be49be1ea..ca54848c2 100644 --- a/source/slang/slang-serialize-types.h +++ b/source/slang/slang-serialize-types.h @@ -5,6 +5,7 @@ #include "../core/slang-array-view.h" #include "../core/slang-riff.h" #include "../core/slang-string-slice-pool.h" +#include "slang-ir.h" // #include "slang-name.h" // #include "slang-source-loc.h" @@ -109,6 +110,12 @@ struct PropertyKeys static const FourCC::RawValue FileDependencies = SLANG_FOUR_CC('f', 'd', 'e', 'p'); }; +template<> +struct PropertyKeys +{ + static const FourCC::RawValue IRModule = SLANG_FOUR_CC('i', 'r', ' ', ' '); +}; + // For types/FourCC that work for serializing in general (not just IR). struct SerialBinary { -- cgit v1.2.3