blob: fed86005dd46027aadf19c3f675b5531d19c7ab9 [file]
# Copyright 2023 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("@rules_cc//cc:defs.bzl", "cc_library")
load("//build_tools/bazel:build_defs.oss.bzl", "iree_compiler_register_plugin")
package(
default_visibility = ["//visibility:public"],
features = ["layering_check"],
licenses = ["notice"], # Apache 2.0
)
cc_library(
name = "defs",
includes = ["src"],
)
cc_library(
name = "registration",
srcs = [
"src/PluginRegistration.cpp",
],
deps = [
":defs",
"//compiler/src/iree/compiler/PluginAPI",
"@llvm-project//mlir:IR",
],
)
iree_compiler_register_plugin(
plugin_id = "example",
target = ":registration",
)