mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Reduce the size of formatted SemIR. (#4534)
- Do not include entities imported from files that we are not dumping. - Do not include constants and import_refs that are not referenced by something that we are including in the formatted output. --------- Co-authored-by: Jon Ross-Perkins <jperkins@google.com> Co-authored-by: Carbon Infra Bot <carbon-external-infra@google.com>
This commit is contained in:
co-authored by
Jon Ross-Perkins
Carbon Infra Bot
parent
3c18a6c477
commit
4ee65ef58a
@@ -14,15 +14,11 @@ var x: ((i32, i32), i32) = ((12, 76), 6);
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: %Int32.type: type = fn_type @Int32 [template]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [template]
|
||||
// CHECK:STDOUT: %Int32: %Int32.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %tuple.type.1: type = tuple_type (type, type) [template]
|
||||
// CHECK:STDOUT: %tuple.type.2: type = tuple_type (%tuple.type.1, type) [template]
|
||||
// CHECK:STDOUT: %tuple.type.3: type = tuple_type (i32, i32) [template]
|
||||
// CHECK:STDOUT: %tuple.type.4: type = tuple_type (%tuple.type.3, i32) [template]
|
||||
// CHECK:STDOUT: %.1: type = ptr_type %tuple.type.3 [template]
|
||||
// CHECK:STDOUT: %tuple.type.5: type = tuple_type (%.1, i32) [template]
|
||||
// CHECK:STDOUT: %.2: type = ptr_type %tuple.type.5 [template]
|
||||
// CHECK:STDOUT: %.3: i32 = int_value 12 [template]
|
||||
// CHECK:STDOUT: %.4: i32 = int_value 76 [template]
|
||||
// CHECK:STDOUT: %.5: i32 = int_value 6 [template]
|
||||
@@ -36,7 +32,6 @@ var x: ((i32, i32), i32) = ((12, 76), 6);
|
||||
// CHECK:STDOUT: import Core//prelude
|
||||
// CHECK:STDOUT: import Core//prelude/...
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %import_ref: %Int32.type = import_ref Core//prelude/types, inst+15, loaded [template = constants.%Int32]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: file {
|
||||
@@ -62,8 +57,6 @@ var x: ((i32, i32), i32) = ((12, 76), 6);
|
||||
// CHECK:STDOUT: %x: ref %tuple.type.4 = bind_name x, %x.var
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @Int32() -> type = "int.make_type_32";
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @__global_init() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %.loc11_30: i32 = int_value 12 [template = constants.%.3]
|
||||
|
||||
Reference in New Issue
Block a user