diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-30 19:47:04 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-30 19:47:04 +0000 |
commit | 94d32536260f9e181cdf848df841de4628ebd49c (patch) | |
tree | 666e46740ff0716966e0473bd9499c9d73be2ba6 /llvm/unittests/Transforms | |
parent | 3a5094b18c052eb8a519ac2249848ae77cad7c6e (diff) | |
download | bcm5719-llvm-94d32536260f9e181cdf848df841de4628ebd49c.tar.gz bcm5719-llvm-94d32536260f9e181cdf848df841de4628ebd49c.zip |
Adds support for variable sized allocas. For a variable sized alloca,
code is inserted to first check if the current stacklet has enough
space. If so, space is allocated by simply decrementing the stack
pointer. Otherwise a runtime routine (__morestack_allocate_stack_space
in libgcc) is called which allocates the required memory from the
heap.
Patch by Sanjoy Das.
llvm-svn: 138818
Diffstat (limited to 'llvm/unittests/Transforms')
0 files changed, 0 insertions, 0 deletions