xref: /llvm-project/mlir/test/mlir-query/simple-test.mlir (revision 02d9f4d1f128e17e04ab6e602d3c9b9942612428)
1// RUN: mlir-query %s -c "m isConstantOp()" | FileCheck %s
2
3// CHECK: {{.*}}.mlir:5:13: note: "root" binds here
4func.func @simple1() {
5  %c1_i32 = arith.constant 1 : i32
6  return
7}
8
9// CHECK: {{.*}}.mlir:12:11: note: "root" binds here
10// CHECK: {{.*}}.mlir:13:11: note: "root" binds here
11func.func @simple2() {
12  %cst1 = arith.constant 1.0 : f32
13  %cst2 = arith.constant 2.0 : f32
14  %add = arith.addf %cst1, %cst2 : f32
15  return
16}
17