This is an archive of the discontinued LLVM Phabricator instance.

[clang][codegen] Hoist parameter attribute setting in function prolog.
ClosedPublic

Authored by hliao on May 4 2020, 10:43 PM.

Details

Summary
  • If the coerced type is still a pointer, it should be set with proper parameter attributes, such as noalias, nonnull, and etc. Hoist that (pointer) parameter attribute setting so that the coerced pointer parameter could be marked properly.

Diff Detail

Event Timeline

hliao created this revision.May 4 2020, 10:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2020, 10:43 PM
hliao updated this revision to Diff 262011.May 4 2020, 10:46 PM

Add dependency.

Harbormaster completed remote builds in B55743: Diff 262011.
rjmccall accepted this revision.May 5 2020, 10:25 AM

LGTM.

This revision is now accepted and ready to land.May 5 2020, 10:25 AM
This revision was automatically updated to reflect the committed changes.