Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions compiler/src/iree/compiler/Codegen/Dialect/Map/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright 2026 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
13 changes: 13 additions & 0 deletions compiler/src/iree/compiler/Codegen/Dialect/Map/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
# compiler/src/iree/compiler/Codegen/Dialect/Map/BUILD.bazel #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
# #
# To disable autogeneration for this file entirely, delete this header. #
################################################################################

iree_add_all_subdirs()

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
95 changes: 95 additions & 0 deletions compiler/src/iree/compiler/Codegen/Dialect/Map/IR/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Copyright 2026 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_cc_library", "iree_gentbl_cc_library", "iree_td_library")
load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")

package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)

exports_files([
"IREEMapAttrs.td",
"IREEMapBase.td",
])

iree_td_library(
name = "td_files",
srcs = enforce_glob(
# keep sorted
[
"IREEMapAttrs.td",
"IREEMapBase.td",
],
include = ["*.td"],
),
deps = [
"@llvm-project//mlir:OpBaseTdFiles",
],
)

iree_compiler_cc_library(
name = "IREEMapDialect",
srcs = [
"IREEMapAttrs.cpp",
"IREEMapDialect.cpp",
"IntTuple.cpp",
],
hdrs = [
"IREEMapAttrs.h",
"IREEMapDialect.h",
"IntTuple.h",
],
textual_hdrs = [
"IREEMapAttrs.cpp.inc",
"IREEMapAttrs.h.inc",
"IREEMapDialect.cpp.inc",
"IREEMapDialect.h.inc",
],
deps = [
":IREEMapAttrsGen",
":IREEMapDialectGen",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Support",
],
)

iree_gentbl_cc_library(
name = "IREEMapDialectGen",
tbl_outs = [
(
["--gen-dialect-decls"],
"IREEMapDialect.h.inc",
),
(
["--gen-dialect-defs"],
"IREEMapDialect.cpp.inc",
),
],
tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "IREEMapBase.td",
deps = [":td_files"],
)

iree_gentbl_cc_library(
name = "IREEMapAttrsGen",
tbl_outs = [
(
["--gen-attrdef-decls"],
"IREEMapAttrs.h.inc",
),
(
["--gen-attrdef-defs"],
"IREEMapAttrs.cpp.inc",
),
],
tblgen = "@llvm-project//mlir:mlir-tblgen",
td_file = "IREEMapAttrs.td",
deps = [":td_files"],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
################################################################################
# Autogenerated by build_tools/bazel_to_cmake/bazel_to_cmake.py from #
# compiler/src/iree/compiler/Codegen/Dialect/Map/IR/BUILD.bazel #
# #
# Use iree_cmake_extra_content from iree/build_defs.oss.bzl to add arbitrary #
# CMake-only content. #
# #
# To disable autogeneration for this file entirely, delete this header. #
################################################################################

iree_add_all_subdirs()

iree_cc_library(
NAME
IREEMapDialect
HDRS
"IREEMapAttrs.h"
"IREEMapDialect.h"
"IntTuple.h"
TEXTUAL_HDRS
"IREEMapAttrs.cpp.inc"
"IREEMapAttrs.h.inc"
"IREEMapDialect.cpp.inc"
"IREEMapDialect.h.inc"
SRCS
"IREEMapAttrs.cpp"
"IREEMapDialect.cpp"
"IntTuple.cpp"
DEPS
::IREEMapAttrsGen
::IREEMapDialectGen
LLVMSupport
MLIRIR
MLIRSupport
PUBLIC
)

iree_tablegen_library(
NAME
IREEMapDialectGen
TD_FILE
"IREEMapBase.td"
OUTS
--gen-dialect-decls IREEMapDialect.h.inc
--gen-dialect-defs IREEMapDialect.cpp.inc
)

iree_tablegen_library(
NAME
IREEMapAttrsGen
TD_FILE
"IREEMapAttrs.td"
OUTS
--gen-attrdef-decls IREEMapAttrs.h.inc
--gen-attrdef-defs IREEMapAttrs.cpp.inc
)

### BAZEL_TO_CMAKE_PRESERVES_ALL_CONTENT_BELOW_THIS_LINE ###
Loading
Loading