mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 08:44:41 +01:00
Use TupleAccess instead of TupleIndex (#4318)
This change removes the `TupleIndex` instruction, and instead consolidate it with the `TupleAccess` instruction, per this [discussion](https://discord.com/channels/655572317891461132/655578254970716160/1271195835975204946). This change, in turn removes `AnyAggregateIndex`.
This commit is contained in:
@@ -95,7 +95,7 @@ fn Main() {
|
||||
// CHECK:STDOUT: %Foo.ref: %Foo.type = name_ref Foo, file.%Foo.decl [template = constants.%Foo]
|
||||
// CHECK:STDOUT: %x.ref: ref %.3 = name_ref x, %x
|
||||
// CHECK:STDOUT: %.loc16_9: i32 = int_literal 0 [template = constants.%.5]
|
||||
// CHECK:STDOUT: %.loc16_8.1: ref i32 = tuple_index %x.ref, %.loc16_9
|
||||
// CHECK:STDOUT: %.loc16_8.1: ref i32 = tuple_access %x.ref, element0
|
||||
// CHECK:STDOUT: %.loc16_12: i32 = int_literal 6 [template = constants.%.6]
|
||||
// CHECK:STDOUT: %.loc16_8.2: i32 = bind_value %.loc16_8.1
|
||||
// CHECK:STDOUT: %Foo.call: init %.1 = call %Foo.ref(%.loc16_8.2, %.loc16_12)
|
||||
|
||||
Reference in New Issue
Block a user