From fcc4a5a563989a0d79dacdc5d437db04220ec4ed Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 1 May 2024 15:44:42 -0700 Subject: [PATCH] Integrate LLVM at llvm/llvm-project@a7b968a57834 Updates LLVM usage to match [a7b968a57834](https://github.com/llvm/llvm-project/commit/a7b968a57834) PiperOrigin-RevId: 629861245 --- third_party/llvm/generated.patch | 14 -------------- third_party/llvm/workspace.bzl | 4 ++-- third_party/tsl/third_party/llvm/generated.patch | 14 -------------- third_party/tsl/third_party/llvm/workspace.bzl | 4 ++-- 4 files changed, 4 insertions(+), 32 deletions(-) diff --git a/third_party/llvm/generated.patch b/third_party/llvm/generated.patch index 94c6e1b0cdb21..509398da979e8 100644 --- a/third_party/llvm/generated.patch +++ b/third_party/llvm/generated.patch @@ -1,15 +1 @@ Auto generated patch. Do not edit or delete it, even if empty. -diff -ruN --strip-trailing-cr a/clang/test/CodeGenCoroutines/coro-elide-thinlto.cpp b/clang/test/CodeGenCoroutines/coro-elide-thinlto.cpp ---- a/clang/test/CodeGenCoroutines/coro-elide-thinlto.cpp -+++ b/clang/test/CodeGenCoroutines/coro-elide-thinlto.cpp -@@ -4,8 +4,8 @@ - // RUN: split-file %s %t - // RUN: %clang --target=x86_64-linux -std=c++20 -O2 -flto=thin -I %S -c %t/coro-elide-callee.cpp -o %t/coro-elide-callee.o - // RUN: %clang --target=x86_64-linux -std=c++20 -O2 -flto=thin -I %S -c %t/coro-elide-caller.cpp -o %t/coro-elide-caller.o --// RUN: llvm-lto -thinlto %t/coro-elide-callee.o %t/coro-elide-caller.o -o summary --// RUN: %clang_cc1 -O2 -x ir %t/coro-elide-caller.o -fthinlto-index=summary.thinlto.bc -emit-llvm -o - | FileCheck %s -+// RUN: llvm-lto -thinlto %t/coro-elide-callee.o %t/coro-elide-caller.o -o %t/summary -+// RUN: %clang_cc1 -O2 -x ir %t/coro-elide-caller.o -fthinlto-index=%t/summary.thinlto.bc -emit-llvm -o - | FileCheck %s - - //--- coro-elide-task.h - #pragma once diff --git a/third_party/llvm/workspace.bzl b/third_party/llvm/workspace.bzl index 59d905e826414..bff9faa7d7a7e 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 = "f4843acd839f4f8687815560b69fa96ed3cbf8cf" - LLVM_SHA256 = "bf6efbc83faab7b7d765acb3ce201b740c6e536569fa58f77c278d06b779f4ca" + LLVM_COMMIT = "a7b968a57834a0e522505b56fab0ca4b979cb68f" + LLVM_SHA256 = "57c598287c774ff0a6919de6bcdf331bb60bb962f8ba74b4ce6a3fc0cb6aaa0c" tf_http_archive( name = name, diff --git a/third_party/tsl/third_party/llvm/generated.patch b/third_party/tsl/third_party/llvm/generated.patch index 94c6e1b0cdb21..509398da979e8 100644 --- a/third_party/tsl/third_party/llvm/generated.patch +++ b/third_party/tsl/third_party/llvm/generated.patch @@ -1,15 +1 @@ Auto generated patch. Do not edit or delete it, even if empty. -diff -ruN --strip-trailing-cr a/clang/test/CodeGenCoroutines/coro-elide-thinlto.cpp b/clang/test/CodeGenCoroutines/coro-elide-thinlto.cpp ---- a/clang/test/CodeGenCoroutines/coro-elide-thinlto.cpp -+++ b/clang/test/CodeGenCoroutines/coro-elide-thinlto.cpp -@@ -4,8 +4,8 @@ - // RUN: split-file %s %t - // RUN: %clang --target=x86_64-linux -std=c++20 -O2 -flto=thin -I %S -c %t/coro-elide-callee.cpp -o %t/coro-elide-callee.o - // RUN: %clang --target=x86_64-linux -std=c++20 -O2 -flto=thin -I %S -c %t/coro-elide-caller.cpp -o %t/coro-elide-caller.o --// RUN: llvm-lto -thinlto %t/coro-elide-callee.o %t/coro-elide-caller.o -o summary --// RUN: %clang_cc1 -O2 -x ir %t/coro-elide-caller.o -fthinlto-index=summary.thinlto.bc -emit-llvm -o - | FileCheck %s -+// RUN: llvm-lto -thinlto %t/coro-elide-callee.o %t/coro-elide-caller.o -o %t/summary -+// RUN: %clang_cc1 -O2 -x ir %t/coro-elide-caller.o -fthinlto-index=%t/summary.thinlto.bc -emit-llvm -o - | FileCheck %s - - //--- coro-elide-task.h - #pragma once diff --git a/third_party/tsl/third_party/llvm/workspace.bzl b/third_party/tsl/third_party/llvm/workspace.bzl index 59d905e826414..bff9faa7d7a7e 100644 --- a/third_party/tsl/third_party/llvm/workspace.bzl +++ b/third_party/tsl/third_party/llvm/workspace.bzl @@ -4,8 +4,8 @@ load("//third_party:repo.bzl", "tf_http_archive") def repo(name): """Imports LLVM.""" - LLVM_COMMIT = "f4843acd839f4f8687815560b69fa96ed3cbf8cf" - LLVM_SHA256 = "bf6efbc83faab7b7d765acb3ce201b740c6e536569fa58f77c278d06b779f4ca" + LLVM_COMMIT = "a7b968a57834a0e522505b56fab0ca4b979cb68f" + LLVM_SHA256 = "57c598287c774ff0a6919de6bcdf331bb60bb962f8ba74b4ce6a3fc0cb6aaa0c" tf_http_archive( name = name,