Nadav Rotem
b7bb72e4f3
Remove the "-promote-elements" flag. This flag is now enabled by default.
...
llvm-svn: 157925
2012-06-04 11:27:21 +00:00
Alexey Samsonov
4ecc8f43c7
[ASan] Use ASan option symbolize to turn on internal symbolizer (in development)
...
llvm-svn: 157924
2012-06-04 11:20:17 +00:00
Evgeniy Stepanov
ea155f0153
Require -pie when linking with ASan on Android.
...
llvm-svn: 157923
2012-06-04 11:15:05 +00:00
Alexey Samsonov
06f2cd38c1
[Sanitizer] Move internal_strncpy to sanitizer_libc (and make its behavior conforming to manual)
...
llvm-svn: 157922
2012-06-04 10:30:16 +00:00
Hans Wennborg
96fe81069b
Test the '__thread' before 'static' warning.
...
Also fix the '__thread' before 'extern' case.
llvm-svn: 157921
2012-06-04 10:19:34 +00:00
Hans Wennborg
09610f3e09
Better comments for TLS-related X86 MachineOperand flags.
...
llvm-svn: 157920
2012-06-04 09:55:36 +00:00
Alexey Samsonov
c1971ca12f
[Sanitizer_common] fix filenames in comments
...
llvm-svn: 157919
2012-06-04 09:33:06 +00:00
Craig Topper
c6ac4cefcc
Add intrinsic forms for FMA instructions to opcode folding tables.
...
llvm-svn: 157917
2012-06-04 07:46:16 +00:00
Duncan Sands
b8d3d74de8
getAllOnesValue also works for vectors of integers.
...
llvm-svn: 157915
2012-06-04 07:18:12 +00:00
Craig Topper
3cb143016d
Add VFMADDSUB and VFMSUBADD FMA instructions to folding tables. Also add 213 forms of scalar FMA instructions.
...
llvm-svn: 157914
2012-06-04 07:08:21 +00:00
Craig Topper
2b1eda344a
Add fma3 intrinsic header file.
...
llvm-svn: 157913
2012-06-04 03:42:47 +00:00
Hal Finkel
1de9bf01e4
Fix a copy-and-paste duplication error in the PPC 440 and A2 schedules (no functionality change).
...
llvm-svn: 157912
2012-06-04 02:39:52 +00:00
Hal Finkel
595817eebe
Enable generating PPC pre-increment (r+imm) instructions by default.
...
It seems that this no longer causes test suite failures on PPC64 (after r157159),
and often gives a performance benefit, so it can be enabled by default.
llvm-svn: 157911
2012-06-04 02:21:00 +00:00
Douglas Gregor
5bee25884b
When adding built-in operator candidates for overload resolution
...
involving 'restrict', place restrict on the pointer type rather than
on the pointee type. Also make sure that we gather restrict from the
pointer type. Fixes PR12854 and the major part of PR11093.
llvm-svn: 157910
2012-06-04 00:15:09 +00:00
Rafael Espindola
34b9c511c1
Represent .rept as an anonymous macro. This removes the need for the ActiveRept
...
vector. No functionality change.
Extracted from a patch by the PaX Team.
llvm-svn: 157909
2012-06-03 23:57:14 +00:00
Rafael Espindola
dd17c237a8
Add a typedef to simplify the code a bit. Not functionality change.
...
Part of a patch by the PaX Team.
llvm-svn: 157908
2012-06-03 22:41:23 +00:00
Craig Topper
12c9df3a9d
Make disabling SSE levels also disable AVX and FMA.
...
llvm-svn: 157907
2012-06-03 22:23:42 +00:00
Craig Topper
1e9e01fabf
Make AES and PCLMUL features imply SSE2 as that's needed to get the right types defined.
...
llvm-svn: 157906
2012-06-03 21:56:22 +00:00
Craig Topper
b644c97fb4
Add __POPCNT__ to test cases for corei7 and corei7-avx
...
llvm-svn: 157905
2012-06-03 21:49:41 +00:00
Craig Topper
bba778bfd5
Add fma feature flag for Intel FMA instructions.
...
llvm-svn: 157904
2012-06-03 21:46:30 +00:00
Craig Topper
79dbb0c6e4
Rename FMA3 feature flag to just FMA to match gcc so it can be added to clang.
...
llvm-svn: 157903
2012-06-03 18:58:46 +00:00
Craig Topper
2c5ccd8af7
Simplify the fma4 renaming code.
...
llvm-svn: 157902
2012-06-03 16:48:52 +00:00
NAKAMURA Takumi
2cf23dc272
IntRange: Restore the copy constuctor explicitly to appase buildbot.
...
llvm-svn: 157901
2012-06-03 15:42:12 +00:00
Benjamin Kramer
4efdcced7a
Upgrade test for the fma4->fma intrinsic change.
...
llvm-svn: 157900
2012-06-03 10:12:04 +00:00
Craig Topper
720c7bde5c
Autoupgrade support the rename of x86.fma4 intrinsics to x86.fma from r157898.
...
llvm-svn: 157899
2012-06-03 08:07:25 +00:00
Craig Topper
fd53b80219
Rename fma4 intrinsics to just fma since they are now used for both FMA4 and FMA3. Autoupgrade support coming in a separate commit.
...
llvm-svn: 157898
2012-06-03 07:26:46 +00:00
Nico Weber
cdfb1ae7f7
Improve fixit for comparison operator on lhs of bitwise operator.
...
Before:
test.cc:2:18: note: place parentheses around the == expression to silence this warning
if (0 == flags & 0xdd)
^
( )
Now:
test.cc:2:18: note: place parentheses around the == expression to silence this warning
if (0 == flags & 0xdd)
^
( )
llvm-svn: 157897
2012-06-03 07:07:00 +00:00
Manman Ren
5097e4f38a
Revert r157831
...
llvm-svn: 157896
2012-06-03 03:14:24 +00:00
Craig Topper
29eafea292
Use sse_load_f32/64 for scalar FMA3 intrinsic patterns instead of 128-bit loads to match instruction behavior.
...
llvm-svn: 157895
2012-06-03 01:40:43 +00:00
Craig Topper
badd755a0e
Add neverHasSideEffects and mayLoad to FMA3 instructions.
...
llvm-svn: 157894
2012-06-03 00:30:49 +00:00
Argyrios Kyrtzidis
ea173ffe42
Follow-up on the test of r157892
...
llvm-svn: 157893
2012-06-02 18:20:16 +00:00
Argyrios Kyrtzidis
3c9aaf1ab8
Initialize the non-target-dependent fields of the Preprocessor in its constructor
...
so we can destroy it even if it was constructed with "DelayInitialization = true",
and we didn't end up calling Preprocessor::Initialize.
Fixes crashes in rdar://11558355
llvm-svn: 157892
2012-06-02 18:08:09 +00:00
Benjamin Kramer
172f80849f
Use access(2) instead of stat(2) to check if a file exists.
...
Apart from being slightly cheaper, this fixes a real bug that hits 32 bit
linux systems. When passing a file larger than 2G to be linked (which isn't
that uncommon with large projects such as WebKit), clang's driver checks
if the file exists but the file size doesn't fit in an off_t and stat(2)
fails with EOVERFLOW. Clang then says that the file doesn't exist instead
of passing it to the linker.
llvm-svn: 157891
2012-06-02 16:28:09 +00:00
NAKAMURA Takumi
5c76f83106
Revert r157819, "#ifdef out a broken test on win32"
...
FYI, LLVM_ON_WIN32 is useless.
llvm-svn: 157890
2012-06-02 15:34:26 +00:00
NAKAMURA Takumi
4de31654bb
ToolInvocation::mapVirtualFile(): Tweak for Win32. Handle the key as native path.
...
llvm-svn: 157889
2012-06-02 15:34:21 +00:00
Simon Atanasyan
590ad8f515
MIPS: Factor out code selects the float ABI as determined by -msoft-float,
...
-mhard-float, and -mfloat-abi= to the new function getMipsFloatABI. That
simplifies reuse of this code.
llvm-svn: 157888
2012-06-02 15:06:29 +00:00
Stepan Dyatkovskiy
8a28bf5dd1
Added unittests for IntegersSubset and IntegersSubsetMapping.
...
- Fixed IntegersSubsetGeneric copy/assignment behaviour.
- Fixed IntegersSubsetGeneric::getSize/getSingleValue methods.
- Fixed IntegersSubsetGeneric::verify method.
Also IntegersSubset.h and IntegersSubsetMapping.h headers was fixed.
llvm-svn: 157887
2012-06-02 13:47:12 +00:00
Benjamin Kramer
474261af7b
Fix typos found by http://github.com/lyda/misspell-check
...
llvm-svn: 157886
2012-06-02 10:20:41 +00:00
Benjamin Kramer
bde9176663
Fix typos found by http://github.com/lyda/misspell-check
...
llvm-svn: 157885
2012-06-02 10:20:22 +00:00
Stepan Dyatkovskiy
0e46d8a08c
PR1255: case ranges.
...
IntRange converted from struct to class. So main change everywhere is replacement of ".Low/High" with ".getLow/getHigh()"
llvm-svn: 157884
2012-06-02 09:42:43 +00:00
Benjamin Kramer
539df9ef0a
Add move semantics to APInt.
...
llvm-svn: 157883
2012-06-02 08:39:08 +00:00
Stepan Dyatkovskiy
cab9603622
Additional change for 157881. Forget to fix another IntegerSubset constructor.
...
llvm-svn: 157882
2012-06-02 08:03:34 +00:00
Stepan Dyatkovskiy
f49b393c04
Small fix due to buildbot failures on mingw32. Fixed call of parent constructor for case when parent is template.
...
llvm-svn: 157881
2012-06-02 07:44:19 +00:00
Stepan Dyatkovskiy
9549f5894b
PR1255: case ranges.
...
IntegersSubsetGeneric, IntegersSubsetMapping: added IntTy template parameter, that allows use either APInt or IntItem. This change allows to write unittest for these classes.
llvm-svn: 157880
2012-06-02 07:26:00 +00:00
Johnny Chen
a539598f65
Properly initialize the member fields used for hardware watchpoint transaction management.
...
llvm-svn: 157878
2012-06-02 06:25:23 +00:00
Manman Ren
be10421c17
ARM: add testing case for struct byval
...
rdar://9877866
llvm-svn: 157876
2012-06-02 05:37:44 +00:00
Sean Callanan
8b0737fe28
Fixed a problem where detaching from a process
...
left a read-write lock dangling, causing crashes
in debug builds.
llvm-svn: 157875
2012-06-02 01:16:20 +00:00
Akira Hatanaka
27512b167b
Add another test case which tests Mips' unaligned load/store instructions.
...
llvm-svn: 157874
2012-06-02 01:13:10 +00:00
Akira Hatanaka
6f3b2a670f
Fix a bug in the code which custom-lowers truncating stores in LegalizeDAG.
...
Check that the SDValue TargetLowering::LowerOperation returns is not null
before replacing the original node with the returned node.
llvm-svn: 157873
2012-06-02 01:10:34 +00:00
Chris Lattner
58268c23ac
remove an unused variable.
...
llvm-svn: 157872
2012-06-02 01:03:42 +00:00