diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2021-02-25 09:49:53 -0800 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2021-02-25 15:14:09 -0800 |
commit | fee9abe69c0eb5529984f5573cf6a5d881f80649 (patch) | |
tree | a7e6a4ed8802f60f2857a244be75a2954fe7e941 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 4753a69a316b7705fc1b1442ad88afac059d542f (diff) | |
download | llvm-fee9abe69c0eb5529984f5573cf6a5d881f80649.zip llvm-fee9abe69c0eb5529984f5573cf6a5d881f80649.tar.gz llvm-fee9abe69c0eb5529984f5573cf6a5d881f80649.tar.bz2 |
[Remarks] Provide more information about auto-init calls
This now analyzes calls to both intrinsics and functions.
For intrinsics, grab the ones we know and care about (mem* family) and
analyze the arguments.
For calls, use TLI to get more information about the libcalls, then
analyze the arguments if known.
```
auto-init.c:4:7: remark: Call to memset inserted by -ftrivial-auto-var-init. Memory operation size: 4096 bytes. [-Rpass-missed=annotation-remarks]
int var[1024];
^
```
Differential Revision: https://reviews.llvm.org/D97489
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions