Skip to content

Commit a86bd7f

Browse files
committed
Update module version.
1 parent 43ed80c commit a86bd7f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/Serialization/ModuleFormat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const uint16_t SWIFTMODULE_VERSION_MAJOR = 0;
5252
/// describe what change you made. The content of this comment isn't important;
5353
/// it just ensures a conflict if two people change the module format.
5454
/// Don't worry about adhering to the 80-column limit for this line.
55-
const uint16_t SWIFTMODULE_VERSION_MINOR = 522; // use DifferentiabilityKindField in SILFunctionTypeLayout
55+
const uint16_t SWIFTMODULE_VERSION_MINOR = 523; // differentiable_function and differentiable_function_extract instructions
5656

5757
/// A standard hash seed used for all string hashes in a serialized module.
5858
///
@@ -326,6 +326,7 @@ enum class ParameterConvention : uint8_t {
326326
};
327327
using ParameterConventionField = BCFixed<4>;
328328

329+
// SWIFT_ENABLE_TENSORFLOW
329330
// These IDs must \em not be renumbered or reordered without incrementing the
330331
// module version.
331332
enum class DifferentiabilityKind : uint8_t {
@@ -335,7 +336,6 @@ enum class DifferentiabilityKind : uint8_t {
335336
};
336337
using DifferentiabilityKindField = BCFixed<2>;
337338

338-
// SWIFT_ENABLE_TENSORFLOW
339339
// These IDs must \em not be renumbered or reordered without incrementing
340340
// the module version.
341341
enum class SILParameterDifferentiability : uint8_t {

lib/Serialization/Serialization.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3663,6 +3663,7 @@ static uint8_t getRawStableSILCoroutineKind(
36633663
llvm_unreachable("bad kind");
36643664
}
36653665

3666+
// SWIFT_ENABLE_TENSORFLOW
36663667
/// Translate from the AST differentiability kind enum to the Serialization enum
36673668
/// values, which are guaranteed to be stable.
36683669
static uint8_t getRawStableDifferentiabilityKind(

0 commit comments

Comments
 (0)