Skip to content

Commit

Permalink
Integrate LLVM at llvm/llvm-project@faa3f7528969
Browse files Browse the repository at this point in the history
Updates LLVM usage to match
[faa3f7528969](llvm/llvm-project@faa3f7528969)

PiperOrigin-RevId: 712960477
  • Loading branch information
d0k authored and Google-ML-Automation committed Jan 7, 2025
1 parent 9718f05 commit 6146cbf
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 211 deletions.
66 changes: 0 additions & 66 deletions third_party/llvm/generated.patch
Original file line number Diff line number Diff line change
@@ -1,67 +1 @@
Auto generated patch. Do not edit or delete it, even if empty.
diff -ruN --strip-trailing-cr a/clang/test/Driver/spirv-openmp-toolchain.c b/clang/test/Driver/spirv-openmp-toolchain.c
--- a/clang/test/Driver/spirv-openmp-toolchain.c
+++ b/clang/test/Driver/spirv-openmp-toolchain.c
@@ -1,4 +1,4 @@
-// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=spirv64-intel \
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp -fopenmp-targets=spirv64-intel \
// RUN: --libomptarget-spirv-bc-path=%t/ -nogpulib %s 2>&1 \
// RUN: | FileCheck %s

diff -ruN --strip-trailing-cr a/libc/src/stdlib/qsort_pivot.h b/libc/src/stdlib/qsort_pivot.h
--- a/libc/src/stdlib/qsort_pivot.h
+++ b/libc/src/stdlib/qsort_pivot.h
@@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_SRC_STDLIB_QSORT_PIVOT_H
#define LLVM_LIBC_SRC_STDLIB_QSORT_PIVOT_H

-#include <stdint.h>
+#include <stddef.h> // For size_t

namespace LIBC_NAMESPACE_DECL {
namespace internal {
diff -ruN --strip-trailing-cr a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -3481,11 +3481,13 @@
hdrs = [
"src/stdlib/heap_sort.h",
"src/stdlib/qsort_data.h",
+ "src/stdlib/qsort_pivot.h",
"src/stdlib/qsort_util.h",
"src/stdlib/quick_sort.h",
],
deps = [
":__support_common",
+ ":__support_cpp_bit",
":__support_cpp_cstddef",
":__support_macros_attributes",
],
diff -ruN --strip-trailing-cr a/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
--- a/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
@@ -115,7 +115,7 @@
hdrs = ["SortingTest.h"],
deps = [
"//libc:__support_macros_config",
- "//libc:qsort_util",
+ "//libc:qsort",
"//libc/test/UnitTest:LibcUnitTest",
],
)
@@ -126,6 +126,7 @@
libc_function_deps = ["//libc:qsort"],
deps = [
":qsort_test_helper",
+ "//libc:qsort_util",
"//libc:types_size_t",
],
)
@@ -136,6 +137,7 @@
libc_function_deps = ["//libc:qsort"],
deps = [
":qsort_test_helper",
+ "//libc:qsort_util",
"//libc:types_size_t",
],
)
4 changes: 2 additions & 2 deletions third_party/llvm/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ load("//third_party:repo.bzl", "tf_http_archive")

def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "743aee4951d452c7795e4e829a6cbf704340cd1c"
LLVM_SHA256 = "f329a4573217959086f25791acc788f35b72a5cd86f396d29579b3cbdac53faf"
LLVM_COMMIT = "faa3f752896903c2d09d389970d3d0ebf50a1073"
LLVM_SHA256 = "2c8b76b370dca2a70dac1036244598d357867071217074c5cdf15c43295b0042"

