You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Dialects/krnl.md
-83
Original file line number
Diff line number
Diff line change
@@ -313,37 +313,6 @@ intend to optimize.
313
313
| :----: | ----------- |
314
314
«unnamed» | variadic of any type
315
315
316
-
### `krnl.dim` (KrnlDimOp)
317
-
318
-
_Krnl dimensions operation._
319
-
320
-
Emits the dimension of a MemRef independent of the MemRef alloc:
321
-
322
-
```
323
-
"krnl.dim"(%memref, %index)
324
-
```
325
-
326
-
The index identifies the dimension within the shape which is going to be emitted.
327
-
Initially the krnl.dim operation depends on the alloc of the MemRef.
328
-
Unlike the std.dim operation which maintains a dependency on the alloc of the MemRef, the dimension emitted by krnl.dim will not depend on the alloc operation of the MemRef once the krnl.dim operation is lowered.
329
-
330
-
Any changes to the original MemRef size after the krnl.dim has been lowered will not be picked up by the emitted dimension. This allows the original MemRef to be safely modified via code transformations or affine map normalization without the risk of changing the value already emitted via krnl.dim.
331
-
332
-
Traits: MemRefsNormalizable
333
-
334
-
#### Operands:
335
-
336
-
| Operand | Description |
337
-
| :-----: | ----------- |
338
-
| `alloc` | memref of any type values
339
-
| `index` | index
340
-
341
-
#### Results:
342
-
343
-
| Result | Description |
344
-
| :----: | ----------- |
345
-
| `dimension` | index
346
-
347
316
### `krnl.entry_point` (KrnlEntryPointOp)
348
317
349
318
_Indicate ONNX entry point_
@@ -429,34 +398,6 @@ current tile being iterated over.
429
398
| :----: | ----------- |
430
399
| `ind_var_vals` | variadic of any type
431
400
432
-
### `krnl.getref` (KrnlGetRefOp)
433
-
434
-
_Krnl a MemRef from within another MemRef starting at a specific offset._
435
-
436
-
Retrieves a MemRef from within another MemRef:
437
-
438
-
```
439
-
"krnl.getref"(%memref, %offset)
440
-
```
441
-
The offset is an integer which is used as an index into the input MemRef. It works
0 commit comments