|
|
@@ -244,10 +244,9 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: --- action.impl.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
-// CHECK:STDOUT: %A: type = class_type @A [template]
|
|
|
+// CHECK:STDOUT: %B: type = class_type @B [template]
|
|
|
// CHECK:STDOUT: %.1: type = struct_type {} [template]
|
|
|
// CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
|
|
|
-// CHECK:STDOUT: %B: type = class_type @B [template]
|
|
|
// CHECK:STDOUT: %Action.type: type = generic_interface_type @Action [template]
|
|
|
// CHECK:STDOUT: %.3: type = tuple_type () [template]
|
|
|
// CHECK:STDOUT: %Action: %Action.type = struct_value () [template]
|
|
|
@@ -255,19 +254,20 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %.4: type = interface_type @Action, @Action(%T) [symbolic]
|
|
|
// CHECK:STDOUT: %Self.1: @Action.%.1 (%.4) = bind_symbolic_name Self 1 [symbolic]
|
|
|
// CHECK:STDOUT: %.5: type = interface_type @Action, @Action(%B) [template]
|
|
|
+// CHECK:STDOUT: %A: type = class_type @A [template]
|
|
|
// CHECK:STDOUT: %Self.2: %.4 = bind_symbolic_name Self 1 [symbolic]
|
|
|
// CHECK:STDOUT: %Op.type.1: type = fn_type @Op.1, @Action(%T) [symbolic]
|
|
|
// CHECK:STDOUT: %Op.1: %Op.type.1 = struct_value () [symbolic]
|
|
|
// CHECK:STDOUT: %.6: type = assoc_entity_type %.4, %Op.type.1 [symbolic]
|
|
|
-// CHECK:STDOUT: %.7: %.6 = assoc_entity element0, imports.%import_ref.11 [symbolic]
|
|
|
+// CHECK:STDOUT: %.7: %.6 = assoc_entity element0, imports.%import_ref.13 [symbolic]
|
|
|
// CHECK:STDOUT: %Op.type.2: type = fn_type @Op.1, @Action(%B) [template]
|
|
|
// CHECK:STDOUT: %Op.2: %Op.type.2 = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.8: type = assoc_entity_type %.5, %Op.type.2 [template]
|
|
|
-// CHECK:STDOUT: %.9: %.8 = assoc_entity element0, imports.%import_ref.12 [template]
|
|
|
+// CHECK:STDOUT: %.9: %.8 = assoc_entity element0, imports.%import_ref.14 [template]
|
|
|
// CHECK:STDOUT: %G.type: type = fn_type @G [template]
|
|
|
// CHECK:STDOUT: %G: %G.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.10: type = ptr_type %.1 [template]
|
|
|
-// CHECK:STDOUT: %.11: %.6 = assoc_entity element0, imports.%import_ref.14 [symbolic]
|
|
|
+// CHECK:STDOUT: %.11: %.6 = assoc_entity element0, imports.%import_ref.15 [symbolic]
|
|
|
// CHECK:STDOUT: %Op.type.3: type = fn_type @Op.2 [template]
|
|
|
// CHECK:STDOUT: %Op.3: %Op.type.3 = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.12: <witness> = interface_witness (%Op.3) [template]
|
|
|
@@ -279,15 +279,16 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %import_ref.3: type = import_ref Main//action, inst+30, loaded [template = constants.%B]
|
|
|
// CHECK:STDOUT: %import_ref.4 = import_ref Main//action, inst+33, unloaded
|
|
|
// CHECK:STDOUT: %import_ref.5 = import_ref Main//action, inst+56, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.6 = import_ref Main//action, inst+26, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.7 = import_ref Main//action, inst+31, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.8 = import_ref Main//action, inst+11, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.9: @Action.%.2 (%.6) = import_ref Main//action, inst+17, loaded [symbolic = @Action.%.3 (constants.%.11)]
|
|
|
-// CHECK:STDOUT: %import_ref.10 = import_ref Main//action, inst+13, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.11 = import_ref Main//action, inst+13, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.12 = import_ref Main//action, inst+13, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.13: <witness> = import_ref Main//action, inst+49, loaded [template = constants.%.12]
|
|
|
+// CHECK:STDOUT: %import_ref.6 = import_ref Main//action, inst+31, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.7 = import_ref Main//action, inst+11, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.8: @Action.%.2 (%.6) = import_ref Main//action, inst+17, loaded [symbolic = @Action.%.3 (constants.%.11)]
|
|
|
+// CHECK:STDOUT: %import_ref.9 = import_ref Main//action, inst+13, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.10 = import_ref Main//action, inst+26, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.11: <witness> = import_ref Main//action, inst+49, loaded [template = constants.%.12]
|
|
|
+// CHECK:STDOUT: %import_ref.12 = import_ref Main//action, inst+42, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.13 = import_ref Main//action, inst+13, unloaded
|
|
|
// CHECK:STDOUT: %import_ref.14 = import_ref Main//action, inst+13, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.15 = import_ref Main//action, inst+13, unloaded
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
|
@@ -319,29 +320,30 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %Op.type: type = fn_type @Op.1, @Action(%T) [symbolic = %Op.type (constants.%Op.type.1)]
|
|
|
// CHECK:STDOUT: %Op: @Action.%Op.type (%Op.type.1) = struct_value () [symbolic = %Op (constants.%Op.1)]
|
|
|
// CHECK:STDOUT: %.2: type = assoc_entity_type @Action.%.1 (%.4), @Action.%Op.type (%Op.type.1) [symbolic = %.2 (constants.%.6)]
|
|
|
-// CHECK:STDOUT: %.3: @Action.%.2 (%.6) = assoc_entity element0, imports.%import_ref.11 [symbolic = %.3 (constants.%.7)]
|
|
|
+// CHECK:STDOUT: %.3: @Action.%.2 (%.6) = assoc_entity element0, imports.%import_ref.13 [symbolic = %.3 (constants.%.7)]
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: interface {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = imports.%import_ref.8
|
|
|
-// CHECK:STDOUT: .Op = imports.%import_ref.9
|
|
|
-// CHECK:STDOUT: witness = (imports.%import_ref.10)
|
|
|
+// CHECK:STDOUT: .Self = imports.%import_ref.7
|
|
|
+// CHECK:STDOUT: .Op = imports.%import_ref.8
|
|
|
+// CHECK:STDOUT: witness = (imports.%import_ref.9)
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: impl @impl: %A as %.5 {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: witness = imports.%import_ref.13
|
|
|
+// CHECK:STDOUT: .Op = imports.%import_ref.12
|
|
|
+// CHECK:STDOUT: witness = imports.%import_ref.11
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: class @A {
|
|
|
+// CHECK:STDOUT: class @B {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
// CHECK:STDOUT: .Self = imports.%import_ref.6
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: class @B {
|
|
|
+// CHECK:STDOUT: class @A {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = imports.%import_ref.7
|
|
|
+// CHECK:STDOUT: .Self = imports.%import_ref.10
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: generic fn @Op.1(constants.%T: type, constants.%Self.1: @Action.%.1 (%.4)) {
|
|
|
@@ -355,9 +357,9 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %Action.ref: %Action.type = name_ref Action, imports.%import_ref.1 [template = constants.%Action]
|
|
|
// CHECK:STDOUT: %B.ref: type = name_ref B, imports.%import_ref.3 [template = constants.%B]
|
|
|
// CHECK:STDOUT: %.loc4_23: type = interface_type @Action, @Action(constants.%B) [template = constants.%.5]
|
|
|
-// CHECK:STDOUT: %.loc4_26: %.8 = specific_constant imports.%import_ref.9, @Action(constants.%B) [template = constants.%.9]
|
|
|
+// CHECK:STDOUT: %.loc4_26: %.8 = specific_constant imports.%import_ref.8, @Action(constants.%B) [template = constants.%.9]
|
|
|
// CHECK:STDOUT: %Op.ref: %.8 = name_ref Op, %.loc4_26 [template = constants.%.9]
|
|
|
-// CHECK:STDOUT: %.loc4_15: %Op.type.2 = interface_witness_access imports.%import_ref.13, element0 [template = constants.%Op.3]
|
|
|
+// CHECK:STDOUT: %.loc4_15: %Op.type.2 = interface_witness_access imports.%import_ref.11, element0 [template = constants.%Op.3]
|
|
|
// CHECK:STDOUT: %Op.call: init %.3 = call %.loc4_15()
|
|
|
// CHECK:STDOUT: return
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -389,10 +391,9 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: --- fail_action.impl.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
-// CHECK:STDOUT: %A: type = class_type @A [template]
|
|
|
+// CHECK:STDOUT: %B: type = class_type @B [template]
|
|
|
// CHECK:STDOUT: %.1: type = struct_type {} [template]
|
|
|
// CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
|
|
|
-// CHECK:STDOUT: %B: type = class_type @B [template]
|
|
|
// CHECK:STDOUT: %Action.type: type = generic_interface_type @Action [template]
|
|
|
// CHECK:STDOUT: %.3: type = tuple_type () [template]
|
|
|
// CHECK:STDOUT: %Action: %Action.type = struct_value () [template]
|
|
|
@@ -400,15 +401,16 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %.4: type = interface_type @Action, @Action(%T) [symbolic]
|
|
|
// CHECK:STDOUT: %Self.1: @Action.%.1 (%.4) = bind_symbolic_name Self 1 [symbolic]
|
|
|
// CHECK:STDOUT: %.5: type = interface_type @Action, @Action(%B) [template]
|
|
|
+// CHECK:STDOUT: %A: type = class_type @A [template]
|
|
|
// CHECK:STDOUT: %Self.2: %.4 = bind_symbolic_name Self 1 [symbolic]
|
|
|
// CHECK:STDOUT: %Op.type.1: type = fn_type @Op, @Action(%T) [symbolic]
|
|
|
// CHECK:STDOUT: %Op.1: %Op.type.1 = struct_value () [symbolic]
|
|
|
// CHECK:STDOUT: %.6: type = assoc_entity_type %.4, %Op.type.1 [symbolic]
|
|
|
-// CHECK:STDOUT: %.7: %.6 = assoc_entity element0, imports.%import_ref.11 [symbolic]
|
|
|
+// CHECK:STDOUT: %.7: %.6 = assoc_entity element0, imports.%import_ref.13 [symbolic]
|
|
|
// CHECK:STDOUT: %Op.type.2: type = fn_type @Op, @Action(%B) [template]
|
|
|
// CHECK:STDOUT: %Op.2: %Op.type.2 = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.8: type = assoc_entity_type %.5, %Op.type.2 [template]
|
|
|
-// CHECK:STDOUT: %.9: %.8 = assoc_entity element0, imports.%import_ref.12 [template]
|
|
|
+// CHECK:STDOUT: %.9: %.8 = assoc_entity element0, imports.%import_ref.14 [template]
|
|
|
// CHECK:STDOUT: %G.type: type = fn_type @G [template]
|
|
|
// CHECK:STDOUT: %G: %G.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.10: type = ptr_type %.1 [template]
|
|
|
@@ -417,8 +419,8 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %Op.type.3: type = fn_type @Op, @Action(%C) [template]
|
|
|
// CHECK:STDOUT: %Op.3: %Op.type.3 = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.12: type = assoc_entity_type %.11, %Op.type.3 [template]
|
|
|
-// CHECK:STDOUT: %.13: %.12 = assoc_entity element0, imports.%import_ref.11 [template]
|
|
|
-// CHECK:STDOUT: %.14: %.6 = assoc_entity element0, imports.%import_ref.15 [symbolic]
|
|
|
+// CHECK:STDOUT: %.13: %.12 = assoc_entity element0, imports.%import_ref.13 [template]
|
|
|
+// CHECK:STDOUT: %.14: %.6 = assoc_entity element0, imports.%import_ref.16 [symbolic]
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: imports {
|
|
|
@@ -427,16 +429,17 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %import_ref.3 = import_ref Main//action, inst+30, unloaded
|
|
|
// CHECK:STDOUT: %import_ref.4: type = import_ref Main//action, inst+33, loaded [template = constants.%C]
|
|
|
// CHECK:STDOUT: %import_ref.5 = import_ref Main//action, inst+56, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.6 = import_ref Main//action, inst+26, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.7 = import_ref Main//action, inst+31, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.8 = import_ref Main//action, inst+11, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.9: @Action.%.2 (%.6) = import_ref Main//action, inst+17, loaded [symbolic = @Action.%.3 (constants.%.14)]
|
|
|
-// CHECK:STDOUT: %import_ref.10 = import_ref Main//action, inst+13, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.11 = import_ref Main//action, inst+13, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.12 = import_ref Main//action, inst+13, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.13 = import_ref Main//action, inst+49, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.14 = import_ref Main//action, inst+34, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.15 = import_ref Main//action, inst+13, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.6 = import_ref Main//action, inst+31, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.7 = import_ref Main//action, inst+11, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.8: @Action.%.2 (%.6) = import_ref Main//action, inst+17, loaded [symbolic = @Action.%.3 (constants.%.14)]
|
|
|
+// CHECK:STDOUT: %import_ref.9 = import_ref Main//action, inst+13, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.10 = import_ref Main//action, inst+26, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.11 = import_ref Main//action, inst+49, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.12 = import_ref Main//action, inst+42, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.13 = import_ref Main//action, inst+13, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.14 = import_ref Main//action, inst+13, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.15 = import_ref Main//action, inst+34, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.16 = import_ref Main//action, inst+13, unloaded
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
|
@@ -468,34 +471,35 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %Op.type: type = fn_type @Op, @Action(%T) [symbolic = %Op.type (constants.%Op.type.1)]
|
|
|
// CHECK:STDOUT: %Op: @Action.%Op.type (%Op.type.1) = struct_value () [symbolic = %Op (constants.%Op.1)]
|
|
|
// CHECK:STDOUT: %.2: type = assoc_entity_type @Action.%.1 (%.4), @Action.%Op.type (%Op.type.1) [symbolic = %.2 (constants.%.6)]
|
|
|
-// CHECK:STDOUT: %.3: @Action.%.2 (%.6) = assoc_entity element0, imports.%import_ref.11 [symbolic = %.3 (constants.%.7)]
|
|
|
+// CHECK:STDOUT: %.3: @Action.%.2 (%.6) = assoc_entity element0, imports.%import_ref.13 [symbolic = %.3 (constants.%.7)]
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: interface {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = imports.%import_ref.8
|
|
|
-// CHECK:STDOUT: .Op = imports.%import_ref.9
|
|
|
-// CHECK:STDOUT: witness = (imports.%import_ref.10)
|
|
|
+// CHECK:STDOUT: .Self = imports.%import_ref.7
|
|
|
+// CHECK:STDOUT: .Op = imports.%import_ref.8
|
|
|
+// CHECK:STDOUT: witness = (imports.%import_ref.9)
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: impl @impl: %A as %.5 {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: witness = imports.%import_ref.13
|
|
|
+// CHECK:STDOUT: .Op = imports.%import_ref.12
|
|
|
+// CHECK:STDOUT: witness = imports.%import_ref.11
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: class @A {
|
|
|
+// CHECK:STDOUT: class @B {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
// CHECK:STDOUT: .Self = imports.%import_ref.6
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: class @B {
|
|
|
+// CHECK:STDOUT: class @A {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = imports.%import_ref.7
|
|
|
+// CHECK:STDOUT: .Self = imports.%import_ref.10
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class @C {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = imports.%import_ref.14
|
|
|
+// CHECK:STDOUT: .Self = imports.%import_ref.15
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: generic fn @Op(constants.%T: type, constants.%Self.1: @Action.%.1 (%.4)) {
|
|
|
@@ -509,7 +513,7 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %Action.ref: %Action.type = name_ref Action, imports.%import_ref.1 [template = constants.%Action]
|
|
|
// CHECK:STDOUT: %C.ref: type = name_ref C, imports.%import_ref.4 [template = constants.%C]
|
|
|
// CHECK:STDOUT: %.loc8_23: type = interface_type @Action, @Action(constants.%C) [template = constants.%.11]
|
|
|
-// CHECK:STDOUT: %.loc8_26: %.12 = specific_constant imports.%import_ref.9, @Action(constants.%C) [template = constants.%.13]
|
|
|
+// CHECK:STDOUT: %.loc8_26: %.12 = specific_constant imports.%import_ref.8, @Action(constants.%C) [template = constants.%.13]
|
|
|
// CHECK:STDOUT: %Op.ref: %.12 = name_ref Op, %.loc8_26 [template = constants.%.13]
|
|
|
// CHECK:STDOUT: return
|
|
|
// CHECK:STDOUT: }
|
|
|
@@ -688,10 +692,9 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: --- factory.impl.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
-// CHECK:STDOUT: %A: type = class_type @A [template]
|
|
|
+// CHECK:STDOUT: %B: type = class_type @B [template]
|
|
|
// CHECK:STDOUT: %.1: type = struct_type {} [template]
|
|
|
// CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
|
|
|
-// CHECK:STDOUT: %B: type = class_type @B [template]
|
|
|
// CHECK:STDOUT: %Factory.type: type = generic_interface_type @Factory [template]
|
|
|
// CHECK:STDOUT: %.3: type = tuple_type () [template]
|
|
|
// CHECK:STDOUT: %Factory: %Factory.type = struct_value () [template]
|
|
|
@@ -699,19 +702,20 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %.4: type = interface_type @Factory, @Factory(%T) [symbolic]
|
|
|
// CHECK:STDOUT: %Self.1: @Factory.%.1 (%.4) = bind_symbolic_name Self 1 [symbolic]
|
|
|
// CHECK:STDOUT: %.5: type = interface_type @Factory, @Factory(%B) [template]
|
|
|
+// CHECK:STDOUT: %A: type = class_type @A [template]
|
|
|
// CHECK:STDOUT: %Self.2: %.4 = bind_symbolic_name Self 1 [symbolic]
|
|
|
// CHECK:STDOUT: %Make.type.1: type = fn_type @Make.1, @Factory(%T) [symbolic]
|
|
|
// CHECK:STDOUT: %Make.1: %Make.type.1 = struct_value () [symbolic]
|
|
|
// CHECK:STDOUT: %.6: type = assoc_entity_type %.4, %Make.type.1 [symbolic]
|
|
|
-// CHECK:STDOUT: %.7: %.6 = assoc_entity element0, imports.%import_ref.9 [symbolic]
|
|
|
+// CHECK:STDOUT: %.7: %.6 = assoc_entity element0, imports.%import_ref.11 [symbolic]
|
|
|
// CHECK:STDOUT: %Make.type.2: type = fn_type @Make.1, @Factory(%B) [template]
|
|
|
// CHECK:STDOUT: %Make.2: %Make.type.2 = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.8: type = assoc_entity_type %.5, %Make.type.2 [template]
|
|
|
-// CHECK:STDOUT: %.9: %.8 = assoc_entity element0, imports.%import_ref.10 [template]
|
|
|
+// CHECK:STDOUT: %.9: %.8 = assoc_entity element0, imports.%import_ref.12 [template]
|
|
|
// CHECK:STDOUT: %MakeB.type: type = fn_type @MakeB [template]
|
|
|
// CHECK:STDOUT: %MakeB: %MakeB.type = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.10: type = ptr_type %.1 [template]
|
|
|
-// CHECK:STDOUT: %.11: %.6 = assoc_entity element0, imports.%import_ref.12 [symbolic]
|
|
|
+// CHECK:STDOUT: %.11: %.6 = assoc_entity element0, imports.%import_ref.13 [symbolic]
|
|
|
// CHECK:STDOUT: %Make.type.3: type = fn_type @Make.2 [template]
|
|
|
// CHECK:STDOUT: %Make.3: %Make.type.3 = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.12: <witness> = interface_witness (%Make.3) [template]
|
|
|
@@ -721,15 +725,16 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %import_ref.1: %Factory.type = import_ref Main//factory, inst+5, loaded [template = constants.%Factory]
|
|
|
// CHECK:STDOUT: %import_ref.2: type = import_ref Main//factory, inst+28, loaded [template = constants.%A]
|
|
|
// CHECK:STDOUT: %import_ref.3: type = import_ref Main//factory, inst+33, loaded [template = constants.%B]
|
|
|
-// CHECK:STDOUT: %import_ref.4 = import_ref Main//factory, inst+29, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.5 = import_ref Main//factory, inst+34, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.6 = import_ref Main//factory, inst+11, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.7: @Factory.%.2 (%.6) = import_ref Main//factory, inst+20, loaded [symbolic = @Factory.%.3 (constants.%.11)]
|
|
|
-// CHECK:STDOUT: %import_ref.8 = import_ref Main//factory, inst+15, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.9 = import_ref Main//factory, inst+15, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.10 = import_ref Main//factory, inst+15, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.11: <witness> = import_ref Main//factory, inst+51, loaded [template = constants.%.12]
|
|
|
+// CHECK:STDOUT: %import_ref.4 = import_ref Main//factory, inst+34, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.5 = import_ref Main//factory, inst+11, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.6: @Factory.%.2 (%.6) = import_ref Main//factory, inst+20, loaded [symbolic = @Factory.%.3 (constants.%.11)]
|
|
|
+// CHECK:STDOUT: %import_ref.7 = import_ref Main//factory, inst+15, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.8 = import_ref Main//factory, inst+29, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.9: <witness> = import_ref Main//factory, inst+51, loaded [template = constants.%.12]
|
|
|
+// CHECK:STDOUT: %import_ref.10 = import_ref Main//factory, inst+44, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.11 = import_ref Main//factory, inst+15, unloaded
|
|
|
// CHECK:STDOUT: %import_ref.12 = import_ref Main//factory, inst+15, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.13 = import_ref Main//factory, inst+15, unloaded
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
|
@@ -761,29 +766,30 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %Make.type: type = fn_type @Make.1, @Factory(%T) [symbolic = %Make.type (constants.%Make.type.1)]
|
|
|
// CHECK:STDOUT: %Make: @Factory.%Make.type (%Make.type.1) = struct_value () [symbolic = %Make (constants.%Make.1)]
|
|
|
// CHECK:STDOUT: %.2: type = assoc_entity_type @Factory.%.1 (%.4), @Factory.%Make.type (%Make.type.1) [symbolic = %.2 (constants.%.6)]
|
|
|
-// CHECK:STDOUT: %.3: @Factory.%.2 (%.6) = assoc_entity element0, imports.%import_ref.9 [symbolic = %.3 (constants.%.7)]
|
|
|
+// CHECK:STDOUT: %.3: @Factory.%.2 (%.6) = assoc_entity element0, imports.%import_ref.11 [symbolic = %.3 (constants.%.7)]
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: interface {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = imports.%import_ref.6
|
|
|
-// CHECK:STDOUT: .Make = imports.%import_ref.7
|
|
|
-// CHECK:STDOUT: witness = (imports.%import_ref.8)
|
|
|
+// CHECK:STDOUT: .Self = imports.%import_ref.5
|
|
|
+// CHECK:STDOUT: .Make = imports.%import_ref.6
|
|
|
+// CHECK:STDOUT: witness = (imports.%import_ref.7)
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: impl @impl: %A as %.5 {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: witness = imports.%import_ref.11
|
|
|
+// CHECK:STDOUT: .Make = imports.%import_ref.10
|
|
|
+// CHECK:STDOUT: witness = imports.%import_ref.9
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: class @A {
|
|
|
+// CHECK:STDOUT: class @B {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
// CHECK:STDOUT: .Self = imports.%import_ref.4
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: class @B {
|
|
|
+// CHECK:STDOUT: class @A {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = imports.%import_ref.5
|
|
|
+// CHECK:STDOUT: .Self = imports.%import_ref.8
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: generic fn @Make.1(constants.%T: type, constants.%Self.1: @Factory.%.1 (%.4)) {
|
|
|
@@ -798,9 +804,9 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %Factory.ref: %Factory.type = name_ref Factory, imports.%import_ref.1 [template = constants.%Factory]
|
|
|
// CHECK:STDOUT: %B.ref.loc5: type = name_ref B, imports.%import_ref.3 [template = constants.%B]
|
|
|
// CHECK:STDOUT: %.loc5_20: type = interface_type @Factory, @Factory(constants.%B) [template = constants.%.5]
|
|
|
-// CHECK:STDOUT: %.loc5_23: %.8 = specific_constant imports.%import_ref.7, @Factory(constants.%B) [template = constants.%.9]
|
|
|
+// CHECK:STDOUT: %.loc5_23: %.8 = specific_constant imports.%import_ref.6, @Factory(constants.%B) [template = constants.%.9]
|
|
|
// CHECK:STDOUT: %Make.ref: %.8 = name_ref Make, %.loc5_23 [template = constants.%.9]
|
|
|
-// CHECK:STDOUT: %.loc5_11: %Make.type.2 = interface_witness_access imports.%import_ref.11, element0 [template = constants.%Make.3]
|
|
|
+// CHECK:STDOUT: %.loc5_11: %Make.type.2 = interface_witness_access imports.%import_ref.9, element0 [template = constants.%Make.3]
|
|
|
// CHECK:STDOUT: %.loc4: ref %B = splice_block %return {}
|
|
|
// CHECK:STDOUT: %Make.call: init %B = call %.loc5_11() to %.loc4
|
|
|
// CHECK:STDOUT: return %Make.call to %return
|
|
|
@@ -835,10 +841,9 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: --- fail_factory.impl.carbon
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: constants {
|
|
|
-// CHECK:STDOUT: %A: type = class_type @A [template]
|
|
|
+// CHECK:STDOUT: %B: type = class_type @B [template]
|
|
|
// CHECK:STDOUT: %.1: type = struct_type {} [template]
|
|
|
// CHECK:STDOUT: %.2: <witness> = complete_type_witness %.1 [template]
|
|
|
-// CHECK:STDOUT: %B: type = class_type @B [template]
|
|
|
// CHECK:STDOUT: %Factory.type: type = generic_interface_type @Factory [template]
|
|
|
// CHECK:STDOUT: %.3: type = tuple_type () [template]
|
|
|
// CHECK:STDOUT: %Factory: %Factory.type = struct_value () [template]
|
|
|
@@ -846,15 +851,16 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %.4: type = interface_type @Factory, @Factory(%T) [symbolic]
|
|
|
// CHECK:STDOUT: %Self.1: @Factory.%.1 (%.4) = bind_symbolic_name Self 1 [symbolic]
|
|
|
// CHECK:STDOUT: %.5: type = interface_type @Factory, @Factory(%B) [template]
|
|
|
+// CHECK:STDOUT: %A: type = class_type @A [template]
|
|
|
// CHECK:STDOUT: %Self.2: %.4 = bind_symbolic_name Self 1 [symbolic]
|
|
|
// CHECK:STDOUT: %Make.type.1: type = fn_type @Make, @Factory(%T) [symbolic]
|
|
|
// CHECK:STDOUT: %Make.1: %Make.type.1 = struct_value () [symbolic]
|
|
|
// CHECK:STDOUT: %.6: type = assoc_entity_type %.4, %Make.type.1 [symbolic]
|
|
|
-// CHECK:STDOUT: %.7: %.6 = assoc_entity element0, imports.%import_ref.9 [symbolic]
|
|
|
+// CHECK:STDOUT: %.7: %.6 = assoc_entity element0, imports.%import_ref.11 [symbolic]
|
|
|
// CHECK:STDOUT: %Make.type.2: type = fn_type @Make, @Factory(%B) [template]
|
|
|
// CHECK:STDOUT: %Make.2: %Make.type.2 = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.8: type = assoc_entity_type %.5, %Make.type.2 [template]
|
|
|
-// CHECK:STDOUT: %.9: %.8 = assoc_entity element0, imports.%import_ref.10 [template]
|
|
|
+// CHECK:STDOUT: %.9: %.8 = assoc_entity element0, imports.%import_ref.12 [template]
|
|
|
// CHECK:STDOUT: %C: type = class_type @C [template]
|
|
|
// CHECK:STDOUT: %MakeC.type: type = fn_type @MakeC [template]
|
|
|
// CHECK:STDOUT: %MakeC: %MakeC.type = struct_value () [template]
|
|
|
@@ -863,23 +869,24 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %Make.type.3: type = fn_type @Make, @Factory(%C) [template]
|
|
|
// CHECK:STDOUT: %Make.3: %Make.type.3 = struct_value () [template]
|
|
|
// CHECK:STDOUT: %.12: type = assoc_entity_type %.11, %Make.type.3 [template]
|
|
|
-// CHECK:STDOUT: %.13: %.12 = assoc_entity element0, imports.%import_ref.9 [template]
|
|
|
-// CHECK:STDOUT: %.14: %.6 = assoc_entity element0, imports.%import_ref.12 [symbolic]
|
|
|
+// CHECK:STDOUT: %.13: %.12 = assoc_entity element0, imports.%import_ref.11 [template]
|
|
|
+// CHECK:STDOUT: %.14: %.6 = assoc_entity element0, imports.%import_ref.13 [symbolic]
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: imports {
|
|
|
// CHECK:STDOUT: %import_ref.1: %Factory.type = import_ref Main//factory, inst+5, loaded [template = constants.%Factory]
|
|
|
// CHECK:STDOUT: %import_ref.2: type = import_ref Main//factory, inst+28, loaded [template = constants.%A]
|
|
|
// CHECK:STDOUT: %import_ref.3 = import_ref Main//factory, inst+33, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.4 = import_ref Main//factory, inst+29, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.5 = import_ref Main//factory, inst+34, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.6 = import_ref Main//factory, inst+11, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.7: @Factory.%.2 (%.6) = import_ref Main//factory, inst+20, loaded [symbolic = @Factory.%.3 (constants.%.14)]
|
|
|
-// CHECK:STDOUT: %import_ref.8 = import_ref Main//factory, inst+15, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.9 = import_ref Main//factory, inst+15, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.10 = import_ref Main//factory, inst+15, unloaded
|
|
|
-// CHECK:STDOUT: %import_ref.11 = import_ref Main//factory, inst+51, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.4 = import_ref Main//factory, inst+34, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.5 = import_ref Main//factory, inst+11, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.6: @Factory.%.2 (%.6) = import_ref Main//factory, inst+20, loaded [symbolic = @Factory.%.3 (constants.%.14)]
|
|
|
+// CHECK:STDOUT: %import_ref.7 = import_ref Main//factory, inst+15, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.8 = import_ref Main//factory, inst+29, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.9 = import_ref Main//factory, inst+51, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.10 = import_ref Main//factory, inst+44, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.11 = import_ref Main//factory, inst+15, unloaded
|
|
|
// CHECK:STDOUT: %import_ref.12 = import_ref Main//factory, inst+15, unloaded
|
|
|
+// CHECK:STDOUT: %import_ref.13 = import_ref Main//factory, inst+15, unloaded
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: file {
|
|
|
@@ -913,29 +920,30 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %Make.type: type = fn_type @Make, @Factory(%T) [symbolic = %Make.type (constants.%Make.type.1)]
|
|
|
// CHECK:STDOUT: %Make: @Factory.%Make.type (%Make.type.1) = struct_value () [symbolic = %Make (constants.%Make.1)]
|
|
|
// CHECK:STDOUT: %.2: type = assoc_entity_type @Factory.%.1 (%.4), @Factory.%Make.type (%Make.type.1) [symbolic = %.2 (constants.%.6)]
|
|
|
-// CHECK:STDOUT: %.3: @Factory.%.2 (%.6) = assoc_entity element0, imports.%import_ref.9 [symbolic = %.3 (constants.%.7)]
|
|
|
+// CHECK:STDOUT: %.3: @Factory.%.2 (%.6) = assoc_entity element0, imports.%import_ref.11 [symbolic = %.3 (constants.%.7)]
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: interface {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = imports.%import_ref.6
|
|
|
-// CHECK:STDOUT: .Make = imports.%import_ref.7
|
|
|
-// CHECK:STDOUT: witness = (imports.%import_ref.8)
|
|
|
+// CHECK:STDOUT: .Self = imports.%import_ref.5
|
|
|
+// CHECK:STDOUT: .Make = imports.%import_ref.6
|
|
|
+// CHECK:STDOUT: witness = (imports.%import_ref.7)
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: impl @impl: %A as %.5 {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: witness = imports.%import_ref.11
|
|
|
+// CHECK:STDOUT: .Make = imports.%import_ref.10
|
|
|
+// CHECK:STDOUT: witness = imports.%import_ref.9
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: class @A {
|
|
|
+// CHECK:STDOUT: class @B {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
// CHECK:STDOUT: .Self = imports.%import_ref.4
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
-// CHECK:STDOUT: class @B {
|
|
|
+// CHECK:STDOUT: class @A {
|
|
|
// CHECK:STDOUT: !members:
|
|
|
-// CHECK:STDOUT: .Self = imports.%import_ref.5
|
|
|
+// CHECK:STDOUT: .Self = imports.%import_ref.8
|
|
|
// CHECK:STDOUT: }
|
|
|
// CHECK:STDOUT:
|
|
|
// CHECK:STDOUT: class @C {
|
|
|
@@ -957,7 +965,7 @@ fn MakeC(a: A) -> C {
|
|
|
// CHECK:STDOUT: %Factory.ref: %Factory.type = name_ref Factory, imports.%import_ref.1 [template = constants.%Factory]
|
|
|
// CHECK:STDOUT: %C.ref.loc10: type = name_ref C, file.%C.decl [template = constants.%C]
|
|
|
// CHECK:STDOUT: %.loc10_20: type = interface_type @Factory, @Factory(constants.%C) [template = constants.%.11]
|
|
|
-// CHECK:STDOUT: %.loc10_23: %.12 = specific_constant imports.%import_ref.7, @Factory(constants.%C) [template = constants.%.13]
|
|
|
+// CHECK:STDOUT: %.loc10_23: %.12 = specific_constant imports.%import_ref.6, @Factory(constants.%C) [template = constants.%.13]
|
|
|
// CHECK:STDOUT: %Make.ref: %.12 = name_ref Make, %.loc10_23 [template = constants.%.13]
|
|
|
// CHECK:STDOUT: return <error> to %return
|
|
|
// CHECK:STDOUT: }
|