tf_http_archive(
name = name,
Expand Down
146 changes: 73 additions & 73 deletions third_party/shardy/temporary.patch
Original file line number Diff line number Diff line change
@@ -1,87 +1,87 @@
diff --git a/third_party/llvm/generated.patch b/third_party/llvm/generated.patch
index 509398d..19931f2 100644
index 19931f2..509398d 100644
--- a/third_party/llvm/generated.patch
+++ b/third_party/llvm/generated.patch
@@ -1 +1,67 @@
@@ -1,67 +1 @@
Auto generated patch. Do not edit or delete it, even if empty.
+diff -ruN --strip-trailing-cr a/clang/test/Driver/spirv-openmp-toolchain.c b/clang/test/Driver/spirv-openmp-toolchain.c
+--- a/clang/test/Driver/spirv-openmp-toolchain.c
++++ b/clang/test/Driver/spirv-openmp-toolchain.c
+@@ -1,4 +1,4 @@
+-// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=spirv64-intel \
++// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp -fopenmp-targets=spirv64-intel \
+ // RUN: --libomptarget-spirv-bc-path=%t/ -nogpulib %s 2>&1 \
+ // RUN: | FileCheck %s
+
+diff -ruN --strip-trailing-cr a/libc/src/stdlib/qsort_pivot.h b/libc/src/stdlib/qsort_pivot.h
+--- a/libc/src/stdlib/qsort_pivot.h
++++ b/libc/src/stdlib/qsort_pivot.h
+@@ -9,7 +9,7 @@
+ #ifndef LLVM_LIBC_SRC_STDLIB_QSORT_PIVOT_H
+ #define LLVM_LIBC_SRC_STDLIB_QSORT_PIVOT_H
+
+-#include <stdint.h>
++#include <stddef.h> // For size_t
+
+ namespace LIBC_NAMESPACE_DECL {
+ namespace internal {
+diff -ruN --strip-trailing-cr a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
++++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+@@ -3481,11 +3481,13 @@
+ hdrs = [
+ "src/stdlib/heap_sort.h",
+ "src/stdlib/qsort_data.h",
++ "src/stdlib/qsort_pivot.h",
+ "src/stdlib/qsort_util.h",
+ "src/stdlib/quick_sort.h",
+ ],
+ deps = [
+ ":__support_common",
++ ":__support_cpp_bit",
+ ":__support_cpp_cstddef",
+ ":__support_macros_attributes",
+ ],
+diff -ruN --strip-trailing-cr a/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
+--- a/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
++++ b/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
+@@ -115,7 +115,7 @@
+ hdrs = ["SortingTest.h"],
+ deps = [
+ "//libc:__support_macros_config",
+- "//libc:qsort_util",
++ "//libc:qsort",
+ "//libc/test/UnitTest:LibcUnitTest",
+ ],
+ )
+@@ -126,6 +126,7 @@
+ libc_function_deps = ["//libc:qsort"],
+ deps = [
+ ":qsort_test_helper",
++ "//libc:qsort_util",
+ "//libc:types_size_t",
+ ],
+ )
+@@ -136,6 +137,7 @@
+ libc_function_deps = ["//libc:qsort"],
+ deps = [
+ ":qsort_test_helper",
++ "//libc:qsort_util",
+ "//libc:types_size_t",
+ ],
+ )
-diff -ruN --strip-trailing-cr a/clang/test/Driver/spirv-openmp-toolchain.c b/clang/test/Driver/spirv-openmp-toolchain.c
---- a/clang/test/Driver/spirv-openmp-toolchain.c
-+++ b/clang/test/Driver/spirv-openmp-toolchain.c
-@@ -1,4 +1,4 @@
--// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=spirv64-intel \
-+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp -fopenmp-targets=spirv64-intel \
- // RUN: --libomptarget-spirv-bc-path=%t/ -nogpulib %s 2>&1 \
- // RUN: | FileCheck %s
-
-diff -ruN --strip-trailing-cr a/libc/src/stdlib/qsort_pivot.h b/libc/src/stdlib/qsort_pivot.h
---- a/libc/src/stdlib/qsort_pivot.h
-+++ b/libc/src/stdlib/qsort_pivot.h
-@@ -9,7 +9,7 @@
- #ifndef LLVM_LIBC_SRC_STDLIB_QSORT_PIVOT_H
- #define LLVM_LIBC_SRC_STDLIB_QSORT_PIVOT_H
-
--#include <stdint.h>
-+#include <stddef.h> // For size_t
-
- namespace LIBC_NAMESPACE_DECL {
- namespace internal {
-diff -ruN --strip-trailing-cr a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
---- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
-+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
-@@ -3481,11 +3481,13 @@
- hdrs = [
- "src/stdlib/heap_sort.h",
- "src/stdlib/qsort_data.h",
-+ "src/stdlib/qsort_pivot.h",
- "src/stdlib/qsort_util.h",
- "src/stdlib/quick_sort.h",
- ],
- deps = [
- ":__support_common",
-+ ":__support_cpp_bit",
- ":__support_cpp_cstddef",
- ":__support_macros_attributes",
- ],
-diff -ruN --strip-trailing-cr a/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
---- a/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
-+++ b/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
-@@ -115,7 +115,7 @@
- hdrs = ["SortingTest.h"],
- deps = [
- "//libc:__support_macros_config",
-- "//libc:qsort_util",
-+ "//libc:qsort",
- "//libc/test/UnitTest:LibcUnitTest",
- ],
- )
-@@ -126,6 +126,7 @@
- libc_function_deps = ["//libc:qsort"],
- deps = [
- ":qsort_test_helper",
-+ "//libc:qsort_util",
- "//libc:types_size_t",
- ],
- )
-@@ -136,6 +137,7 @@
- libc_function_deps = ["//libc:qsort"],
- deps = [
- ":qsort_test_helper",
-+ "//libc:qsort_util",
- "//libc:types_size_t",
- ],
- )
diff --git a/third_party/llvm/workspace.bzl b/third_party/llvm/workspace.bzl
index 33b3b01..d9f463e 100644
index d9f463e..b6db01e 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 = "f739aa4004165dc64d3a1f418d5ad3c84886f01a"
- LLVM_SHA256 = "85da134e7ba044ef50ebc009d1a57a87fb0e2db208a04650ef2fe564e9564aa7"
+ LLVM_COMMIT = "743aee4951d452c7795e4e829a6cbf704340cd1c"
+ LLVM_SHA256 = "f329a4573217959086f25791acc788f35b72a5cd86f396d29579b3cbdac53faf"
- LLVM_COMMIT = "743aee4951d452c7795e4e829a6cbf704340cd1c"
- LLVM_SHA256 = "f329a4573217959086f25791acc788f35b72a5cd86f396d29579b3cbdac53faf"
+ LLVM_COMMIT = "faa3f752896903c2d09d389970d3d0ebf50a1073"
+ LLVM_SHA256 = "2c8b76b370dca2a70dac1036244598d357867071217074c5cdf15c43295b0042"

