[Mlir-commits] [mlir] 710f4bd - [mlir] add missing include to MemRefTransformOps.h
Alex Zinenko
llvmlistbot at llvm.org
Thu May 16 01:26:46 PDT 2024
Author: Alex Zinenko
Date: 2024-05-16T10:26:41+02:00
New Revision: 710f4bd054a857dd25012c9fef0cb66104f17ec0
URL: https://github.com/llvm/llvm-project/commit/710f4bd054a857dd25012c9fef0cb66104f17ec0
DIFF: https://github.com/llvm/llvm-project/commit/710f4bd054a857dd25012c9fef0cb66104f17ec0.diff
LOG: [mlir] add missing include to MemRefTransformOps.h
The ODS-generated code has the following:
```
::mlir::TypedValue<::mlir::transform::OperationType> getAlloca() {
return ::llvm::cast<::mlir::TypedValue<::mlir::transform::OperationType>>(
*getODSOperands(0).begin());
}
```
that may require the compiler seing the definition of `OperationType` so
include the corresponding header.
Added:
Modified:
mlir/include/mlir/Dialect/MemRef/TransformOps/MemRefTransformOps.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/MemRef/TransformOps/MemRefTransformOps.h b/mlir/include/mlir/Dialect/MemRef/TransformOps/MemRefTransformOps.h
index a87767acdd3b8..5ef901ade91d1 100644
--- a/mlir/include/mlir/Dialect/MemRef/TransformOps/MemRefTransformOps.h
+++ b/mlir/include/mlir/Dialect/MemRef/TransformOps/MemRefTransformOps.h
@@ -10,6 +10,7 @@
#define MLIR_DIALECT_MEMREF_TRANSFORMOPS_MEMREFTRANSFORMOPS_H
#include "mlir/Bytecode/BytecodeOpInterface.h"
+#include "mlir/Dialect/Transform/IR/TransformTypes.h"
#include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"
#include "mlir/IR/OpImplementation.h"
More information about the Mlir-commits
mailing list