diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2025-07-09 14:41:19 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-09 06:41:19 +0000 |
| commit | 00746bf09047cdf01c19dac513a532bcf3ed3ea3 (patch) | |
| tree | 3424872a629307fc9fb4dc04ea5e9a0a787a6523 /include/slang.h | |
| parent | 4f54cccf0e0e06be38312e2ee97c2b50b82d7c10 (diff) | |
Stable names and backwards compat for serialized IR modules (#7644)
* stable names
* tests, options and ci for stable names
* Add back compat design document
* fix warnings
* formatting
* comment
* neaten
* regenerate command line reference
* consolidate ci scripts
* faster ci
* remove libreadline
* Move new function to end of interface
---------
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'include/slang.h')
| -rw-r--r-- | include/slang.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/slang.h b/include/slang.h index 83009d2e1..9d7fe2d49 100644 --- a/include/slang.h +++ b/include/slang.h @@ -1034,6 +1034,9 @@ typedef uint32_t SlangSizeT; SkipDownstreamLinking, // bool, experimental DumpModule, + GetModuleInfo, // Print serialized module version and name + GetSupportedModuleVersions, // Print the min and max module versions this compiler supports + EmitSeparateDebug, // bool // Floating point denormal handling modes @@ -4167,6 +4170,16 @@ struct ISession : public ISlangUnknown slang::TypeReflection* interfaceType, uint32_t* outRTTIDataBuffer, uint32_t bufferSizeInBytes) = 0; + + /** Read module info (name and version) from a module blob + * + * The returned pointers are valid for as long as the session. + */ + virtual SLANG_NO_THROW SlangResult SLANG_MCALL loadModuleInfoFromIRBlob( + slang::IBlob* source, + SlangInt& outModuleVersion, + const char*& outModuleCompilerVersion, + const char*& outModuleName) = 0; }; #define SLANG_UUID_ISession ISession::getTypeGuid() |
