Commits
Chris Lattner committed e61b645ccc2
wire up initialization of argument variables with BBArguments that correspond
to function arguments. For example, we now lower:
func curried_arguments(x : Int) (y : Int) -> Int {
return x+y
}
to:
func_decl curried_arguments
bb0(%0 : Int, %1 : Int):
%2 = tuple (%0)
%3 = alloc_var x, type=[byref(heap)] Int
%4 = store %0 -> %3 [initialization]
%5 = tuple (%1)
%6 = alloc_var y, type=[byref(heap)] Int
%7 = store %1 -> %6 [initialization]
%8 = constantref +, type=(lhs : Int64, rhs : Int64) -> Int64
%9 = load %3
%10 = load %6
%11 = apply %8(%9, %10)
%12 = return (%11)
Swift SVN r3010