Add canonicalization pattern for index::CmpOp
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/Index/IR/IndexOps.h | ||
---|---|---|
17 | Running into error that's from the declaration of the canonicalize function in generated header file, need to add the include into all source files including IndexOps.h and there seem to be ordering related with ordering. Would just include in IndexOps.h a bit easier here? In file included from /Users/weiwei.chen/research/modularml/modular/third-party/llvm-project/mlir/lib/Dialect/Index/IR/InferIntRangeInterfaceImpls.cpp:9: In file included from /Users/weiwei.chen/research/modularml/modular/third-party/llvm-project/mlir/include/mlir/Dialect/Index/IR/IndexOps.h:36: /Users/weiwei.chen/research/modularml/modular/.derived/third-party/cmake-debug-build-llvm/tools/mlir/include/mlir/Dialect/Index/IR/IndexOps.h.inc:1115:63: error: no type named 'PatternRewriter' in namespace 'mlir' static ::mlir::LogicalResult canonicalize(CmpOp op, ::mlir::PatternRewriter &rewriter); |
mlir/include/mlir/Dialect/Index/IR/IndexOps.h | ||
---|---|---|
17 | Please add a forward declaration for it |
mlir/include/mlir/Dialect/Index/IR/IndexOps.h | ||
---|---|---|
26–33 |
Please move this include to the source file