- Aug 21, 2014
-
-
Tom Stellard authored
This is currently a no-op, which is allowed by the OpenCL specification. llvm-svn: 216179
-
Rafael Espindola authored
No functionality change. llvm-svn: 216178
-
Timur Iskhodzhanov authored
At least check-asan works with this change. If the change breaks anything, we'll need to add: a) a comment describing why we have to use INTERCEPT_FUNCTION rather than ASAN_INTERCEPT_FUNC and b) a test case. llvm-svn: 216177
-
Zinovy Nis authored
llvm-svn: 216176
-
Benjamin Kramer authored
PR20677 llvm-svn: 216175
-
Rafael Espindola authored
llvm-svn: 216174
-
Josh Klontz authored
Summary: This bug was introduced in r213006 which makes an assumption that MCSection is COFF for Windows MSVC. This assumption is broken for MCJIT users where ELF is used instead [1]. The fix is to change the MCSection cast to a dyn_cast. [1] http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-December/068407.html. Reviewers: majnemer Reviewed By: majnemer Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D4872 llvm-svn: 216173
-
Oliver Stannard authored
The FPv4-SP floating-point unit is generally referred to as single-precision only, but it does have double-precision registers and load, store and GPR<->DPR move instructions which operate on them. This patch enables the use of these registers, the main advantage of which is that we now comply with the AAPCS-VFP calling convention. This partially reverts r209650, which added some AAPCS-VFP support, but did not handle return values or alignment of double arguments in registers. This patch also adds tests for Thumb2 code generation for floating-point instructions and intrinsics, which previously only existed for ARM. llvm-svn: 216172
-
Rafael Espindola authored
llvm-svn: 216171
-
Benjamin Kramer authored
It's not meant to be used with operator delete and this avoids emitting virtual dtors for every derived format object. llvm-svn: 216170
-
Erik Verbruggen authored
This does not require -ffast-math, and it gives CSE/GVN more options to eliminate duplicate expressions in, e.g.: return ((x + 0.1234 * y) * (x - 0.1234 * y)); Differential Revision: http://reviews.llvm.org/D4904 llvm-svn: 216169
-
Benjamin Kramer authored
While there remove noop casts. llvm-svn: 216168
-
Benjamin Kramer authored
The call will never go to a more derived class, but that's intentional in those cases. llvm-svn: 216167
-
Daniel Sanders authored
Fix invalid test generation by utils/ABITest/ABITestGen.py when the same enum is generated more than once. When generating records/unions, the same enum type may be generated more than once (with different names). In these cases, the name of the enum values are not sufficiently unique to prevent multiple declarations. E.g: typedef enum T3 { enum0val0 } T3; typedef T3 T2[3]; typedef enum T4 { enum0val0 } T4; typedef union T1 { T2 field0; T4 field1; char field2; } T1; Added a unique suffix to enum values so that multiple identical enum types do not use the same enum value names. One example of this bug is produced by: ABITestGen.py --no-unsigned --no-vector --no-complex --no-bool \ --max-args 0 --max-record-depth 1 -o inputs/test.9921.a.c \ -T inputs/test.9921.b.c -D inputs/test.9921.driver.c \ --min=9921 --count=1 llvm-svn: 216166 -
Dan Liew authored
to fail. llvm-svn: 216165
-
Robert Khasanov authored
llvm-svn: 216164
-
Robert Khasanov authored
llvm-svn: 216163
-
Robert Khasanov authored
llvm-svn: 216162
-
Robert Khasanov authored
Added FeatureSMAP. Broadwell ISA includes Haswell ISA + ADX + RDSEED + SMAP llvm-svn: 216161
-
Zinovy Nis authored
[INDVARS] Extend using of widening of induction variables for the cases of "sub nsw" and "mul nsw" instructions. Currently only "add nsw" are widened. This patch eliminates tons of "sext" instructions for 64 bit code (and the corresponding target code) in cases like: int N = 100; float **A; void foo(int x0, int x1) { float * A_cur = &A[0][0]; float * A_next = &A[1][0]; for(int x = x0; x < x1; ++x). { // Currently only [x+N] case is widened. Others 2 cases lead to sext. // This patch fixes it, so all 3 cases do not need sext. const float div = A_cur[x + N] + A_cur[x - N] + A_cur[x * N]; A_next[x] = div; } } ... > clang++ test.cpp -march=core-avx2 -Ofast -fno-unroll-loops -fno-tree-vectorize -S -o - Differential Revision: http://reviews.llvm.org/D4695 llvm-svn: 216160 -
Elena Demikhovsky authored
By Arch Robison. llvm-svn: 216159
-
Craig Topper authored
llvm-svn: 216158
-
David Majnemer authored
Adapted from a patch by Richard Smith, test-case written by me. llvm-svn: 216157
-
Craig Topper authored
Remove custom implementations of max/min in StringRef that was originally added to work an old gcc bug. I believe its been fixed by now. llvm-svn: 216156
-
Eric Fiselier authored
llvm-svn: 216155
-
Eric Fiselier authored
llvm-svn: 216154
-
Rui Ueyama authored
I'm adding new parameters to the function, and the existing parameter with a default argument is found confusing. llvm-svn: 216153
-
Rui Ueyama authored
llvm-svn: 216152
-
Eric Fiselier authored
This marks some of the localization test XFAIL on linux. There has been some discussion on D4861 about doing this. Please let me know if any of these tests for you on linux. llvm-svn: 216151
-
Eric Fiselier authored
This marks some of the localization test XFAIL on linux. There has been some discussion on D4861 about doing this. Please let me know if any of these tests for you on linux. llvm-svn: 216150
-
Jiangning Liu authored
In constant folding stage, "TRUNC" can't handle vector data type. llvm-svn: 216149
-
Eric Fiselier authored
This marks some of the localization test XFAIL on linux. There has been some discussion on D4861 about doing this. Please let me know if any of these tests for you on linux. llvm-svn: 216148
-
Jiangning Liu authored
llvm-svn: 216147
-
Nick Kledzik authored
Both options control the final scope of atoms. When -exported_symbols_list <file> is used, the file is parsed into one symbol per line in the file. Only those symbols will be exported (global) in the final linked image. The -keep_private_externs option is only used with -r mode. Normally, -r mode reduces private extern (scopeLinkageUnit) symbols to non-external. But add the -keep_private_externs option keeps them private external. llvm-svn: 216146
-
Hans Wennborg authored
Normally we mark all members of exported classes referenced to get them emitted. However, MSVC doesn't do this for class templates that are implicitly specialized or just have an explicit instantiation declaration. For such specializations, the members are emitted when referenced. The exception is the case when the dllexport attribute is propagated from a base class to a base class template that doesn't have an explicit attribute: in this case all methods of the base class template do get instantiated. llvm-svn: 216145
-
Quentin Colombet authored
advanced copy optimization. This is the final step patch toward transforming: udiv r0, r0, r2 udiv r1, r1, r3 vmov.32 d16[0], r0 vmov.32 d16[1], r1 vmov r0, r1, d16 bx lr into: udiv r0, r0, r2 udiv r1, r1, r3 bx lr Indeed, thanks to this patch, this optimization is able to look through vmov.32 d16[0], r0 vmov.32 d16[1], r1 and is able to rewrite the following sequence: vmov.32 d16[0], r0 vmov.32 d16[1], r1 vmov r0, r1, d16 into simple generic GPR copies that the coalescer managed to remove. <rdar://problem/12702965> llvm-svn: 216144
-
Quentin Colombet authored
target hook. This patch teaches the compiler that: dX = VSETLNi32 dY, rZ, imm is the same as: dX = INSERT_SUBREG dY, rZ, translateImmToSubIdx(imm) <rdar://problem/12702965> llvm-svn: 216143
-
Hans Wennborg authored
Use the derived class in the macro instead, to make it unambigous where the template is being instantiated. llvm-svn: 216142
-
James Molloy authored
Only for Cortex-A57 and Cyclone for now, where it has shown wins. llvm-svn: 216141
-
James Molloy authored
If we have a scalar reduction, we can increase the critical path length if the loop we're unrolling is inside another loop. Limit, by default to 2, so the critical path only gets increased by one reduction operation. llvm-svn: 216140
-