Skip to content

Commit 0a5ea45

Browse files
authored
[NFC] Remove unused CAPI dependencies added by #18840 (#19949)
This patch remove spurious CAPI dependencies on non-CAPI libraries. CAPI libraries should never be added to non-CAPI libs, as they end-up causing `multiple definition` linking errors. Signed-off-by: fabian <[email protected]>
1 parent 93eb7c8 commit 0a5ea45

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

compiler/src/iree/compiler/Codegen/Dialect/GPU/IR/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ iree_compiler_cc_library(
9696
"@llvm-project//mlir:AffineDialect",
9797
"@llvm-project//mlir:ArithDialect",
9898
"@llvm-project//mlir:ArithUtils",
99-
"@llvm-project//mlir:CAPIIR",
10099
"@llvm-project//mlir:ControlFlowInterfaces",
101100
"@llvm-project//mlir:DialectUtils",
102101
"@llvm-project//mlir:IR",

compiler/src/iree/compiler/Codegen/Dialect/GPU/IR/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ iree_cc_library(
5353
MLIRAffineDialect
5454
MLIRArithDialect
5555
MLIRArithUtils
56-
MLIRCAPIIR
5756
MLIRControlFlowInterfaces
5857
MLIRIR
5958
MLIRLinalgDialect

compiler/src/iree/compiler/Codegen/Dialect/GPU/IR/IREEGPUAttrs.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
#include "llvm/ADT/TypeSwitch.h"
2121
#include "llvm/Support/Debug.h"
2222
#include "llvm/Support/ErrorHandling.h"
23-
#include "mlir-c/IR.h"
24-
#include "mlir/CAPI/IR.h"
25-
#include "mlir/CAPI/Support.h"
2623
#include "mlir/Dialect/AMDGPU/IR/AMDGPUDialect.h"
2724
#include "mlir/Dialect/Affine/IR/AffineOps.h"
2825
#include "mlir/Dialect/Arith/IR/Arith.h"

0 commit comments

Comments
 (0)