33 lines · plain
1// RUN: mlir-opt -allow-unregistered-dialect %s -mlir-print-debuginfo -mlir-pretty-debuginfo -mlir-print-local-scope | FileCheck %s2 3#set0 = affine_set<(d0) : (1 == 0)>4 5// CHECK-LABEL: func @inline_notation6func.func @inline_notation() -> i32 {7 // CHECK: -> i32 "foo"8 %1 = "foo"() : () -> i32 loc("foo")9 10 // CHECK: arith.constant 4 : index "foo" at mysource.cc:10:811 %2 = arith.constant 4 : index loc(callsite("foo" at "mysource.cc":10:8))12 13 // CHECK: arith.constant 4 : index "foo"14 // CHECK-NEXT: at mysource1.cc:10:815 // CHECK-NEXT: at mysource2.cc:13:816 // CHECK-NEXT: at mysource3.cc:100:1017 %3 = arith.constant 4 : index loc(callsite("foo" at callsite("mysource1.cc":10:8 at callsite("mysource2.cc":13:8 at "mysource3.cc":100:10))))18 19 // CHECK: } ["foo", mysource.cc:10:8]20 affine.for %i0 = 0 to 8 {21 } loc(fused["foo", "mysource.cc":10:8])22 23 // CHECK: } <"myPass">["foo", "foo2"]24 affine.if #set0(%2) {25 } loc(fused<"myPass">["foo", "foo2"])26 27 // CHECK: "foo.op"() : () -> () #test.custom_location<"foo.mlir" * 1234>28 "foo.op"() : () -> () loc(#test.custom_location<"foo.mlir" * 1234>)29 30 // CHECK: return %0 : i32 [unknown]31 return %1 : i32 loc(unknown)32}33