-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
ReifyRankedShapedTypeOpInterface
to `hal.interface.binding.subs…
…pan`. Fixes #18942 Signed-off-by: MaheshRavishankar <mahesh.ravishankar@gmail.com>
- Loading branch information
1 parent
5fc340d
commit 20f668f
Showing
5 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
compiler/src/iree/compiler/Dialect/HAL/Transforms/test/resolve_ranked_shaped_type.mlir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// RUN: iree-opt -resolve-ranked-shaped-type-result-dims --split-input-file %s | FileCheck %s | ||
|
||
util.func public @hal_interface_binding_subspan_op(%arg0 : index, %arg1 : index) -> (index, index, index) { | ||
%c0 = arith.constant 0 : index | ||
%c1 = arith.constant 1 : index | ||
%c2 = arith.constant 2 : index | ||
%0 = hal.interface.binding.subspan layout(< | ||
constants = 0, bindings = [#hal.pipeline.binding<storage_buffer, "ReadOnly|Indirect">], flags = Indirect>) | ||
binding(0) : memref<64x?x?xf16>{%arg0, %arg1} | ||
%d0 = memref.dim %0, %c0 : memref<64x?x?xf16> | ||
%d1 = memref.dim %0, %c1 : memref<64x?x?xf16> | ||
%d2 = memref.dim %0, %c2 : memref<64x?x?xf16> | ||
util.return %d0, %d1, %d2 : index, index, index | ||
} | ||
// CHECK-LABEL: func public @hal_interface_binding_subspan_op( | ||
// CHECK-SAME: %[[ARG0:[a-zA-Z0-9]+]]: index, | ||
// CHECK-SAME: %[[ARG1:[a-zA-Z0-9]+]]: index) | ||
// CHECK: %[[C64:.+]] = arith.constant 64 : index | ||
// CHECK: return %[[C64]], %[[ARG0]], %[[ARG1]] |