Make LLVM IR emission a bit more concise and readable. (#3078)

Provide LLVM IR names for named types, and not for unnamed types.

Use shorter names for IR values.
This commit is contained in:
Richard Smith authored and GitHub committed 2023-08-09 03:09:03 +00:00
1 parent 2947877518
commit 927375f9c6
32 files changed
+202 -218

No files matched your search

@@ -10,8 +10,6 @@ fn Echo(a: {}) {
// CHECK:STDOUT: ; ModuleID = 'empty_struct.carbon'
// CHECK:STDOUT: source_filename = "empty_struct.carbon"
// CHECK:STDOUT:
// CHECK:STDOUT: %StructLiteralType = type {}
// CHECK:STDOUT:
// CHECK:STDOUT: define void @Echo(%StructLiteralType %a) {
// CHECK:STDOUT: define void @Echo({} %a) {
// CHECK:STDOUT: ret void
// CHECK:STDOUT: }