mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 00:46:49 +00:00
Lowering of Branch / BranchIf / BranchWithArg / BlockArg. (#2904)
This gives us complete lowering of `if` expressions plus `and` and `or`. Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
1 parent
c27f41c94b
commit
0d4d392d12
44 files changed
+453
-91
No files matched your search
@@ -10,7 +10,6 @@
|
||||
// CHECK:STDOUT: %StructLiteralType = type {}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: define %EmptyTupleType @Echo(%StructLiteralType %a) {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
fn Echo(a: {}) {
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
// CHECK:STDOUT: %EmptyTupleType = type {}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: define %EmptyTupleType @Foo(i32 %a) {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
fn Foo(a: i32) {}
|
||||
@@ -9,7 +9,6 @@
|
||||
// CHECK:STDOUT: %EmptyTupleType = type {}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: define %EmptyTupleType @Foo(i32 %a, i32 %b) {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
fn Foo(a: i32, b: i32) {}
|
||||
@@ -9,7 +9,6 @@
|
||||
// CHECK:STDOUT: %EmptyTupleType = type {}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: define %EmptyTupleType @Foo() {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: }
|
||||
|
||||
fn Foo() {}
|
||||
Reference in new issue
Block a user