[llvm] [Mesh][Bazel] Added MeshOps to BUILD.bazel file (PR #68759)
Balaji V. Iyer. via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 10 19:46:45 PDT 2023
https://github.com/bviyer created https://github.com/llvm/llvm-project/pull/68759
Added MeshOps and correct dependencies to the BUILD.bazel file.
>From 750d67b7bb1857dcefa952023c927faa1dfd916d Mon Sep 17 00:00:00 2001
From: "Balaji V. Iyer" <bviyer at gmail.com>
Date: Wed, 11 Oct 2023 02:44:29 +0000
Subject: [PATCH] [Mesh][Bazel] Added MeshOps to BUILD.bazel file
Added MeshOps and correct dependencies to the BUILD.bazel file.
---
.../llvm-project-overlay/mlir/BUILD.bazel | 103 ++++++++++++++++++
1 file changed, 103 insertions(+)
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 52845774f1eaf4c..7889008d402a152 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -2986,6 +2986,107 @@ cc_library(
]),
)
+##---------------------------------------------------------------------------##
+# Mesh Dialect
+##---------------------------------------------------------------------------##
+
+td_library(
+ name = "MeshTdFiles",
+ srcs = [
+ "include/mlir/Dialect/Mesh/IR/MeshBase.td",
+ "include/mlir/Dialect/Mesh/IR/MeshOps.td",
+ ],
+ includes = ["include"],
+ deps = [
+ ":BuiltinDialectTdFiles",
+ ":InferTypeOpInterfaceTdFiles",
+ ":SideEffectInterfacesTdFiles",
+ ],
+)
+
+gentbl_cc_library(
+ name = "MeshIncGen",
+ tbl_outs = [
+ (
+ [
+ "-gen-op-decls",
+ "-dialect=mesh",
+ ],
+ "include/mlir/Dialect/Mesh/IR/MeshOps.h.inc",
+ ),
+ (
+ [
+ "-gen-op-defs",
+ "-dialect=mesh",
+ ],
+ "include/mlir/Dialect/Mesh/IR/MeshOps.cpp.inc",
+ ),
+ (
+ [
+ "-gen-dialect-decls",
+ "-dialect=mesh",
+ ],
+ "include/mlir/Dialect/Mesh/IR/MeshOpsDialect.h.inc",
+ ),
+ (
+ [
+ "-gen-dialect-defs",
+ "-dialect=mesh",
+ ],
+ "include/mlir/Dialect/Mesh/IR/MeshOpsDialect.cpp.inc",
+ ),
+ (
+ [
+ "-gen-enum-decls",
+ "-dialect=mesh",
+ ],
+ "include/mlir/Dialect/Mesh/IR/MeshOpsEnums.h.inc",
+ ),
+ (
+ [
+ "-gen-enum-defs",
+ "-dialect=mesh",
+ ],
+ "include/mlir/Dialect/Mesh/IR/MeshOpsEnums.cpp.inc",
+ ),
+ (
+ [
+ "-gen-attrdef-decls",
+ "-dialect=mesh",
+ ],
+ "include/mlir/Dialect/Mesh/IR/MeshOpsAttributes.h.inc",
+ ),
+ (
+ [
+ "-gen-attrdef-defs",
+ "-dialect=mesh",
+ ],
+ "include/mlir/Dialect/Mesh/IR/MeshOpsAttributes.cpp.inc",
+ ),
+ ],
+ tblgen = ":mlir-tblgen",
+ td_file = "include/mlir/Dialect/Mesh/IR/MeshOps.td",
+ deps = [
+ ":MeshTdFiles",
+ ],
+)
+
+cc_library(
+ name = "MeshDialect",
+ srcs = ["lib/Dialect/Mesh/IR/MeshOps.cpp"],
+ hdrs = ["include/mlir/Dialect/Mesh/IR/MeshOps.h"],
+ includes = ["include"],
+ deps = [
+ ":ArithDialect",
+ ":IR",
+ ":InferTypeOpInterface",
+ ":MeshIncGen",
+ ":Support",
+ "//third_party/llvm/llvm-project/llvm:Support",
+ ],
+)
+
+
##---------------------------------------------------------------------------##
# NVGPU dialect.
##---------------------------------------------------------------------------##
@@ -4256,6 +4357,7 @@ cc_library(
":MathToLLVM",
":MemRefToLLVM",
":MemRefTransformOps",
+ ":MeshDialect",
":NVGPUTransformOps",
":NVVMTarget",
":NVVMToLLVM",
@@ -8425,6 +8527,7 @@ cc_library(
":MemRefToSPIRV",
":MemRefTransformOps",
":MemRefTransforms",
+ ":MeshDialect",
":NVGPUDialect",
":NVGPUPassIncGen",
":NVGPUToNVVM",
More information about the llvm-commits
mailing list