llvm-project/clang/CodeGen
Chris Lattner 2b228c95aa 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
2007-06-15 21:34:29 +00:00
..
CGDecl.cpp Implement support for formal arguments. We can now compile this: 2007-06-13 20:44:40 +00:00
CGExpr.cpp implement codegen of calls. We can now compile: 2007-06-15 21:34:29 +00:00
CGStmt.cpp Implement implicit conversions in return stmts. 2007-06-13 20:50:31 +00:00
CodeGenFunction.cpp Implement support for formal arguments. We can now compile this: 2007-06-13 20:44:40 +00:00
CodeGenFunction.h implement codegen of calls. We can now compile: 2007-06-15 21:34:29 +00:00
CodeGenModule.cpp Don't generate code for prototypes 2007-06-15 21:16:23 +00:00
CodeGenModule.h Add codegen support for NullStmt and CompoundStmt. {;;{};;} is now ours! 2007-05-29 23:50:05 +00:00
Makefile Initial scaffolding for an -emit-llvm mode. This requires the LLVM VMCore 2007-05-24 06:29:05 +00:00
ModuleBuilder.cpp Reorganize codegen files. 2007-05-28 01:07:47 +00:00