HomePhabricator

[Preallocated] Add @llvm.call.preallocated.teardown

Authored by aeubanks on Jul 8 2020, 8:48 AM.

Description

[Preallocated] Add @llvm.call.preallocated.teardown

This cleans up the stack allocated by a @llvm.call.preallocated.setup.
Should either call the teardown or the preallocated call to clean up the
stack. Calling both is UB.

Add LangRef.

Add verifier check that the token argument is a @llvm.call.preallocated.setup.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D83354

Details

Committed
aeubanksJul 8 2020, 8:48 AM
Reviewer
efriedma
Differential Revision
D83354: [Preallocated] Add @llvm.call.preallocated.teardown
Parents
rGc54a013e5a82: partial revert on RTBuilder.h to avoid warnings.
Branches
Unknown
Tags
Unknown