Skip to content

Commit fec9be9

Browse files
committed
[bazel][mlir] Add missing dep and include after 9b63bdd
This fixes issues when compiling SliceMatchers.h separately. In particular, the missing include triggered a "member access into incomplete type" error: ``` third_party/llvm/llvm-project/mlir/include/mlir/Query/Matcher/SliceMatchers.h:91:30: error: member access into incomplete type 'Operation' 91 | for (auto operand : subOp->getOperands()) { | ^ third_party/llvm/llvm-project/mlir/include/mlir/Analysis/SliceAnalysis.h:20:7: note: forward declaration of 'mlir::Operation' 20 | class Operation; | ^ ```
1 parent ff78d23 commit fec9be9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

mlir/include/mlir/Query/Matcher/SliceMatchers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#define MLIR_TOOLS_MLIRQUERY_MATCHERS_SLICEMATCHERS_H
1515

1616
#include "mlir/Analysis/SliceAnalysis.h"
17+
#include "mlir/IR/Operation.h"
1718

1819
/// A matcher encapsulating `getBackwardSlice` method from SliceAnalysis.h.
1920
/// Additionally, it limits the slice computation to a certain depth level using

utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12874,6 +12874,7 @@ cc_library(
1287412874
),
1287512875
includes = ["include"],
1287612876
deps = [
12877+
":Analysis",
1287712878
":FuncDialect",
1287812879
":IR",
1287912880
":Reducer",

0 commit comments

Comments
 (0)