melior 0.27.2

The rustic MLIR bindings in Rust
1
2
3
4
5
6
7
8
9
10
11
12
---
source: melior/src/dialect/memref.rs
expression: module.as_operation()
---
module {
  func.func @foo() {
    %alloc = memref.alloc() : memref<8xi8>
    %idx0 = index.constant 0
    %view = memref.view %alloc[%idx0][] {operand_segment_sizes = array<i32: 1, 1, 0>} : memref<8xi8> to memref<1xi8>
    return
  }
}