[llvm] [SandboxIR] Add bazel support (PR #107486)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 5 15:58:14 PDT 2024


https://github.com/Sterling-Augustine created https://github.com/llvm/llvm-project/pull/107486

None

>From 4add2ea245c5dd549b1a8f14224310f157df22b8 Mon Sep 17 00:00:00 2001
From: Sterling Augustine <saugustine at google.com>
Date: Thu, 5 Sep 2024 15:56:04 -0700
Subject: [PATCH] [SandboxIR] Add bazel support

---
 .../llvm-project-overlay/llvm/BUILD.bazel     | 31 +++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index b2dcc696b0ad06..e989bcf93d590a 100644
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -1446,6 +1446,20 @@ cc_library(
     ],
 )
 
+cc_library(
+    name = "SandboxIR",
+    srcs = glob([
+        "lib/SandboxIR/*.cpp",
+    ]),
+    hdrs = glob(["include/llvm/SandboxIR/*.h"]) +
+    ["include/llvm/SandboxIR/SandboxIRValues.def"],
+    copts = llvm_copts,
+    deps = [
+        ":Core",
+        ":Support",
+    ],
+)
+
 cc_library(
     name = "Scalar",
     srcs = glob([
@@ -1490,6 +1504,22 @@ cc_library(
     ],
 )
 
+cc_library(
+    name = "SandboxVectorizer",
+    srcs = glob([
+        "lib/Transforms/Vectorize/SandboxVectorizer/*.cpp",
+    ]),
+    hdrs = ["include/llvm/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizer.h"],
+    copts = llvm_copts,
+    deps = [
+        ":Analysis",
+        ":Core",
+        ":SandboxIR",
+        ":Support",
+        ":TransformUtils",
+    ],
+)
+
 cc_library(
     name = "FrontendDebug",
     hdrs = glob([
@@ -2661,6 +2691,7 @@ cc_library(
         ":Instrumentation",
         ":MC",
         ":ObjCARC",
+        ":SandboxVectorizer",
         ":Scalar",
         ":Support",
         ":Target",



More information about the llvm-commits mailing list