[llvm] [bazel][NFC] Use globs to make `Vectorize` less brittle (PR #108644)
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 13 13:40:56 PDT 2024
https://github.com/rupprecht created https://github.com/llvm/llvm-project/pull/108644
This avoids needing to update the rule every time there's a new directory, e.g. SandboxVectorizer packages.
>From d9436bc2e49592bd755146db876e1158e762dd5c Mon Sep 17 00:00:00 2001
From: Jordan Rupprecht <rupprecht at google.com>
Date: Fri, 13 Sep 2024 13:34:06 -0700
Subject: [PATCH] [bazel][NFC] Use globs to make `Vectorize` less brittle
This avoids needing to update the rule every time there's a new directory, e.g. SandboxVectorizer packages.
---
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index 06795ebb204bdd..9402fd135711f5 100644
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -1485,15 +1485,11 @@ cc_library(
cc_library(
name = "Vectorize",
srcs = glob([
- "lib/Transforms/Vectorize/*.cpp",
- "lib/Transforms/Vectorize/*.h",
- "lib/Transforms/Vectorize/SandboxVectorizer/*.cpp",
- "lib/Transforms/Vectorize/SandboxVectorizer/Passes/*.cpp",
+ "lib/Transforms/Vectorize/**/*.cpp",
+ "lib/Transforms/Vectorize/**/*.h",
]),
hdrs = glob([
- "include/llvm/Transforms/Vectorize/*.h",
- "include/llvm/Transforms/Vectorize/SandboxVectorizer/*.h",
- "include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/*.h"
+ "include/llvm/Transforms/Vectorize/**/*.h",
]),
copts = llvm_copts,
deps = [
More information about the llvm-commits
mailing list