[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
Thu Sep 10 14:24:13 PDT 2020
fhahn updated this revision to Diff 291083.
fhahn added a comment.
Also restrict to types that are `isNonTrivialToPrimitiveCopy`, so we do not add noalias for problematic types, like ObjC structs with weak references.
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.291083.patch
Type: text/x-patch
Size: 6154 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200910/a0eb41e2/attachment-0001.bin>
More information about the cfe-commits
mailing list