| commit | 6fd1b1802f5e748d2e8dfabeb03b62c0d65340ab | [log] [tgz] |
|---|---|---|
| author | Douglas Gregor <dgregor@apple.com> | Sat May 15 06:01:05 2010 +0000 |
| committer | Douglas Gregor <dgregor@apple.com> | Sat May 15 06:01:05 2010 +0000 |
| tree | a4e9b7b4cdad61d7785a9661b734f8311a9539c3 | |
| parent | 6625c7028e5e8c301fdd6e9153c403970f1b8075 [diff] |
Implement semantic analysis and an AST representation for the named return value optimization. Sema marks return statements with their NRVO candidates (which may or may not end up using the NRVO), then, at the end of a function body, computes and marks those variables that can be allocated into the return slot. I've checked this locally with some debugging statements (not committed), but there won't be any tests until CodeGen comes along. llvm-svn: 103865