| # 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 |
| |
| # AMDGPU device library bitcode files (ocml, ockl, opencl) fetched from |
| # https://github.com/shark-infra/amdgpu-device-libs. These are linked into |
| # ROCM/HIP executables by iree-compile at hal-executable compilation time. |
| # |
| # Bundled as an iree_directory (TreeArtifact) because iree-compile expects |
| # --iree-rocm-bc-dir to point at a directory, not individual files. |
| |
| load("@iree_core//build_tools/bazel:iree_directory.bzl", "iree_directory") |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| iree_directory( |
| name = "bitcode", |
| srcs = glob(["*.bc"]), |
| ) |