-
Notifications
You must be signed in to change notification settings - Fork 74k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support of C++20 for OSS TF for Linux platform
PiperOrigin-RevId: 613370839
- Loading branch information
1 parent
f888b40
commit 8bc558b
Showing
19 changed files
with
149 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/src/core/lib/gprpp/atomic.h b/src/core/lib/gprpp/atomic.h | ||
index 095ebf1..4a53d2c 100644 | ||
--- a/src/core/lib/gprpp/atomic.h | ||
+++ b/src/core/lib/gprpp/atomic.h | ||
@@ -28,12 +28,12 @@ | ||
namespace grpc_core { | ||
|
||
enum class MemoryOrder { | ||
- RELAXED = std::memory_order_relaxed, | ||
- CONSUME = std::memory_order_consume, | ||
- ACQUIRE = std::memory_order_acquire, | ||
- RELEASE = std::memory_order_release, | ||
- ACQ_REL = std::memory_order_acq_rel, | ||
- SEQ_CST = std::memory_order_seq_cst | ||
+ RELAXED = static_cast<int>(std::memory_order_relaxed), | ||
+ CONSUME = static_cast<int>(std::memory_order_consume), | ||
+ ACQUIRE = static_cast<int>(std::memory_order_acquire), | ||
+ RELEASE = static_cast<int>(std::memory_order_release), | ||
+ ACQ_REL = static_cast<int>(std::memory_order_acq_rel), | ||
+ SEQ_CST = static_cast<int>(std::memory_order_seq_cst) | ||
}; | ||
|
||
template <typename T> |
26 changes: 26 additions & 0 deletions
26
third_party/systemlibs/google_cloud_cpp_int_types_fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/google/cloud/iam_policy.h b/google/cloud/iam_policy.h | ||
index 45051d8..9004ebd 100644 | ||
--- a/google/cloud/iam_policy.h | ||
+++ b/google/cloud/iam_policy.h | ||
@@ -34,7 +34,7 @@ inline namespace GOOGLE_CLOUD_CPP_NS { | ||
* about ETags. | ||
*/ | ||
struct IamPolicy { | ||
- std::int32_t version; | ||
+ int32_t version; | ||
IamBindings bindings; | ||
std::string etag; | ||
}; | ||
diff --git a/google/cloud/storage/internal/hash_validator_impl.h b/google/cloud/storage/internal/hash_validator_impl.h | ||
index dbb387e..07d9d2d 100644 | ||
--- a/google/cloud/storage/internal/hash_validator_impl.h | ||
+++ b/google/cloud/storage/internal/hash_validator_impl.h | ||
@@ -63,7 +63,7 @@ class Crc32cHashValidator : public HashValidator { | ||
Result Finish() && override; | ||
|
||
private: | ||
- std::uint32_t current_{0}; | ||
+ uint32_t current_{0}; | ||
std::string received_hash_; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
third_party/xla/third_party/tsl/third_party/grpc/cast_memory_order_to_int.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/src/core/lib/gprpp/atomic.h b/src/core/lib/gprpp/atomic.h | ||
index 095ebf1..4a53d2c 100644 | ||
--- a/src/core/lib/gprpp/atomic.h | ||
+++ b/src/core/lib/gprpp/atomic.h | ||
@@ -28,12 +28,12 @@ | ||
namespace grpc_core { | ||
|
||
enum class MemoryOrder { | ||
- RELAXED = std::memory_order_relaxed, | ||
- CONSUME = std::memory_order_consume, | ||
- ACQUIRE = std::memory_order_acquire, | ||
- RELEASE = std::memory_order_release, | ||
- ACQ_REL = std::memory_order_acq_rel, | ||
- SEQ_CST = std::memory_order_seq_cst | ||
+ RELAXED = static_cast<int>(std::memory_order_relaxed), | ||
+ CONSUME = static_cast<int>(std::memory_order_consume), | ||
+ ACQUIRE = static_cast<int>(std::memory_order_acquire), | ||
+ RELEASE = static_cast<int>(std::memory_order_release), | ||
+ ACQ_REL = static_cast<int>(std::memory_order_acq_rel), | ||
+ SEQ_CST = static_cast<int>(std::memory_order_seq_cst) | ||
}; | ||
|
||
template <typename T> |
26 changes: 26 additions & 0 deletions
26
third_party/xla/third_party/tsl/third_party/systemlibs/google_cloud_cpp_int_types_fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/google/cloud/iam_policy.h b/google/cloud/iam_policy.h | ||
index 45051d8..9004ebd 100644 | ||
--- a/google/cloud/iam_policy.h | ||
+++ b/google/cloud/iam_policy.h | ||
@@ -34,7 +34,7 @@ inline namespace GOOGLE_CLOUD_CPP_NS { | ||
* about ETags. | ||
*/ | ||
struct IamPolicy { | ||
- std::int32_t version; | ||
+ int32_t version; | ||
IamBindings bindings; | ||
std::string etag; | ||
}; | ||
diff --git a/google/cloud/storage/internal/hash_validator_impl.h b/google/cloud/storage/internal/hash_validator_impl.h | ||
index dbb387e..07d9d2d 100644 | ||
--- a/google/cloud/storage/internal/hash_validator_impl.h | ||
+++ b/google/cloud/storage/internal/hash_validator_impl.h | ||
@@ -63,7 +63,7 @@ class Crc32cHashValidator : public HashValidator { | ||
Result Finish() && override; | ||
|
||
private: | ||
- std::uint32_t current_{0}; | ||
+ uint32_t current_{0}; | ||
std::string received_hash_; | ||
}; | ||
|