brintos

brintos / llvm-project-archived public Read only

0
0
Text · 431 B · a4d0065 Raw
17 lines · plain
1// RUN: mlir-query %s -c "m isConstantOp()" | FileCheck %s2 3// CHECK: {{.*}}.mlir:5:13: note: "root" binds here4func.func @simple1() {5  %c1_i32 = arith.constant 1 : i326  return7}8 9// CHECK: {{.*}}.mlir:12:11: note: "root" binds here10// CHECK: {{.*}}.mlir:13:11: note: "root" binds here11func.func @simple2() {12  %cst1 = arith.constant 1.0 : f3213  %cst2 = arith.constant 2.0 : f3214  %add = arith.addf %cst1, %cst2 : f3215  return16}17