This is an archive of the discontinued LLVM Phabricator instance.

Add nonnull in CodeGen for __attribute__((nonnull))
ClosedPublic

Authored by hfinkel on Jul 11 2014, 7:13 AM.

Details

Summary

We now have an LLVM-level nonnull attribute that can be applied to function parameters, and we emit it for reference types (as of r209723), but we don't yet emit it when a attribute((nonnull)) is provided. This patch adds support for turning attribute((nonnull)) on the source level into nonnull at the IR level.

Diff Detail

Event Timeline

hfinkel updated this revision to Diff 11317.Jul 11 2014, 7:13 AM
hfinkel retitled this revision from to Add nonnull in CodeGen for __attribute__((nonnull)).
hfinkel updated this object.
hfinkel edited the test plan for this revision. (Show Details)
hfinkel added reviewers: rsmith, nlewycky, aaron.ballman.
hfinkel added a subscriber: Unknown Object (MLST).
hfinkel accepted this revision.Jul 11 2014, 10:44 AM
hfinkel added a reviewer: hfinkel.

(it would be really nice to have an "Accept and Close" option).

This revision is now accepted and ready to land.Jul 11 2014, 10:44 AM
hfinkel closed this revision.Jul 11 2014, 10:45 AM

Committed r212835.