summaryrefslogtreecommitdiff
path: root/source/slang-record-replay/util
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-10-25 10:14:22 -0700
committerGitHub <noreply@github.com>2024-10-25 10:14:22 -0700
commit4bad669bbc5ec3ff77321f083c59cde87eb10229 (patch)
treebf0abc916692cf34e804469bba400f2b04172472 /source/slang-record-replay/util
parentef40d3044cf75ec3d7b24a43257fa744b45274f9 (diff)
Replace stdlib on Slang API with CoreModule (#5405)
This is a breaking change in a way that the Slang API function names are changed. All of them are commented as "experimental" and we wouldn't provide a back-ward compatibility for them. Following functions are renamed: compileStdLib() -> compileCoreModule() loadStdLib() -> loadCoreModule() saveStdLib() -> saveCoreModule() slang_createGlobalSessionWithoutStdLib() -> slang_createGlobalSessionWithoutCoreModule() slang_getEmbeddedStdLib() -> slang_getEmbeddedCoreModule() hasDeferredStdLib() -> hasDeferredCoreModule() Following command-line arguments are renamed: "-load-stdlib" -> "-load-core-module" "-save-stdlib" -> "-save-core-module" "-save-stdlib-bin-source" -> "-save-core-module-bin-source" "-compile-stdlib" -> "-compile-core-module"
Diffstat (limited to 'source/slang-record-replay/util')
-rw-r--r--source/slang-record-replay/util/emum-to-string.h14
-rw-r--r--source/slang-record-replay/util/record-format.h6
2 files changed, 10 insertions, 10 deletions
diff --git a/source/slang-record-replay/util/emum-to-string.h b/source/slang-record-replay/util/emum-to-string.h
index 8c140cf3d..3b275399c 100644
--- a/source/slang-record-replay/util/emum-to-string.h
+++ b/source/slang-record-replay/util/emum-to-string.h
@@ -215,13 +215,13 @@ namespace SlangRecord
CASE(ValidateUniformity);
CASE(AllowGLSL);
CASE(ArchiveType);
- CASE(CompileStdLib);
+ CASE(CompileCoreModule);
CASE(Doc);
CASE(IrCompression);
- CASE(LoadStdLib);
+ CASE(LoadCoreModule);
CASE(ReferenceModule);
- CASE(SaveStdLib);
- CASE(SaveStdLibBinSource);
+ CASE(SaveCoreModule);
+ CASE(SaveCoreModuleBinSource);
CASE(TrackLiveness);
CASE(LoopInversion);
CASE(CountOfParsableOptions);
@@ -332,15 +332,15 @@ namespace SlangRecord
}
}
- static Slang::String CompileStdLibFlagsToString(const slang::CompileStdLibFlags flags)
+ static Slang::String CompileCoreModuleFlagsToString(const slang::CompileCoreModuleFlags flags)
{
using namespace slang;
switch(flags)
{
- case CompileStdLibFlag::WriteDocumentation: return "WriteDocumentation";
+ case CompileCoreModuleFlag::WriteDocumentation: return "WriteDocumentation";
default:
Slang::StringBuilder str;
- str << "Unknown CompileStdLibFlags: " << static_cast<uint32_t>(flags);
+ str << "Unknown CompileCoreModuleFlags: " << static_cast<uint32_t>(flags);
return str.toString();
}
}
diff --git a/source/slang-record-replay/util/record-format.h b/source/slang-record-replay/util/record-format.h
index 1a32dbbd6..7c53044d6 100644
--- a/source/slang-record-replay/util/record-format.h
+++ b/source/slang-record-replay/util/record-format.h
@@ -78,9 +78,9 @@ namespace SlangRecord
IGlobalSession_getSharedLibraryLoader = makeApiCallId(Class_IGlobalSession, 0x000E),
IGlobalSession_checkCompileTargetSupport = makeApiCallId(Class_IGlobalSession, 0x000F),
IGlobalSession_checkPassThroughSupport = makeApiCallId(Class_IGlobalSession, 0x0010),
- IGlobalSession_compileStdLib = makeApiCallId(Class_IGlobalSession, 0x0011),
- IGlobalSession_loadStdLib = makeApiCallId(Class_IGlobalSession, 0x0012),
- IGlobalSession_saveStdLib = makeApiCallId(Class_IGlobalSession, 0x0013),
+ IGlobalSession_compileCoreModule = makeApiCallId(Class_IGlobalSession, 0x0011),
+ IGlobalSession_loadCoreModule = makeApiCallId(Class_IGlobalSession, 0x0012),
+ IGlobalSession_saveCoreModule = makeApiCallId(Class_IGlobalSession, 0x0013),
IGlobalSession_findCapability = makeApiCallId(Class_IGlobalSession, 0x0014),
IGlobalSession_setDownstreamCompilerForTransition = makeApiCallId(Class_IGlobalSession, 0x0015),
IGlobalSession_getDownstreamCompilerForTransition = makeApiCallId(Class_IGlobalSession, 0x0016),