Go to file
Erich Keane 7304f0a66e Correct 'target' default behavior on redecl, allow forward declaration.
Declarations without the attribute were disallowed because it would be
ambiguous which 'target' it was supposed to be on.  For example:

void ___attribute__((target("v1"))) foo();
void foo(); // Redecl of above, or fwd decl of below?
void ___attribute__((target("v2"))) foo();

However, a first declaration doesn't have that problem, and erroring
prevents it from working in cases where the forward declaration is
useful.

Additionally, a forward declaration of target==default wouldn't properly
cause multiversioning, so this patch fixes that.

The patch was not split since the 'default' fix would require
implementing the same check for that case, followed by undoing the same
change for the fwd-decl implementation.

Change-Id: I66f2c5bc2477bcd3f7544b9c16c83ece257077b0
llvm-svn: 347805
2018-11-28 20:58:43 +00:00
clang Correct 'target' default behavior on redecl, allow forward declaration. 2018-11-28 20:58:43 +00:00
clang-tools-extra Revert "[clang-tools-extra] r347753 - [clangd] Build and test IndexBenchmark in check-clangd" 2018-11-28 18:48:32 +00:00
compiler-rt (no commit message) 2018-11-28 18:17:23 +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 travis: Add cmake build 2018-11-27 16:07:21 +00:00
libcxx Fix bad _LIBCPP_ALIGNOF test 2018-11-28 18:32:16 +00:00
libcxxabi [Demangle] remove itaniumFindTypesInMangledName 2018-11-27 16:11:24 +00:00
libunwind [CMake] Passthrough CFLAGS when checking the compiler-rt path 2018-11-14 00:09:26 +00:00
lld Simplify Symbol::getPltVA. 2018-11-28 17:42:59 +00:00
lldb [unittests] Fix the File System Test on Windows 2018-11-28 19:34:01 +00:00
llgo Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
llvm Reapply "[llvm-mca] Return the total number of cycles from method Pipeline::run()." 2018-11-28 19:31:19 +00:00
openmp [OpenMP] Rename ompt_mutex_impl_unknown to ompt_mutex_impl_none 2018-11-28 20:19:53 +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
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.