Add EBB parameter and EBB argument to the langref glossary to clarify the distinction between formal EBB parameter values and arguments passed to branches. - Replace "ebb_arg" with "ebb_param" in function names that deal with EBB parameters. - Rename the ValueDef variants to Result and Param. - A bunch of other small langref fixes. No functional changes intended.
14 lines
248 B
Plaintext
14 lines
248 B
Plaintext
test verifier
|
|
|
|
function %gcd(i32 uext, i32 uext) -> i32 uext native {
|
|
fn1 = function %divmod(i32 uext, i32 uext) -> i32 uext, i32 uext
|
|
|
|
ebb1(v1: i32, v2: i32):
|
|
brz v2, ebb2
|
|
v3, v4 = call fn1(v1, v2)
|
|
return v3
|
|
|
|
ebb2:
|
|
return v1
|
|
}
|