This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by aeubanks on Jul 7 2020, 4:04 PM.

Details

Summary

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.

Diff Detail

Event Timeline

aeubanks created this revision.Jul 7 2020, 4:04 PM
efriedma accepted this revision.Jul 7 2020, 4:12 PM

LGTM

This revision is now accepted and ready to land.Jul 7 2020, 4:12 PM
This revision was automatically updated to reflect the committed changes.