Akira Hatanaka
3ee0405231
Add a test case for mips64 unaligned load/store instructions.
...
llvm-svn: 157939
2012-06-04 17:57:06 +00:00
Akira Hatanaka
b964932e70
Rename test/CodeGen/Mips/load-shift-left-right.ll.
...
llvm-svn: 157938
2012-06-04 17:50:36 +00:00
Akira Hatanaka
6734685f21
Fix a bug in MipsTargetLowering::LowerLOAD. A shift-right-logical node is
...
inserted after the shift-left-logical node.
llvm-svn: 157937
2012-06-04 17:46:29 +00:00
Roman Divacky
e3f15c98d1
Implement local-exec TLS on PowerPC.
...
llvm-svn: 157935
2012-06-04 17:36:38 +00:00
Jordan Rose
4214f605f7
[diagtool] Properly order libraries in Makefile for buildbot.
...
llvm-svn: 157934
2012-06-04 17:21:14 +00:00
Jordan Rose
88bf06584b
Remove AST and Parse from Driver's dependencies.
...
llvm-svn: 157933
2012-06-04 16:57:53 +00:00
Jordan Rose
2fe20dca2a
[diagtool] Re-add show-enabled, minimizing the code pulled in from Frontend.
...
Now correctly builds with both GNU make and CMake.
llvm-svn: 157932
2012-06-04 16:57:50 +00:00
Alexey Samsonov
b6e4f3690b
[Sanitizer] Enable lint for sanitizer_common/
...
llvm-svn: 157931
2012-06-04 14:35:09 +00:00
Alexey Samsonov
2c5fc3bb11
Created files sanitizer_linux.cc and sanitizer_mac.cc for platform-specific implementations of common functions. Turned asan_mmap into __sanitizer::internal_mmap.
...
llvm-svn: 157930
2012-06-04 14:27:50 +00:00
Hans Wennborg
245917b536
MIPS TLS: use the model selected by TargetMachine::getTLSModel().
...
This was mostly done already in r156162, but I missed one place.
llvm-svn: 157929
2012-06-04 14:02:08 +00:00
Alexey Samsonov
3b2f9f4c98
Remove file-type tags in .cc files in tsan/ and sanitizer_common/
...
llvm-svn: 157928
2012-06-04 13:55:19 +00:00
Alexey Samsonov
485d3dc363
Remove file-type tags for .cc files in ASan run-time library
...
llvm-svn: 157927
2012-06-04 13:50:10 +00:00
Alexey Samsonov
90f9630c80
[Sanitizer]: move internal_strcmp to sanitizer_common
...
llvm-svn: 157926
2012-06-04 13:27:49 +00:00
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