tf_http_archive(
name = name,
4 changes: 2 additions & 2 deletions third_party/shardy/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")

def repo():
SHARDY_COMMIT = "b9cee4e1b1929649152fad501f187709402040ee"
SHARDY_SHA256 = "810eafa532cffb99bc5686e529b585b767a5b659cc36cbecbd80a9892b1d5016"
SHARDY_COMMIT = "f759dcb6af2a9ab0753bda2efa905d315d790f07"
SHARDY_SHA256 = "6ef3ebd3f2f0102ac0ea5101b5ea5a4e4fc2ebd3534da649d1151f94cf3329cd"

tf_http_archive(
name = "shardy",
Expand Down
66 changes: 0 additions & 66 deletions third_party/tsl/third_party/llvm/generated.patch
Original file line number Diff line number Diff line change
@@ -1,67 +1 @@
Auto generated patch. Do not edit or delete it, even if empty.
diff -ruN --strip-trailing-cr a/clang/test/Driver/spirv-openmp-toolchain.c b/clang/test/Driver/spirv-openmp-toolchain.c
--- a/clang/test/Driver/spirv-openmp-toolchain.c
+++ b/clang/test/Driver/spirv-openmp-toolchain.c
@@ -1,4 +1,4 @@
-// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=spirv64-intel \
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp -fopenmp-targets=spirv64-intel \
// RUN: --libomptarget-spirv-bc-path=%t/ -nogpulib %s 2>&1 \
// RUN: | FileCheck %s

diff -ruN --strip-trailing-cr a/libc/src/stdlib/qsort_pivot.h b/libc/src/stdlib/qsort_pivot.h
--- a/libc/src/stdlib/qsort_pivot.h
+++ b/libc/src/stdlib/qsort_pivot.h
@@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_SRC_STDLIB_QSORT_PIVOT_H
#define LLVM_LIBC_SRC_STDLIB_QSORT_PIVOT_H

-#include <stdint.h>
+#include <stddef.h> // For size_t

namespace LIBC_NAMESPACE_DECL {
namespace internal {
diff -ruN --strip-trailing-cr a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -3481,11 +3481,13 @@
hdrs = [
"src/stdlib/heap_sort.h",
"src/stdlib/qsort_data.h",
+ "src/stdlib/qsort_pivot.h",
"src/stdlib/qsort_util.h",
"src/stdlib/quick_sort.h",
],
deps = [
":__support_common",
+ ":__support_cpp_bit",
":__support_cpp_cstddef",
":__support_macros_attributes",
],
diff -ruN --strip-trailing-cr a/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
--- a/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
@@ -115,7 +115,7 @@
hdrs = ["SortingTest.h"],
deps = [
"//libc:__support_macros_config",
- "//libc:qsort_util",
+ "//libc:qsort",
"//libc/test/UnitTest:LibcUnitTest",
],
)
@@ -126,6 +126,7 @@
libc_function_deps = ["//libc:qsort"],
deps = [
":qsort_test_helper",
+ "//libc:qsort_util",
"//libc:types_size_t",
],
)
@@ -136,6 +137,7 @@
libc_function_deps = ["//libc:qsort"],
deps = [
":qsort_test_helper",
+ "//libc:qsort_util",
"//libc:types_size_t",
],
)
4 changes: 2 additions & 2 deletions third_party/tsl/third_party/llvm/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ load("//third_party:repo.bzl", "tf_http_archive")

def repo(name):
"""Imports LLVM."""
LLVM_COMMIT = "743aee4951d452c7795e4e829a6cbf704340cd1c"
LLVM_SHA256 = "f329a4573217959086f25791acc788f35b72a5cd86f396d29579b3cbdac53faf"
LLVM_COMMIT = "faa3f752896903c2d09d389970d3d0ebf50a1073"
LLVM_SHA256 = "2c8b76b370dca2a70dac1036244598d357867071217074c5cdf15c43295b0042"

tf_http_archive(
name = name,
Expand Down

0 comments on commit 6146cbf

Please sign in to comment.