1 // RUN: mlir-opt -allow-unregistered-dialect %s -mlir-print-debuginfo -mlir-pretty-debuginfo -mlir-print-local-scope | FileCheck %s
3 #set0 = affine_set<(d0) : (1 == 0)>
5 // CHECK-LABEL: func @inline_notation
6 func.func @inline_notation() -> i32 {
8 %1 = "foo"() : () -> i32 loc("foo")
10 // CHECK: arith.constant 4 : index "foo" at mysource.cc:10:8
11 %2 = arith.constant 4 : index loc(callsite("foo" at "mysource.cc":10:8))
13 // CHECK: arith.constant 4 : index "foo"
14 // CHECK-NEXT: at mysource1.cc:10:8
15 // CHECK-NEXT: at mysource2.cc:13:8
16 // CHECK-NEXT: at mysource3.cc:100:10
17 %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))))
19 // CHECK: } ["foo", mysource.cc:10:8]
20 affine.for %i0 = 0 to 8 {
21 } loc(fused["foo", "mysource.cc":10:8])
23 // CHECK: } <"myPass">["foo", "foo2"]
25 } loc(fused<"myPass">["foo", "foo2"])
27 // CHECK: "foo.op"() : () -> () #test.custom_location<"foo.mlir" * 1234>
28 "foo.op"() : () -> () loc(#test.custom_location<"foo.mlir" * 1234>)
30 // CHECK: return %0 : i32 [unknown]
31 return %1 : i32 loc(unknown)