Updates LLVM usage to match
[d0a7411cb840](https://github.com/llvm/llvm-project/commit/d0a7411cb840)

PiperOrigin-RevId: 824767534
This commit is contained in:
A. Unique TensorFlower 2025-10-27 18:21:19 -07:00 committed by TensorFlower Gardener
parent 6e82d4d96b
commit 4231383b5b
3 changed files with 9 additions and 67 deletions

View File

@ -4,8 +4,8 @@ load("//third_party:repo.bzl", "tf_http_archive")
def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "d7e40f3e71654658e249ee481e28aeae0e0410b1"
LLVM_SHA256 = "86d7df5660d6e72bd05a486474ba3e811fcc703840ef8efe13529791565d851d"
LLVM_COMMIT = "d0a7411cb840d253f58a627cc3957fc7b5263a3d"
LLVM_SHA256 = "b8bc83aa8b5ead53af8425786bba4aab9fb6c901d97dc33dc89924824d943234"
tf_http_archive(
name = name,

View File

@ -1,73 +1,15 @@
diff --git a/third_party/llvm/generated.patch b/third_party/llvm/generated.patch
index 6f93f59..509398d 100644
--- a/third_party/llvm/generated.patch
+++ b/third_party/llvm/generated.patch
@@ -1,53 +1 @@
Auto generated patch. Do not edit or delete it, even if empty.
-diff -ruN --strip-trailing-cr a/llvm/include/llvm/ExecutionEngine/Orc/Core.h b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
---- a/llvm/include/llvm/ExecutionEngine/Orc/Core.h
-+++ b/llvm/include/llvm/ExecutionEngine/Orc/Core.h
-@@ -1768,7 +1768,7 @@
- // FIXME: We should be able to derive FailedSymsForQuery from each query once
- // we fix how the detach operation works.
- struct EmitQueries {
-- JITDylib::AsynchronousSymbolQuerySet Updated;
-+ JITDylib::AsynchronousSymbolQuerySet Completed;
- JITDylib::AsynchronousSymbolQuerySet Failed;
- DenseMap<AsynchronousSymbolQuery *, std::shared_ptr<SymbolDependenceMap>>
- FailedSymsForQuery;
-diff -ruN --strip-trailing-cr a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp
---- a/llvm/lib/ExecutionEngine/Orc/Core.cpp
-+++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp
-@@ -2901,13 +2901,23 @@
-
- for (auto &SN : ER.Ready)
- IL_collectQueries(
-- EQ.Updated, SN->defs(),
-+ EQ.Completed, SN->defs(),
- [](JITDylib::SymbolTableEntry &E) { E.setState(SymbolState::Ready); },
- [](AsynchronousSymbolQuery &Q, JITDylib &JD,
- NonOwningSymbolStringPtr Name, JITDylib::SymbolTableEntry &E) {
- Q.notifySymbolMetRequiredState(SymbolStringPtr(Name), E.getSymbol());
- });
-
-+ // std::erase_if is not available in C++17, and llvm::erase_if does not work
-+ // here.
-+ for (auto it = EQ.Completed.begin(), end = EQ.Completed.end(); it != end;) {
-+ if ((*it)->isComplete()) {
-+ ++it;
-+ } else {
-+ it = EQ.Completed.erase(it);
-+ }
-+ }
-+
- #ifdef EXPENSIVE_CHECKS
- verifySessionState("exiting ExecutionSession::IL_emit");
- #endif
-@@ -3043,9 +3053,8 @@
- }
- }
-
-- for (auto &UQ : EmitQueries->Updated)
-- if (UQ->isComplete())
-- UQ->handleComplete(*this);
-+ for (auto &UQ : EmitQueries->Completed)
-+ UQ->handleComplete(*this);
-
- // If there are any bad dependencies then return an error.
- if (!BadDeps.empty()) {
diff --git a/third_party/llvm/workspace.bzl b/third_party/llvm/workspace.bzl
index 335486c..429d012 100644
index 429d012..93e7894 100644
--- a/third_party/llvm/workspace.bzl
+++ b/third_party/llvm/workspace.bzl
@@ -4,8 +4,8 @@ load("//third_party:repo.bzl", "tf_http_archive")
def repo(name):
"""Imports LLVM."""
- LLVM_COMMIT = "621ed04e28787ade92b98e296332ac71d1b81678"
- LLVM_SHA256 = "60729061c07f0e834acb1a18607d2552dc08596e651125a7aea9c37a4b390058"
+ LLVM_COMMIT = "d7e40f3e71654658e249ee481e28aeae0e0410b1"
+ LLVM_SHA256 = "86d7df5660d6e72bd05a486474ba3e811fcc703840ef8efe13529791565d851d"
- LLVM_COMMIT = "d7e40f3e71654658e249ee481e28aeae0e0410b1"
- LLVM_SHA256 = "86d7df5660d6e72bd05a486474ba3e811fcc703840ef8efe13529791565d851d"
+ LLVM_COMMIT = "d0a7411cb840d253f58a627cc3957fc7b5263a3d"
+ LLVM_SHA256 = "b8bc83aa8b5ead53af8425786bba4aab9fb6c901d97dc33dc89924824d943234"
tf_http_archive(
name = name,

View File

@ -3,8 +3,8 @@
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
SHARDY_COMMIT = "c2e02e3479c33dcc6bb5222683444948144beef9"
SHARDY_SHA256 = "896a99739603991b2ef451c466b10a4517574761bb8130b90b4ef8f8280e9caa"
SHARDY_COMMIT = "95ed418a446ad28756c47f6b0c936af2c18803f0"
SHARDY_SHA256 = "a322773c08f9aab5246240b51aa6f89110bf338c8a760124e9e2a8d3f31bda80"
tf_http_archive(
name = "shardy",