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

Michael Liao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 4 22:36:01 PDT 2020


hliao created this revision.
hliao added reviewers: rjmccall, kerbowa, yaxunl.
Herald added subscribers: cfe-commits, nhaehnle, jvesely.
Herald added a project: clang.
hliao abandoned this revision.

- 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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79393

Files:
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/CodeGen/CodeGenFunction.h
  clang/test/CodeGenCUDA/amdgpu-kernel-arg-pointer-type.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79393.262006.patch
Type: text/x-patch
Size: 8194 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200505/41b9b8f7/attachment-0001.bin>


More information about the cfe-commits mailing list