diff options
author | Chris Lattner <sabre@nondot.org> | 2007-06-15 21:34:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-06-15 21:34:29 +0000 |
commit | 2b228c95aa9bf69f27af12294149f57459ef41b1 (patch) | |
tree | 7fe530597b70eac5ebebd1941e080d4ccc77efcc /clang/CodeGen/CodeGenFunction.cpp | |
parent | 52d85bdd2b63825075c50a1fdb2f917bb5252ac5 (diff) | |
download | bcm5719-llvm-2b228c95aa9bf69f27af12294149f57459ef41b1.tar.gz bcm5719-llvm-2b228c95aa9bf69f27af12294149f57459ef41b1.zip |
implement codegen of calls. We can now compile:
double foo( int (*FP)(int, int, int)) {
return FP(1, 2, 3);
}
to:
define double @foo(i32 (i32, i32, i32)* %FP) {
entry:
%call = tail call i32 %FP( i32 1, i32 2, i32 3 )
%conv = sitofp i32 %call to double
ret double %conv
}
llvm-svn: 39658
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions