melior 0.27.2

The rustic MLIR bindings in Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
---
source: melior/src/dialect/memref.rs
expression: module.as_operation()
---
module {
  func.func @foo() {
    %alloca = memref.alloca() : memref<1xindex>
    %idx0 = index.constant 0
    %dim = memref.dim %alloca, %idx0 : memref<1xindex>
    return
  }
}