- Apr 29, 2015
-
-
Filipe Cabecinhas authored
Bug found with AFL fuzz. llvm-svn: 236073
-
Richard Smith authored
PR20625: Instantiate static constexpr member function of a local struct in a function template earlier. This is necessary in order to allow the use of a constexpr member function, or a member function with deduced return type, of a local class within a surrounding instantiated function template specialization. Patch by Michael Park! llvm-svn: 236063
-
Matthias Braun authored
llvm-svn: 236062
-
Hans Wennborg authored
These haven't done anything since before r142165. llvm-svn: 236061
-
Eric Christopher authored
for ARM while the backend will only ignore them. No functional change intended. llvm-svn: 236060
-
Adrian Prantl authored
in the debug info. This patch deletes a hack that emits the members of local anonymous unions as local variables. Besides being morally wrong, the existing representation using local variables breaks internal assumptions about the local variables' storage size. Compiling ``` void fn1() { union { int i; char c; }; i = c; } ``` with -g -O3 -verify will cause the verifier to fail after SROA splits the 32-bit storage for the "local variable" c into two pieces because the second piece is clearly outside the 8-bit range that is expected for a variable of type char. Given the choice I'd rather fix the debug representation than weaken the verifier. Debuggers generally already know how to deal with anonymous unions when they are members of C++ record types, but they may have problems finding the local anonymous struct members in the expression evaluator. rdar://problem/20730771 llvm-svn: 236059 -
Rafael Espindola authored
llvm-svn: 236058
-
Reid Kleckner authored
llvm-svn: 236057
-
Eric Christopher authored
Patch by Teresa Johnson. llvm-svn: 236056
-
Eric Christopher authored
the profile output from the command line via -fprofile-instr-generate=<path>, where the specified output path/file will be overridden by the LLVM_PROFILE_FILE environment variable. Several changes are made to the runtime to support this: Add a new interface __llvm_profile_override_default_filename that will set the profile output filename, but allows LLVM_PROFILE_FILE to override. This is the interface used by the new option. Refactor the pid-expansion done for LLVM_PROFILE_FILE into a separate routine that can be shared by the various filename setting routines (so that the filename from the option can also use the "%p" syntax). Move the truncation into setFilename, and only truncate if there is a new filename specified (to maintain support for appending to the same profile file in the case of multiple shared objects built with profiling). Move the handling for a NULL filename passed to __llvm_profile_set_filename and __llvm_profile_override_default_filename into the new setFilenamePossiblyWithPid routine. This now correctly resets the output file to default.profraw instead of NULL. The handling for a null LLVM_PROFILE_FILE (which should not reset) is done by caller setFilenameFromEnvironment. Patch by Teresa Johnson. llvm-svn: 236055
-
Eric Christopher authored
llvm-svn: 236054
-
Rafael Espindola authored
New sections are added to the end of the list, so the RelSections array was redundant. llvm-svn: 236053
-
Reid Kleckner authored
This is just the clang-side of 32-bit SEH. LLVM still needs work, and it will determinstically fail to compile until it's feature complete. On x86, all outlined handlers have no parameters, but they do implicitly take the EBP value passed in and use it to address locals of the parent frame. We model this with llvm.frameaddress(1). This works (mostly), but __finally block inlining can break it. For now, we apply the 'noinline' attribute. If we really want to inline __finally blocks on 32-bit x86, we should teach the inliner how to untangle frameescape and framerecover. Promote the error diagnostic from codegen to sema. It now rejects SEH on non-Windows platforms. LLVM doesn't implement SEH on non-x86 Windows platforms, but there's nothing preventing it. llvm-svn: 236052
-
Steven Wu authored
llvm-svn: 236051
-
Tim Northover authored
We were trying to look through COPY instructions, but only to the next instruction in a BB and incorrectly anyway. The cases where that would actually be a good idea are rare enough (and not even tested!) that it's not worth trying to get right. rdar://20721342 llvm-svn: 236050
-
Rafael Espindola authored
Set the group section index as they are created. llvm-svn: 236049
-
Andrew Kaylor authored
llvm-svn: 236048
-
Rafael Espindola authored
llvm-svn: 236047
-
Andrew Kaylor authored
Differential Revision: http://reviews.llvm.org/D9311 llvm-svn: 236046
-
Rafael Espindola authored
Assign the sections in the same pass we compute the index. llvm-svn: 236045
-
Steven Wu authored
Summary: FileScopeAsm should be treated the same as funcion level inline asm. -fno-gnu-inline-asm should trigger an error if file scope asm is used. I missed this case from r226340. This should not affect ms-extension because it is not allowed in the file scope. Reviewers: bob.wilson, rnk Reviewed By: rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D9328 llvm-svn: 236044
-
Richard Smith authored
llvm-svn: 236043
-
James Y Knight authored
llvm-svn: 236042
-
Reid Kleckner authored
Eventually, we will lower this out during IR preparation. llvm-svn: 236036
-
Sean Callanan authored
inherit correctly. llvm-svn: 236035
-
Richard Smith authored
llvm-svn: 236034
-
Rafael Espindola authored
Instead use the Group symbol of MCSectionELF. llvm-svn: 236033
-
Richard Smith authored
llvm-svn: 236032
-
Sanjay Patel authored
This is a compromise: with this simple patch, we should always handle a chain of exactly 3 operations optimally, but we're not generating the optimal balanced binary tree for a longer sequence. In general, this transform will reduce the dependency chain for a sequence of instructions using N operands from a worst case N-1 dependent operations to N/2 dependent operations. The optimal balanced binary tree would reduce the chain to log2(N). The trade-off for not dealing with longer sequences is: (1) we have less complexity in the compiler, (2) we avoid unknown compile-time blowup calculating a balanced tree, and (3) we don't need to worry about the increased register pressure required to parallelize longer sequences. It also seems unlikely that we would ever encounter really long strings of dependent ops like that in the wild, but I'm not sure how to verify that speculation. FWIW, I see no perf difference for test-suite running on btver2 (x86-64) with -ffast-math and this patch. We can extend this patch to cover other associative operations such as fmul, fmax, fmin, integer add, integer mul. This is a partial fix for: https://llvm.org/bugs/show_bug.cgi?id=17305 and if extended: https://llvm.org/bugs/show_bug.cgi?id=21768 https://llvm.org/bugs/show_bug.cgi?id=23116 The issue also came up in: http://reviews.llvm.org/D8941 Differential Revision: http://reviews.llvm.org/D9232 llvm-svn: 236031
-
Alexei Starovoitov authored
Patch by Brenden Blanco. llvm-svn: 236030
-
Artem Belevich authored
device-side compilation. llvm-svn: 236029
-
Rafael Espindola authored
llvm-svn: 236028
-
Filipe Cabecinhas authored
Summary: We don't seem to need to assert here, since this function's callers expect to get a nullptr on error. This way we don't assert on user input. Bug found with AFL fuzz. Reviewers: rafael Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9308 llvm-svn: 236027
-
Rafael Espindola authored
llvm-svn: 236026
-
Marshall Clow authored
llvm-svn: 236025
-
Siva Chandra authored
Summary: The "internal" name of vars is different between clang and GCC. All this change does is to use a regex instead of the hardcoded internal name. Test Plan: dotest.py -C <clang|gcc> -p TestMiVar Reviewers: ki.stfu Reviewed By: ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9128 llvm-svn: 236024
-
Daniel Berlin authored
llvm-svn: 236023
-
Rafael Espindola authored
llvm-svn: 236015
-
Evgeniy Stepanov authored
It's available on Android/ARM starting with API 21 (L). llvm-svn: 236014
-
Sanjay Patel authored
We don't need codegen-only intrinsic instructions for the vector forms of these instructions. This makes the reciprocal estimate instruction lowering identical to how we handle normal square roots: (V)SQRTPS / (V)SQRTPD. No existing regression tests fail with this patch. Differential Revision: http://reviews.llvm.org/D9301 llvm-svn: 236013
-