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.cpp | |
| 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.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index e76ff7436..b616eb555 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -763,7 +763,7 @@ SlangResult Session::_readBuiltinModule( // to deserialize the IR module. // RefPtr<IRModule> irModule; - SLANG_RETURN_ON_FAIL(decodeModuleIR(irModule, irChunk, this, sourceLocReader)); + readSerializedModuleIR(irChunk, this, sourceLocReader, irModule); irModule->setName(module->getNameObj()); module->setIRModule(irModule); @@ -6801,7 +6801,7 @@ SlangResult Linkage::loadSerializedModuleContents( module->setModuleDecl(moduleDecl); RefPtr<IRModule> irModule; - SLANG_RETURN_ON_FAIL(decodeModuleIR(irModule, irChunk, session, sourceLocReader)); + readSerializedModuleIR(irChunk, session, sourceLocReader, irModule); module->setIRModule(irModule); // The handling of file dependencies is complicated, because of |
