Go to file
Nick Desaulniers 9b9fe4166f [Sema] Mark target of __attribute__((alias("target"))) used for C
Summary:
Prevents -Wunneeded-internal-delcaration warnings when the target has no
other references. This occurs frequently in device drivers in the Linux
kernel.

Sema would need to invoke the demangler on the target, since in C++ the
target name is mangled:

int f() { return 42; }
int g() __attribute__((alias("_Z1fv")));

Sema does not have the ability to demangle names at this time.

https://bugs.llvm.org/show_bug.cgi?id=39088
https://github.com/ClangBuiltLinux/linux/issues/232

Reviewers: rsmith, rjmccall

Reviewed By: rsmith

Subscribers: erik.pilkington, cfe-commits, pirama, srhines

Differential Revision: https://reviews.llvm.org/D54188

llvm-svn: 350776
2019-01-09 23:54:55 +00:00
clang [Sema] Mark target of __attribute__((alias("target"))) used for C 2019-01-09 23:54:55 +00:00
clang-tools-extra [clang-tidy] another take at fixing doc 2019-01-09 21:27:59 +00:00
compiler-rt [libfuzzer][MSVC] Make calls to builtin functions work with MSVC 2019-01-09 21:46:09 +00:00
debuginfo-tests Set config.lit_tools_dir, which is needed by lit.llvm.initialize. 2018-11-06 21:54:27 +00:00
libclc cmake: Install libraries to DATADIR from GNUInstallDirs 2019-01-07 20:20:37 +00:00
libcxx [NFC] Always lock free test: add indirection 2019-01-09 23:20:24 +00:00
libcxxabi [libcxx] Remove bad_array_length 2018-11-29 19:44:57 +00:00
libunwind [Sparc] Add Sparc V8 support 2019-01-09 12:06:05 +00:00
lld Fix formatting. NFC. 2019-01-09 22:24:27 +00:00
lldb Write PDB/variables.test to be more robust. 2019-01-09 23:26:50 +00:00
llgo Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
llvm [SimplifyLibCalls] Fix memchr expansion for constant strings. 2019-01-09 23:39:26 +00:00
openmp [OpenMP][libomptarget] Use shared memory variable for tracking parallel level 2019-01-09 18:30:14 +00:00
parallel-libs Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
polly [CMake] Fix generation of exported targets in build directory 2018-11-06 15:18:17 +00:00
pstl [pstl] A fix of __pstl namespace usage for include/pstl/internal/glue_algorithm_defs.h 2019-01-09 14:07:09 +00:00
README.md Update the project name in README.md 2018-10-19 00:03:01 +00:00

README.md

The LLVM Compiler Infrastructure

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.