mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 08:54:47 +01:00
Improve SemIR naming of import_refs (#4824)
Changes the name of SemIR `import_ref`s to use the format `<package>.<entity>`. <table> <tr><th>Before</th><th>After</th></tr> <tr> <td><code>%import_ref.05a: type</code></td> <td><code>%Main.D: type</code></td> </tr> <tr> <td><code>%import_ref.8f2: <witness></code></td> <td><code>%Main.import_ref.8f2: <witness></code></td> </tr> </table> * [Discord discussion in #toolchain](https://discord.com/channels/655572317891461132/655578254970716160/1330253540999827577) * Closes #4769
This commit is contained in:
+94
-94
@@ -278,7 +278,7 @@ import library "extern_api";
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
|
||||
// CHECK:STDOUT: .Int = %import_ref.485
|
||||
// CHECK:STDOUT: .Int = %Core.Int
|
||||
// CHECK:STDOUT: import Core//prelude
|
||||
// CHECK:STDOUT: import Core//prelude/...
|
||||
// CHECK:STDOUT: }
|
||||
@@ -371,7 +371,7 @@ import library "extern_api";
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
|
||||
// CHECK:STDOUT: .Int = %import_ref.485
|
||||
// CHECK:STDOUT: .Int = %Core.Int
|
||||
// CHECK:STDOUT: import Core//prelude
|
||||
// CHECK:STDOUT: import Core//prelude/...
|
||||
// CHECK:STDOUT: }
|
||||
@@ -454,7 +454,7 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: %B: %B.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %int_1.5b8: Core.IntLiteral = int_value 1 [template]
|
||||
// CHECK:STDOUT: %Convert.type.1b6: type = fn_type @Convert.1, @ImplicitAs(%i32) [template]
|
||||
// CHECK:STDOUT: %impl_witness.d39: <witness> = impl_witness (imports.%import_ref.a5b), @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %impl_witness.d39: <witness> = impl_witness (imports.%Core.import_ref.a5b), @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %Convert.type.035: type = fn_type @Convert.2, @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %Convert.956: %Convert.type.035 = struct_value () [template]
|
||||
// CHECK:STDOUT: %Convert.bound: <bound method> = bound_method %int_1.5b8, %Convert.956 [template]
|
||||
@@ -473,18 +473,18 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
// CHECK:STDOUT: %import_ref.a6e: %A.type = import_ref Main//api, A, loaded [template = constants.%A]
|
||||
// CHECK:STDOUT: %import_ref.54c: %B.type = import_ref Main//api, B, loaded [template = constants.%B]
|
||||
// CHECK:STDOUT: %import_ref.94c0: %C.type = import_ref Main//api, C, loaded [template = constants.%C]
|
||||
// CHECK:STDOUT: %import_ref.5f5: %D.type = import_ref Main//api, D, loaded [template = constants.%D]
|
||||
// CHECK:STDOUT: %import_ref.d58: <namespace> = import_ref Main//api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %import_ref.d58, [template] {
|
||||
// CHECK:STDOUT: .E = %import_ref.86f
|
||||
// CHECK:STDOUT: %Main.A: %A.type = import_ref Main//api, A, loaded [template = constants.%A]
|
||||
// CHECK:STDOUT: %Main.B: %B.type = import_ref Main//api, B, loaded [template = constants.%B]
|
||||
// CHECK:STDOUT: %Main.C: %C.type = import_ref Main//api, C, loaded [template = constants.%C]
|
||||
// CHECK:STDOUT: %Main.D: %D.type = import_ref Main//api, D, loaded [template = constants.%D]
|
||||
// CHECK:STDOUT: %Main.NS: <namespace> = import_ref Main//api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %Main.NS, [template] {
|
||||
// CHECK:STDOUT: .E = %Main.E
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %import_ref.86f: %E.type = import_ref Main//api, E, loaded [template = constants.%E]
|
||||
// CHECK:STDOUT: %Main.E: %E.type = import_ref Main//api, E, loaded [template = constants.%E]
|
||||
// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
|
||||
// CHECK:STDOUT: .Int = %import_ref.485
|
||||
// CHECK:STDOUT: .ImplicitAs = %import_ref.d44
|
||||
// CHECK:STDOUT: .Int = %Core.Int
|
||||
// CHECK:STDOUT: .ImplicitAs = %Core.ImplicitAs
|
||||
// CHECK:STDOUT: import Core//prelude
|
||||
// CHECK:STDOUT: import Core//prelude/...
|
||||
// CHECK:STDOUT: }
|
||||
@@ -492,10 +492,10 @@ import library "extern_api";
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: file {
|
||||
// CHECK:STDOUT: package: <namespace> = namespace [template] {
|
||||
// CHECK:STDOUT: .A = imports.%import_ref.a6e
|
||||
// CHECK:STDOUT: .B = imports.%import_ref.54c
|
||||
// CHECK:STDOUT: .C = imports.%import_ref.94c0
|
||||
// CHECK:STDOUT: .D = imports.%import_ref.5f5
|
||||
// CHECK:STDOUT: .A = imports.%Main.A
|
||||
// CHECK:STDOUT: .B = imports.%Main.B
|
||||
// CHECK:STDOUT: .C = imports.%Main.C
|
||||
// CHECK:STDOUT: .D = imports.%Main.D
|
||||
// CHECK:STDOUT: .NS = imports.%NS
|
||||
// CHECK:STDOUT: .Core = imports.%Core
|
||||
// CHECK:STDOUT: .a = %a
|
||||
@@ -571,10 +571,10 @@ import library "extern_api";
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %A.ref: %A.type = name_ref A, imports.%import_ref.a6e [template = constants.%A]
|
||||
// CHECK:STDOUT: %A.ref: %A.type = name_ref A, imports.%Main.A [template = constants.%A]
|
||||
// CHECK:STDOUT: %A.call: init %empty_tuple.type = call %A.ref()
|
||||
// CHECK:STDOUT: assign file.%a.var, %A.call
|
||||
// CHECK:STDOUT: %B.ref: %B.type = name_ref B, imports.%import_ref.54c [template = constants.%B]
|
||||
// CHECK:STDOUT: %B.ref: %B.type = name_ref B, imports.%Main.B [template = constants.%B]
|
||||
// CHECK:STDOUT: %int_1.loc7: Core.IntLiteral = int_value 1 [template = constants.%int_1.5b8]
|
||||
// CHECK:STDOUT: %impl.elem0.loc7: %Convert.type.1b6 = impl_witness_access constants.%impl_witness.d39, element0 [template = constants.%Convert.956]
|
||||
// CHECK:STDOUT: %Convert.bound.loc7: <bound method> = bound_method %int_1.loc7, %impl.elem0.loc7 [template = constants.%Convert.bound]
|
||||
@@ -584,7 +584,7 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: %.loc7_16.2: %i32 = converted %int_1.loc7, %.loc7_16.1 [template = constants.%int_1.5d2]
|
||||
// CHECK:STDOUT: %B.call: init %i32 = call %B.ref(%.loc7_16.2)
|
||||
// CHECK:STDOUT: assign file.%b.var, %B.call
|
||||
// CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.94c0 [template = constants.%C]
|
||||
// CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%Main.C [template = constants.%C]
|
||||
// CHECK:STDOUT: %int_1.loc8: Core.IntLiteral = int_value 1 [template = constants.%int_1.5b8]
|
||||
// CHECK:STDOUT: %.loc8_25.1: %tuple.type.985 = tuple_literal (%int_1.loc8)
|
||||
// CHECK:STDOUT: %impl.elem0.loc8: %Convert.type.1b6 = impl_witness_access constants.%impl_witness.d39, element0 [template = constants.%Convert.956]
|
||||
@@ -597,11 +597,11 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: %.loc8_25.4: %tuple.type.a1c = converted %.loc8_25.1, %tuple [template = constants.%tuple]
|
||||
// CHECK:STDOUT: %C.call: init %struct_type.c = call %C.ref(%.loc8_25.4)
|
||||
// CHECK:STDOUT: assign file.%c.var, %C.call
|
||||
// CHECK:STDOUT: %D.ref: %D.type = name_ref D, imports.%import_ref.5f5 [template = constants.%D]
|
||||
// CHECK:STDOUT: %D.ref: %D.type = name_ref D, imports.%Main.D [template = constants.%D]
|
||||
// CHECK:STDOUT: %D.call: init %empty_tuple.type = call %D.ref()
|
||||
// CHECK:STDOUT: assign file.%d.var, %D.call
|
||||
// CHECK:STDOUT: %NS.ref: <namespace> = name_ref NS, imports.%NS [template = imports.%NS]
|
||||
// CHECK:STDOUT: %E.ref: %E.type = name_ref E, imports.%import_ref.86f [template = constants.%E]
|
||||
// CHECK:STDOUT: %E.ref: %E.type = name_ref E, imports.%Main.E [template = constants.%E]
|
||||
// CHECK:STDOUT: %E.call: init %empty_tuple.type = call %E.ref()
|
||||
// CHECK:STDOUT: assign file.%e.var, %E.call
|
||||
// CHECK:STDOUT: return
|
||||
@@ -628,7 +628,7 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: %E: %E.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %int_1.5b8: Core.IntLiteral = int_value 1 [template]
|
||||
// CHECK:STDOUT: %Convert.type.1b6: type = fn_type @Convert.1, @ImplicitAs(%i32) [template]
|
||||
// CHECK:STDOUT: %impl_witness.d39: <witness> = impl_witness (imports.%import_ref.a5b), @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %impl_witness.d39: <witness> = impl_witness (imports.%Core.import_ref.a5b), @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %Convert.type.035: type = fn_type @Convert.2, @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %Convert.956: %Convert.type.035 = struct_value () [template]
|
||||
// CHECK:STDOUT: %Convert.bound: <bound method> = bound_method %int_1.5b8, %Convert.956 [template]
|
||||
@@ -639,13 +639,13 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
// CHECK:STDOUT: %import_ref.d58: <namespace> = import_ref Main//api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %import_ref.d58, [template] {
|
||||
// CHECK:STDOUT: %Main.NS: <namespace> = import_ref Main//api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %Main.NS, [template] {
|
||||
// CHECK:STDOUT: .E = file.%E.decl
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
|
||||
// CHECK:STDOUT: .Int = %import_ref.485
|
||||
// CHECK:STDOUT: .ImplicitAs = %import_ref.d44
|
||||
// CHECK:STDOUT: .Int = %Core.Int
|
||||
// CHECK:STDOUT: .ImplicitAs = %Core.ImplicitAs
|
||||
// CHECK:STDOUT: import Core//prelude
|
||||
// CHECK:STDOUT: import Core//prelude/...
|
||||
// CHECK:STDOUT: }
|
||||
@@ -819,7 +819,7 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: %E: %E.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %int_1.5b8: Core.IntLiteral = int_value 1 [template]
|
||||
// CHECK:STDOUT: %Convert.type.1b6: type = fn_type @Convert.1, @ImplicitAs(%i32) [template]
|
||||
// CHECK:STDOUT: %impl_witness.d39: <witness> = impl_witness (imports.%import_ref.a5b), @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %impl_witness.d39: <witness> = impl_witness (imports.%Core.import_ref.a5b), @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %Convert.type.035: type = fn_type @Convert.2, @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %Convert.956: %Convert.type.035 = struct_value () [template]
|
||||
// CHECK:STDOUT: %Convert.bound: <bound method> = bound_method %int_1.5b8, %Convert.956 [template]
|
||||
@@ -830,13 +830,13 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
// CHECK:STDOUT: %import_ref.d58: <namespace> = import_ref Main//extern_api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %import_ref.d58, [template] {
|
||||
// CHECK:STDOUT: %Main.NS: <namespace> = import_ref Main//extern_api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %Main.NS, [template] {
|
||||
// CHECK:STDOUT: .E = file.%E.decl
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
|
||||
// CHECK:STDOUT: .Int = %import_ref.485
|
||||
// CHECK:STDOUT: .ImplicitAs = %import_ref.d44
|
||||
// CHECK:STDOUT: .Int = %Core.Int
|
||||
// CHECK:STDOUT: .ImplicitAs = %Core.ImplicitAs
|
||||
// CHECK:STDOUT: import Core//prelude
|
||||
// CHECK:STDOUT: import Core//prelude/...
|
||||
// CHECK:STDOUT: }
|
||||
@@ -1001,7 +1001,7 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: %B: %B.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %int_1.5b8: Core.IntLiteral = int_value 1 [template]
|
||||
// CHECK:STDOUT: %Convert.type.1b6: type = fn_type @Convert.1, @ImplicitAs(%i32) [template]
|
||||
// CHECK:STDOUT: %impl_witness.d39: <witness> = impl_witness (imports.%import_ref.a5b), @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %impl_witness.d39: <witness> = impl_witness (imports.%Core.import_ref.a5b), @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %Convert.type.035: type = fn_type @Convert.2, @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %Convert.956: %Convert.type.035 = struct_value () [template]
|
||||
// CHECK:STDOUT: %Convert.bound: <bound method> = bound_method %int_1.5b8, %Convert.956 [template]
|
||||
@@ -1020,18 +1020,18 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
// CHECK:STDOUT: %import_ref.a6e: %A.type = import_ref Main//api, A, loaded [template = constants.%A]
|
||||
// CHECK:STDOUT: %import_ref.54c: %B.type = import_ref Main//api, B, loaded [template = constants.%B]
|
||||
// CHECK:STDOUT: %import_ref.94c0: %C.type = import_ref Main//api, C, loaded [template = constants.%C]
|
||||
// CHECK:STDOUT: %import_ref.5f5: %D.type = import_ref Main//api, D, loaded [template = constants.%D]
|
||||
// CHECK:STDOUT: %import_ref.d58: <namespace> = import_ref Main//api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %import_ref.d58, [template] {
|
||||
// CHECK:STDOUT: .E = %import_ref.86f
|
||||
// CHECK:STDOUT: %Main.A: %A.type = import_ref Main//api, A, loaded [template = constants.%A]
|
||||
// CHECK:STDOUT: %Main.B: %B.type = import_ref Main//api, B, loaded [template = constants.%B]
|
||||
// CHECK:STDOUT: %Main.C: %C.type = import_ref Main//api, C, loaded [template = constants.%C]
|
||||
// CHECK:STDOUT: %Main.D: %D.type = import_ref Main//api, D, loaded [template = constants.%D]
|
||||
// CHECK:STDOUT: %Main.NS: <namespace> = import_ref Main//api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %Main.NS, [template] {
|
||||
// CHECK:STDOUT: .E = %Main.E
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %import_ref.86f: %E.type = import_ref Main//api, E, loaded [template = constants.%E]
|
||||
// CHECK:STDOUT: %Main.E: %E.type = import_ref Main//api, E, loaded [template = constants.%E]
|
||||
// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
|
||||
// CHECK:STDOUT: .Int = %import_ref.485
|
||||
// CHECK:STDOUT: .ImplicitAs = %import_ref.d44
|
||||
// CHECK:STDOUT: .Int = %Core.Int
|
||||
// CHECK:STDOUT: .ImplicitAs = %Core.ImplicitAs
|
||||
// CHECK:STDOUT: import Core//prelude
|
||||
// CHECK:STDOUT: import Core//prelude/...
|
||||
// CHECK:STDOUT: }
|
||||
@@ -1039,10 +1039,10 @@ import library "extern_api";
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: file {
|
||||
// CHECK:STDOUT: package: <namespace> = namespace [template] {
|
||||
// CHECK:STDOUT: .A = imports.%import_ref.a6e
|
||||
// CHECK:STDOUT: .B = imports.%import_ref.54c
|
||||
// CHECK:STDOUT: .C = imports.%import_ref.94c0
|
||||
// CHECK:STDOUT: .D = imports.%import_ref.5f5
|
||||
// CHECK:STDOUT: .A = imports.%Main.A
|
||||
// CHECK:STDOUT: .B = imports.%Main.B
|
||||
// CHECK:STDOUT: .C = imports.%Main.C
|
||||
// CHECK:STDOUT: .D = imports.%Main.D
|
||||
// CHECK:STDOUT: .NS = imports.%NS
|
||||
// CHECK:STDOUT: .Core = imports.%Core
|
||||
// CHECK:STDOUT: .a = %a
|
||||
@@ -1118,10 +1118,10 @@ import library "extern_api";
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %A.ref: %A.type = name_ref A, imports.%import_ref.a6e [template = constants.%A]
|
||||
// CHECK:STDOUT: %A.ref: %A.type = name_ref A, imports.%Main.A [template = constants.%A]
|
||||
// CHECK:STDOUT: %A.call: init %empty_tuple.type = call %A.ref()
|
||||
// CHECK:STDOUT: assign file.%a.var, %A.call
|
||||
// CHECK:STDOUT: %B.ref: %B.type = name_ref B, imports.%import_ref.54c [template = constants.%B]
|
||||
// CHECK:STDOUT: %B.ref: %B.type = name_ref B, imports.%Main.B [template = constants.%B]
|
||||
// CHECK:STDOUT: %int_1.loc53: Core.IntLiteral = int_value 1 [template = constants.%int_1.5b8]
|
||||
// CHECK:STDOUT: %impl.elem0.loc53: %Convert.type.1b6 = impl_witness_access constants.%impl_witness.d39, element0 [template = constants.%Convert.956]
|
||||
// CHECK:STDOUT: %Convert.bound.loc53: <bound method> = bound_method %int_1.loc53, %impl.elem0.loc53 [template = constants.%Convert.bound]
|
||||
@@ -1131,7 +1131,7 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: %.loc53_16.2: %i32 = converted %int_1.loc53, %.loc53_16.1 [template = constants.%int_1.5d2]
|
||||
// CHECK:STDOUT: %B.call: init %i32 = call %B.ref(%.loc53_16.2)
|
||||
// CHECK:STDOUT: assign file.%b.var, %B.call
|
||||
// CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.94c0 [template = constants.%C]
|
||||
// CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%Main.C [template = constants.%C]
|
||||
// CHECK:STDOUT: %int_1.loc54: Core.IntLiteral = int_value 1 [template = constants.%int_1.5b8]
|
||||
// CHECK:STDOUT: %.loc54_25.1: %tuple.type.985 = tuple_literal (%int_1.loc54)
|
||||
// CHECK:STDOUT: %impl.elem0.loc54: %Convert.type.1b6 = impl_witness_access constants.%impl_witness.d39, element0 [template = constants.%Convert.956]
|
||||
@@ -1144,11 +1144,11 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: %.loc54_25.4: %tuple.type.a1c = converted %.loc54_25.1, %tuple [template = constants.%tuple]
|
||||
// CHECK:STDOUT: %C.call: init %struct_type.c = call %C.ref(%.loc54_25.4)
|
||||
// CHECK:STDOUT: assign file.%c.var, %C.call
|
||||
// CHECK:STDOUT: %D.ref: %D.type = name_ref D, imports.%import_ref.5f5 [template = constants.%D]
|
||||
// CHECK:STDOUT: %D.ref: %D.type = name_ref D, imports.%Main.D [template = constants.%D]
|
||||
// CHECK:STDOUT: %D.call: init %empty_tuple.type = call %D.ref()
|
||||
// CHECK:STDOUT: assign file.%d.var, %D.call
|
||||
// CHECK:STDOUT: %NS.ref: <namespace> = name_ref NS, imports.%NS [template = imports.%NS]
|
||||
// CHECK:STDOUT: %E.ref: %E.type = name_ref E, imports.%import_ref.86f [template = constants.%E]
|
||||
// CHECK:STDOUT: %E.ref: %E.type = name_ref E, imports.%Main.E [template = constants.%E]
|
||||
// CHECK:STDOUT: %E.call: init %empty_tuple.type = call %E.ref()
|
||||
// CHECK:STDOUT: assign file.%e.var, %E.call
|
||||
// CHECK:STDOUT: return
|
||||
@@ -1166,7 +1166,7 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: %B: %B.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %int_1.5b8: Core.IntLiteral = int_value 1 [template]
|
||||
// CHECK:STDOUT: %Convert.type.1b6: type = fn_type @Convert.1, @ImplicitAs(%i32) [template]
|
||||
// CHECK:STDOUT: %impl_witness.d39: <witness> = impl_witness (imports.%import_ref.a5b), @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %impl_witness.d39: <witness> = impl_witness (imports.%Core.import_ref.a5b), @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %Convert.type.035: type = fn_type @Convert.2, @impl.1(%int_32) [template]
|
||||
// CHECK:STDOUT: %Convert.956: %Convert.type.035 = struct_value () [template]
|
||||
// CHECK:STDOUT: %Convert.bound: <bound method> = bound_method %int_1.5b8, %Convert.956 [template]
|
||||
@@ -1185,18 +1185,18 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
// CHECK:STDOUT: %import_ref.a6e: %A.type = import_ref Main//extern_api, A, loaded [template = constants.%A]
|
||||
// CHECK:STDOUT: %import_ref.54c: %B.type = import_ref Main//extern_api, B, loaded [template = constants.%B]
|
||||
// CHECK:STDOUT: %import_ref.94c0: %C.type = import_ref Main//extern_api, C, loaded [template = constants.%C]
|
||||
// CHECK:STDOUT: %import_ref.5f5: %D.type = import_ref Main//extern_api, D, loaded [template = constants.%D]
|
||||
// CHECK:STDOUT: %import_ref.d58: <namespace> = import_ref Main//extern_api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %import_ref.d58, [template] {
|
||||
// CHECK:STDOUT: .E = %import_ref.86f
|
||||
// CHECK:STDOUT: %Main.A: %A.type = import_ref Main//extern_api, A, loaded [template = constants.%A]
|
||||
// CHECK:STDOUT: %Main.B: %B.type = import_ref Main//extern_api, B, loaded [template = constants.%B]
|
||||
// CHECK:STDOUT: %Main.C: %C.type = import_ref Main//extern_api, C, loaded [template = constants.%C]
|
||||
// CHECK:STDOUT: %Main.D: %D.type = import_ref Main//extern_api, D, loaded [template = constants.%D]
|
||||
// CHECK:STDOUT: %Main.NS: <namespace> = import_ref Main//extern_api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %Main.NS, [template] {
|
||||
// CHECK:STDOUT: .E = %Main.E
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %import_ref.86f: %E.type = import_ref Main//extern_api, E, loaded [template = constants.%E]
|
||||
// CHECK:STDOUT: %Main.E: %E.type = import_ref Main//extern_api, E, loaded [template = constants.%E]
|
||||
// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
|
||||
// CHECK:STDOUT: .Int = %import_ref.485
|
||||
// CHECK:STDOUT: .ImplicitAs = %import_ref.d44
|
||||
// CHECK:STDOUT: .Int = %Core.Int
|
||||
// CHECK:STDOUT: .ImplicitAs = %Core.ImplicitAs
|
||||
// CHECK:STDOUT: import Core//prelude
|
||||
// CHECK:STDOUT: import Core//prelude/...
|
||||
// CHECK:STDOUT: }
|
||||
@@ -1204,10 +1204,10 @@ import library "extern_api";
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: file {
|
||||
// CHECK:STDOUT: package: <namespace> = namespace [template] {
|
||||
// CHECK:STDOUT: .A = imports.%import_ref.a6e
|
||||
// CHECK:STDOUT: .B = imports.%import_ref.54c
|
||||
// CHECK:STDOUT: .C = imports.%import_ref.94c0
|
||||
// CHECK:STDOUT: .D = imports.%import_ref.5f5
|
||||
// CHECK:STDOUT: .A = imports.%Main.A
|
||||
// CHECK:STDOUT: .B = imports.%Main.B
|
||||
// CHECK:STDOUT: .C = imports.%Main.C
|
||||
// CHECK:STDOUT: .D = imports.%Main.D
|
||||
// CHECK:STDOUT: .NS = imports.%NS
|
||||
// CHECK:STDOUT: .Core = imports.%Core
|
||||
// CHECK:STDOUT: .a = %a
|
||||
@@ -1283,10 +1283,10 @@ import library "extern_api";
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %A.ref: %A.type = name_ref A, imports.%import_ref.a6e [template = constants.%A]
|
||||
// CHECK:STDOUT: %A.ref: %A.type = name_ref A, imports.%Main.A [template = constants.%A]
|
||||
// CHECK:STDOUT: %A.call: init %empty_tuple.type = call %A.ref()
|
||||
// CHECK:STDOUT: assign file.%a.var, %A.call
|
||||
// CHECK:STDOUT: %B.ref: %B.type = name_ref B, imports.%import_ref.54c [template = constants.%B]
|
||||
// CHECK:STDOUT: %B.ref: %B.type = name_ref B, imports.%Main.B [template = constants.%B]
|
||||
// CHECK:STDOUT: %int_1.loc53: Core.IntLiteral = int_value 1 [template = constants.%int_1.5b8]
|
||||
// CHECK:STDOUT: %impl.elem0.loc53: %Convert.type.1b6 = impl_witness_access constants.%impl_witness.d39, element0 [template = constants.%Convert.956]
|
||||
// CHECK:STDOUT: %Convert.bound.loc53: <bound method> = bound_method %int_1.loc53, %impl.elem0.loc53 [template = constants.%Convert.bound]
|
||||
@@ -1296,7 +1296,7 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: %.loc53_16.2: %i32 = converted %int_1.loc53, %.loc53_16.1 [template = constants.%int_1.5d2]
|
||||
// CHECK:STDOUT: %B.call: init %i32 = call %B.ref(%.loc53_16.2)
|
||||
// CHECK:STDOUT: assign file.%b.var, %B.call
|
||||
// CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%import_ref.94c0 [template = constants.%C]
|
||||
// CHECK:STDOUT: %C.ref: %C.type = name_ref C, imports.%Main.C [template = constants.%C]
|
||||
// CHECK:STDOUT: %int_1.loc54: Core.IntLiteral = int_value 1 [template = constants.%int_1.5b8]
|
||||
// CHECK:STDOUT: %.loc54_25.1: %tuple.type.985 = tuple_literal (%int_1.loc54)
|
||||
// CHECK:STDOUT: %impl.elem0.loc54: %Convert.type.1b6 = impl_witness_access constants.%impl_witness.d39, element0 [template = constants.%Convert.956]
|
||||
@@ -1309,11 +1309,11 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: %.loc54_25.4: %tuple.type.a1c = converted %.loc54_25.1, %tuple [template = constants.%tuple]
|
||||
// CHECK:STDOUT: %C.call: init %struct_type.c = call %C.ref(%.loc54_25.4)
|
||||
// CHECK:STDOUT: assign file.%c.var, %C.call
|
||||
// CHECK:STDOUT: %D.ref: %D.type = name_ref D, imports.%import_ref.5f5 [template = constants.%D]
|
||||
// CHECK:STDOUT: %D.ref: %D.type = name_ref D, imports.%Main.D [template = constants.%D]
|
||||
// CHECK:STDOUT: %D.call: init %empty_tuple.type = call %D.ref()
|
||||
// CHECK:STDOUT: assign file.%d.var, %D.call
|
||||
// CHECK:STDOUT: %NS.ref: <namespace> = name_ref NS, imports.%NS [template = imports.%NS]
|
||||
// CHECK:STDOUT: %E.ref: %E.type = name_ref E, imports.%import_ref.86f [template = constants.%E]
|
||||
// CHECK:STDOUT: %E.ref: %E.type = name_ref E, imports.%Main.E [template = constants.%E]
|
||||
// CHECK:STDOUT: %E.call: init %empty_tuple.type = call %E.ref()
|
||||
// CHECK:STDOUT: assign file.%e.var, %E.call
|
||||
// CHECK:STDOUT: return
|
||||
@@ -1322,13 +1322,13 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: --- unloaded.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
// CHECK:STDOUT: %import_ref.0c3 = import_ref Main//api, A, unloaded
|
||||
// CHECK:STDOUT: %import_ref.8cc = import_ref Main//api, B, unloaded
|
||||
// CHECK:STDOUT: %import_ref.b05 = import_ref Main//api, C, unloaded
|
||||
// CHECK:STDOUT: %import_ref.caf = import_ref Main//api, D, unloaded
|
||||
// CHECK:STDOUT: %import_ref.d58: <namespace> = import_ref Main//api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %import_ref.d58, [template] {
|
||||
// CHECK:STDOUT: .E = %import_ref.4ad
|
||||
// CHECK:STDOUT: %Main.A = import_ref Main//api, A, unloaded
|
||||
// CHECK:STDOUT: %Main.B = import_ref Main//api, B, unloaded
|
||||
// CHECK:STDOUT: %Main.C = import_ref Main//api, C, unloaded
|
||||
// CHECK:STDOUT: %Main.D = import_ref Main//api, D, unloaded
|
||||
// CHECK:STDOUT: %Main.NS: <namespace> = import_ref Main//api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %Main.NS, [template] {
|
||||
// CHECK:STDOUT: .E = %Main.E
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
|
||||
// CHECK:STDOUT: import Core//prelude
|
||||
@@ -1338,10 +1338,10 @@ import library "extern_api";
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: file {
|
||||
// CHECK:STDOUT: package: <namespace> = namespace [template] {
|
||||
// CHECK:STDOUT: .A = imports.%import_ref.0c3
|
||||
// CHECK:STDOUT: .B = imports.%import_ref.8cc
|
||||
// CHECK:STDOUT: .C = imports.%import_ref.b05
|
||||
// CHECK:STDOUT: .D = imports.%import_ref.caf
|
||||
// CHECK:STDOUT: .A = imports.%Main.A
|
||||
// CHECK:STDOUT: .B = imports.%Main.B
|
||||
// CHECK:STDOUT: .C = imports.%Main.C
|
||||
// CHECK:STDOUT: .D = imports.%Main.D
|
||||
// CHECK:STDOUT: .NS = imports.%NS
|
||||
// CHECK:STDOUT: .Core = imports.%Core
|
||||
// CHECK:STDOUT: }
|
||||
@@ -1352,13 +1352,13 @@ import library "extern_api";
|
||||
// CHECK:STDOUT: --- unloaded_extern.carbon
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
// CHECK:STDOUT: %import_ref.0c3 = import_ref Main//extern_api, A, unloaded
|
||||
// CHECK:STDOUT: %import_ref.8cc = import_ref Main//extern_api, B, unloaded
|
||||
// CHECK:STDOUT: %import_ref.b05 = import_ref Main//extern_api, C, unloaded
|
||||
// CHECK:STDOUT: %import_ref.caf = import_ref Main//extern_api, D, unloaded
|
||||
// CHECK:STDOUT: %import_ref.d58: <namespace> = import_ref Main//extern_api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %import_ref.d58, [template] {
|
||||
// CHECK:STDOUT: .E = %import_ref.4ad
|
||||
// CHECK:STDOUT: %Main.A = import_ref Main//extern_api, A, unloaded
|
||||
// CHECK:STDOUT: %Main.B = import_ref Main//extern_api, B, unloaded
|
||||
// CHECK:STDOUT: %Main.C = import_ref Main//extern_api, C, unloaded
|
||||
// CHECK:STDOUT: %Main.D = import_ref Main//extern_api, D, unloaded
|
||||
// CHECK:STDOUT: %Main.NS: <namespace> = import_ref Main//extern_api, NS, loaded
|
||||
// CHECK:STDOUT: %NS: <namespace> = namespace %Main.NS, [template] {
|
||||
// CHECK:STDOUT: .E = %Main.E
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %Core: <namespace> = namespace file.%Core.import, [template] {
|
||||
// CHECK:STDOUT: import Core//prelude
|
||||
@@ -1368,10 +1368,10 @@ import library "extern_api";
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: file {
|
||||
// CHECK:STDOUT: package: <namespace> = namespace [template] {
|
||||
// CHECK:STDOUT: .A = imports.%import_ref.0c3
|
||||
// CHECK:STDOUT: .B = imports.%import_ref.8cc
|
||||
// CHECK:STDOUT: .C = imports.%import_ref.b05
|
||||
// CHECK:STDOUT: .D = imports.%import_ref.caf
|
||||
// CHECK:STDOUT: .A = imports.%Main.A
|
||||
// CHECK:STDOUT: .B = imports.%Main.B
|
||||
// CHECK:STDOUT: .C = imports.%Main.C
|
||||
// CHECK:STDOUT: .D = imports.%Main.D
|
||||
// CHECK:STDOUT: .NS = imports.%NS
|
||||
// CHECK:STDOUT: .Core = imports.%Core
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
Reference in New Issue
Block a user