[PATCH] D85473: [Clang] Add option to allow marking pass-by-value args as noalias.

Florian Hahn via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 11 04:35:04 PDT 2020


fhahn updated this revision to Diff 291183.
fhahn marked an inline comment as done.
fhahn added a comment.

Add check lines for escape examples. Note that for return-by-value we already add noalias to the pointer unconditionally.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85473/new/

https://reviews.llvm.org/D85473

Files:
  clang/include/clang/Basic/CodeGenOptions.def
  clang/include/clang/Driver/Options.td
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/test/CodeGen/pass-by-value-noalias.c
  clang/test/CodeGenCXX/pass-by-value-noalias.cpp
  clang/test/CodeGenObjC/pass-by-value-noalias.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85473.291183.patch
Type: text/x-patch
Size: 7153 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200911/f99abacd/attachment.bin>


More information about the cfe-commits mailing list