Skip to content

Commit

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

PiperOrigin-RevId: 553004223
  • Loading branch information
durin42 authored and tensorflower-gardener committed Aug 2, 2023
1 parent 5f3ce75 commit f0fade7
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 2 deletions.
73 changes: 73 additions & 0 deletions third_party/llvm/generated.patch
Original file line number Diff line number Diff line change
@@ -1 +1,74 @@
Auto generated patch. Do not edit or delete it, even if empty.
diff -ruN --strip-trailing-cr a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -3522,12 +3522,21 @@
td_srcs = ["include/llvm/Option/OptParser.td"],
)

+expand_template(
+ name = "dwp_main",
+ out = "llvm-dwp-driver.cpp",
+ substitutions = {
+ "@TOOL_NAME@": "llvm_dwp",
+ },
+ template = "cmake/modules/llvm-driver-template.cpp.in",
+)
+
cc_binary(
name = "llvm-dwp",
srcs = glob([
"tools/llvm-dwp/*.cpp",
"tools/llvm-dwp/*.h",
- ]),
+ ]) + ["llvm-dwp-driver.cpp"],
copts = llvm_copts,
stamp = 0,
deps = [
@@ -3725,12 +3734,21 @@
td_srcs = ["include/llvm/Option/OptParser.td"],
)

+expand_template(
+ name = "libtool-darwin_main",
+ out = "llvm-libtool-darwin-driver.cpp",
+ substitutions = {
+ "@TOOL_NAME@": "llvm_libtool_darwin",
+ },
+ template = "cmake/modules/llvm-driver-template.cpp.in",
+)
+
cc_binary(
name = "llvm-libtool-darwin",
srcs = glob([
"tools/llvm-libtool-darwin/*.cpp",
"tools/llvm-libtool-darwin/*.h",
- ]),
+ ]) + ["llvm-libtool-darwin-driver.cpp"],
copts = llvm_copts,
stamp = 0,
deps = [
@@ -4686,12 +4704,22 @@
td_srcs = ["include/llvm/Option/OptParser.td"],
)

+expand_template(
+ name = "sancov_main",
+ out = "sancov-driver.cpp",
+ substitutions = {
+ "@TOOL_NAME@": "sancov",
+ },
+ template = "cmake/modules/llvm-driver-template.cpp.in",
+)
+
+
cc_binary(
name = "sancov",
srcs = glob([
"tools/sancov/*.cpp",
"tools/sancov/*.h",
- ]),
+ ]) + ["sancov-driver.cpp"],
copts = llvm_copts,
stamp = 0,
deps = [
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 = "015ffba811c49ee4d98cc68125b03bd5e1c2a2b6"
LLVM_SHA256 = "a770670cd47b09cd51ccd64c28d799aa1c899c77c691c4e3ec8edd24ac827779"
LLVM_COMMIT = "668e33c6401abe7844691fb7d47a3cf2d2012dbc"
LLVM_SHA256 = "b97fefaa486b106c8dd45b963116ed7684d8f3f55682116d5760b0b60db17702"

tf_http_archive(
name = name,
Expand Down

0 comments on commit f0fade7

Please sign in to comment.