Page MenuHomePhabricator

[clang][codegen] Refactor argument loading in function prolog. NFC.

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


  • Skip copying function arguments and unnecessary casting by using them directly.

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

  • 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:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2020, 10:21 PM
hliao abandoned this revision.May 4 2020, 10:22 PM