@@ -220,6 +220,31 @@ def LoopLikeOpInterface :
OpInterface<"LoopLikeOpInterface"> {
/*defaultImplementation=*/[{
return ::mlir::failure();
}]
+>,
+InterfaceMethod<[{
+Add a zero-trip-check around the loop to check if the loop body is ever
--
@@ -220,6 +220,31 @@ def LoopLikeOpInterface :
OpInterface<"LoopLikeOpInterface"> {
/*defaultImplementation=*/[{
return ::mlir::failure();
}]
+>,
+InterfaceMethod<[{
+Add a zero-trip-check around the loop to check if the loop body is ever
+
@@ -220,6 +220,28 @@ def LoopLikeOpInterface :
OpInterface<"LoopLikeOpInterface"> {
/*defaultImplementation=*/[{
return ::mlir::failure();
}]
+>,
+InterfaceMethod<[{
+Add a zero-trip-check around the loop to check if the loop body is ever
+
https://github.com/dcaballe closed
https://github.com/llvm/llvm-project/pull/79494
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
dcaballe wrote:
Thanks for the info! I think making the interleave op at Vector level available
to fixed vectors would also make sense. There is a point in knowing that a
shuffle is actually implementing an interleave pattern.
I guess we should also be fine with this LLVM limitations for now:
https://github.com/dcaballe updated
https://github.com/llvm/llvm-project/pull/79494
>From b8fb65dd1e65c36cfb2104e5f35179faa6011552 Mon Sep 17 00:00:00 2001
From: Diego Caballero
Date: Thu, 25 Jan 2024 02:39:14 +
Subject: [PATCH] [mlir][Vector] Add patterns for efficient i4 -> i8 conversion
@@ -96,6 +96,79 @@ bool mlir::isRowMajorBatchMatmul(ArrayAttr indexingMaps) {
return indexingMaps == maps;
}
+bool mlir::isVecmat(ArrayAttr indexingMaps) {
+ if (indexingMaps.size() != 3)
+return false;
+ auto map0 = cast(indexingMaps[0]).getValue();
d
https://github.com/dcaballe commented:
Awesome! Just a couple of minor comments from my side!
https://github.com/llvm/llvm-project/pull/68945
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb
@@ -86,6 +86,39 @@ def LinalgContractionOpInterface :
OpInterface<"ContractionOpInterface"> {
/*methodBody=*/[{
return mlir::isRowMajorBatchMatmul($_op.getIndexingMaps());
}]>,
+InterfaceMethod<
+/*desc=*/[{
+ Returns whether the given op has index