Lines Matching full:shape
1 // RUN: mlir-opt -pass-pipeline="builtin.module(func.func(convert-shape-constraints))" <%s | FileCh…
6 // CHECK-SAME: %[[RHS:.*]]: tensor<?xindex>) -> !shape.witness {
7 // CHECK: %[[RET:.*]] = shape.const_witness true
8 // CHECK: %[[BROADCAST_IS_VALID:.*]] = shape.is_broadcastable %[[LHS]], %[[RHS]]
10 // CHECK: return %[[RET]] : !shape.witness
12 func.func @cstr_broadcastable(%arg0: tensor<?xindex>, %arg1: tensor<?xindex>) -> !shape.witness {
13 %witness = shape.cstr_broadcastable %arg0, %arg1 : tensor<?xindex>, tensor<?xindex>
14 return %witness : !shape.witness
19 // CHECK-SAME: %[[RHS:.*]]: tensor<?xindex>) -> !shape.witness {
20 // CHECK: %[[RET:.*]] = shape.const_witness true
21 // CHECK: %[[EQUAL_IS_VALID:.*]] = shape.shape_eq %[[LHS]], %[[RHS]]
23 // CHECK: return %[[RET]] : !shape.witness
25 func.func @cstr_eq(%arg0: tensor<?xindex>, %arg1: tensor<?xindex>) -> !shape.witness {
26 %witness = shape.cstr_eq %arg0, %arg1 : tensor<?xindex>, tensor<?xindex>
27 return %witness : !shape.witness
31 func.func @cstr_require(%arg0: i1) -> !shape.witness {
32 // CHECK: %[[RET:.*]] = shape.const_witness true
35 %witness = shape.cstr_require %arg0, "msg"
36 return %witness : !shape.witness