[Mlir-commits] [mlir] [mlir] add missing include to MemRefTransformOps.h (PR #92361)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu May 16 01:23:47 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-memref
Author: Oleksandr "Alex" Zinenko (ftynse)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/92361.diff
1 Files Affected:
- (modified) mlir/include/mlir/Dialect/MemRef/TransformOps/MemRefTransformOps.h (+1)
``````````diff
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"
``````````
</details>
https://github.com/llvm/llvm-project/pull/92361
More information about the Mlir-commits
mailing list