Move entry_block() into Layout.
The single entry block in a function is simply the first block in the layout. Remove the 'entry' keyword from the textual IL, the lexer and parser.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
function average(i32, i32) -> f32 {
|
||||
ss1 = stack_slot 8, align 4 ; Stack slot for ``sum``.
|
||||
|
||||
entry ebb1(v1: i32, v2: i32):
|
||||
ebb1(v1: i32, v2: i32):
|
||||
v3 = f64const 0x0.0
|
||||
stack_store v3, ss1
|
||||
brz v2, ebb3 ; Handle count == 0.
|
||||
|
||||
Reference in New Issue
Block a user