Paste: multiple return values with inline llvm

Author: kssreeram
Mode: text
Date: Mon, 13 Dec 2010 05:33:55
Plain Text |
foo(a:Int, b:Int) x:Int, y:Int __llvm__ {
    %1 = load i32 * %a
    %2 = load i32 * %b
    store i32 %2, i32 * %x
    store i32 %1, i32 * %y
    ret i32 0
}

main() {
    var a, b = ...foo(10, 20);
    println(a);
    println(b);
}

New Annotation

Summary:
Author:
Mode:
Body: