diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2025-07-08 10:36:52 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-08 02:36:52 +0000 |
| commit | 69947dec841ea46e68ccdccae45a1080fcaea01c (patch) | |
| tree | f8208b40d2baab7e914b396d04f08d30ffb63105 /source/slang/slang-serialize-types.h | |
| parent | 3865a6596afca1c193eb17bbb74008077096e7c3 (diff) | |
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
Diffstat (limited to 'source/slang/slang-serialize-types.h')
| -rw-r--r-- | source/slang/slang-serialize-types.h | 7 |
1 files changed, 7 insertions, 0 deletions
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<Module> static const FourCC::RawValue FileDependencies = SLANG_FOUR_CC('f', 'd', 'e', 'p'); }; +template<> +struct PropertyKeys<IRModule> +{ + static const FourCC::RawValue IRModule = SLANG_FOUR_CC('i', 'r', ' ', ' '); +}; + // For types/FourCC that work for serializing in general (not just IR). struct SerialBinary { |
