12 lines · plain
1// RUN: mlir-query %s -c "m allOf(hasOpName(\"memref.alloca\"), hasOpAttrName(\"alignment\"))" | FileCheck %s2 3func.func @dynamic_alloca(%arg0: index, %arg1: index) -> memref<?x?xf32> {4 %0 = memref.alloca(%arg0, %arg1) : memref<?x?xf32>5 memref.alloca(%arg0, %arg1) {alignment = 32} : memref<?x?xf32>6 return %0 : memref<?x?xf32>7}8 9// CHECK: Match #1:10// CHECK: {{.*}}.mlir:5:3: note: "root" binds here11// CHECK: memref.alloca(%arg0, %arg1) {alignment = 32} : memref<?x?xf32>12