[Mlir-commits] [mlir] [mlir][linalg] Create a dedicated target for LinalgRelayoutInterface (PR #127541)

Mehdi Amini llvmlistbot at llvm.org
Wed Feb 19 04:03:59 PST 2025


================
@@ -10,7 +10,7 @@
 #include "mlir/Dialect/Arith/IR/Arith.h"
 #include "mlir/Dialect/Arith/Utils/Utils.h"
 #include "mlir/Dialect/Complex/IR/Complex.h"
-#include "mlir/Dialect/Linalg/IR/Linalg.h"
+#include "mlir/Dialect/Linalg/IR/LinalgRelayoutInterface.h.inc"
----------------
joker-eph wrote:

You shouldn't include a .h.inc, but you can create a `include "mlir/Dialect/Linalg/IR/LinalgRelayoutInterface.h"` that itself encapsulates and include the .h.inc.
See for example `include/mlir/Dialect/Bufferization/IR/AllocationOpInterface.h`, `include/mlir/Dialect/GPU/IR/CompilationInterfaces.h`, or `include/mlir/Conversion/ConvertToLLVM/ToLLVMInterface.h`  which implement this pattern.

https://github.com/llvm/llvm-project/pull/127541


More information about the Mlir-commits mailing list