[llvm] [mlir][bazel] Export headers either from :Transforms or :TransformUtils (PR #86819)
Christian Sigg via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 28 02:00:52 PDT 2024
================
@@ -7510,18 +7541,23 @@ cc_library(
cc_library(
name = "TransformUtils",
srcs = glob(
- include = [
- "lib/Transforms/Utils/*.cpp",
- ],
+ include = ["lib/Transforms/Utils/*.cpp"],
exclude = ["lib/Transforms/Utils/InliningUtils.cpp"],
- ),
- hdrs = glob(
- include = ["include/mlir/Transforms/*.h"],
- exclude = [
- "include/mlir/Transforms/InliningUtils.h",
- "include/mlir/Transforms/Passes.h",
- ],
- ),
+ ) + [
+ ],
+ hdrs = [
+ "include/mlir/Transforms/CFGToSCF.h",
+ "include/mlir/Transforms/CommutativityUtils.h",
+ "include/mlir/Transforms/ControlFlowSinkUtils.h",
+ "include/mlir/Transforms/DialectConversion.h",
+ "include/mlir/Transforms/FoldUtils.h",
+ "include/mlir/Transforms/GreedyPatternRewriteDriver.h",
+ "include/mlir/Transforms/Inliner.h",
+ "include/mlir/Transforms/LoopInvariantCodeMotionUtils.h",
+ "include/mlir/Transforms/OneToNTypeConversion.h",
+ "include/mlir/Transforms/RegionUtils.h",
+ "include/mlir/Transforms/TopologicalSortUtils.h",
+ ],
----------------
chsigg wrote:
That might make sense, but I don't really want to start [another](https://github.com/llvm/llvm-project/pull/84878) discussion about moving code around to better match the bazel build graph.
https://github.com/llvm/llvm-project/pull/86819
More information about the llvm-commits
mailing list