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
+1
-4
@@ -29,7 +29,6 @@ class Declaration(T:! type);
|
||||
// CHECK:STDOUT: %T: type = bind_symbolic_name T, 0 [symbolic]
|
||||
// CHECK:STDOUT: %T.patt: type = symbolic_binding_pattern T, 0 [symbolic]
|
||||
// CHECK:STDOUT: %Class.type: type = generic_class_type @Class [template]
|
||||
// CHECK:STDOUT: %empty_tuple.type: type = tuple_type () [template]
|
||||
// CHECK:STDOUT: %Class.1: %Class.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %Class.2: type = class_type @Class, @Class(%T) [symbolic]
|
||||
// CHECK:STDOUT: %.1: type = ptr_type %Class.2 [symbolic]
|
||||
@@ -41,10 +40,8 @@ class Declaration(T:! type);
|
||||
// CHECK:STDOUT: %.3: type = unbound_element_type %Class.2, %T [symbolic]
|
||||
// CHECK:STDOUT: %.4: type = struct_type {.k: %T} [symbolic]
|
||||
// CHECK:STDOUT: %.5: <witness> = complete_type_witness %.4 [symbolic]
|
||||
// CHECK:STDOUT: %.6: type = ptr_type %.4 [symbolic]
|
||||
// CHECK:STDOUT: %Declaration.type: type = generic_class_type @Declaration [template]
|
||||
// CHECK:STDOUT: %Declaration.1: %Declaration.type = struct_value () [template]
|
||||
// CHECK:STDOUT: %Declaration.2: type = class_type @Declaration, @Declaration(%T) [symbolic]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: imports {
|
||||
@@ -216,7 +213,7 @@ class Declaration(T:! type);
|
||||
// CHECK:STDOUT: %Class => constants.%Class.2
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: specific @Class(@Class.%T.loc11_13.2) {
|
||||
// CHECK:STDOUT: specific @Class(%T.loc11_13.2) {
|
||||
// CHECK:STDOUT: %T.loc11_13.2 => constants.%T
|
||||
// CHECK:STDOUT: %T.patt.loc11_13.2 => constants.%T
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
Reference in New Issue
Block a user