Add intrinsics for doing frame-bound dynamic allocations within a coroutine.
authorJohn McCall <rjmccall@apple.com>
Wed, 14 Aug 2019 03:53:40 +0000 (03:53 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 14 Aug 2019 03:53:40 +0000 (03:53 +0000)
commit62a5dde0c29f168545b7352f88fdffa12f931c39
tree1d8beadbc2c539edeb8be539ad0ec74e58a3b244
parent137b50f0c3b1803d3a743cc2b863fe1acb6f62e1
Add intrinsics for doing frame-bound dynamic allocations within a coroutine.

These rely on having an allocator provided to the coroutine and thus,
for now, only work in retcon lowerings.

llvm-svn: 368791
llvm/include/llvm/IR/Intrinsics.td
llvm/lib/Transforms/Coroutines/CoroFrame.cpp
llvm/lib/Transforms/Coroutines/CoroInstr.h
llvm/lib/Transforms/Coroutines/Coroutines.cpp
llvm/test/Transforms/Coroutines/coro-retcon-alloca.ll [new file with mode: 0644]