Adrian Prantl
cb6e1257ff
revert 199757 for buildbot breakage.
...
llvm-svn: 199758
2014-01-21 18:23:43 +00:00
Adrian Prantl
83788519a5
Debug info: use the file a typedef is defined in as its decl_file instead
...
of the current compilation unit.
As a side effect this enables many more LTO uniquing opportunities.
rdar://problem/15851206
llvm-svn: 199757
2014-01-21 18:20:52 +00:00
Chandler Carruth
f4144ad23a
Don't clobber CMAKE_REQUIRED_FLAGS, it ends up being used in
...
C compilations as well and these flags don't make any sense there.
llvm-svn: 199756
2014-01-21 18:09:19 +00:00
Alp Toker
3e2aa33532
Fix -Wsometimes-uninitialized in r199754
...
Also make the -m16 check x86-specific. Other archs may have a different take on
things.
llvm-svn: 199755
2014-01-21 18:01:01 +00:00
David Woodhouse
6996f6b9ec
Add -m16 option for using x86-*-*-code16 triple
...
llvm-svn: 199754
2014-01-21 17:19:44 +00:00
Amara Emerson
5569381aed
Fix VS2012 ID/version check.
...
llvm-svn: 199753
2014-01-21 16:41:07 +00:00
Rafael Espindola
79e2d936fd
Update for llvm api change.
...
llvm-svn: 199752
2014-01-21 16:09:55 +00:00
Rafael Espindola
23a9750c47
Rename these methods to match the style guide.
...
llvm-svn: 199751
2014-01-21 16:09:45 +00:00
Daniel Jasper
2158912a4e
clang-format: Enable formatting for .proto and .protodevel files.
...
Support for protocol buffer files seems complete enough.
llvm-svn: 199750
2014-01-21 15:40:01 +00:00
Daniel Sanders
0b385ac138
[mips][sched] Split IILoad into II_L[BHWD], II_L[BHW]U, II_L[WD][LR], and II_RESTORE
...
No functional change since the InstrItinData's have been duplicated.
llvm-svn: 199749
2014-01-21 15:21:14 +00:00
Daniel Sanders
3d345b11c8
[mips][sched] Split IIFmoveC1 into II_M[FT]C1, II_M[FT]HC1, II_DM[FT]C1
...
No functional change since the InstrItinData's have been duplicated.
llvm-svn: 199748
2014-01-21 15:03:52 +00:00
Daniel Sanders
bf8aa22902
[mips][sched] Split IIFStore into II_S[WD]C1, and II_S[WDU]XC1
...
No functional change since the InstrItinData's have been duplicated.
llvm-svn: 199747
2014-01-21 14:50:20 +00:00
Justin Holewinski
7706107e6f
[NVPTX] Add missing patterns for div.approx with immediate denominator
...
llvm-svn: 199746
2014-01-21 14:40:05 +00:00
Daniel Sanders
7741274534
[mips][sched] Split IIFLoad into II_L[WD]C1, and II_L[WDU]XC1
...
No functional change since the InstrItinData's have been duplicated.
llvm-svn: 199743
2014-01-21 13:59:56 +00:00
Daniel Sanders
7af732c915
[mips][sched] Removed IIFrecipFsqrtStep. No instructions use it.
...
llvm-svn: 199742
2014-01-21 13:45:41 +00:00
Daniel Sanders
3424067527
[mips][sched] Renamed II_FsqrtSingle and II_FsqrtDouble to II_SQRT_S and II_SQRT_D respectively
...
No functional change
llvm-svn: 199741
2014-01-21 13:36:45 +00:00
Tim Northover
d875d34171
Macho-embedded: fix tests after last rename
...
Very sorry, I managed to completely forget "make check".
llvm-svn: 199739
2014-01-21 13:23:09 +00:00
Daniel Sanders
072f60f0dc
[mips][sched] Renamed II_FdivSingle and II_FdivDouble to II_DIV_S and II_DIV_D respectively
...
No functional change
llvm-svn: 199738
2014-01-21 13:22:08 +00:00
Daniel Sanders
2ce72b061c
[mips][sched] Split IIFmulDouble into II_MUL_D, II_MADD_D, II_MSUB_D, II_NMADD_D, and II_NMSUB_S
...
No functional change since the InstrItinData's have been duplicated.
llvm-svn: 199737
2014-01-21 13:07:31 +00:00
Alexey Samsonov
8c03475f01
[Sanitizer] try harder to fix Werror build break after r199729
...
llvm-svn: 199736
2014-01-21 13:06:38 +00:00
Alexey Samsonov
39dbd7cc2c
[Sanitizer] Update file names now that we intercept both scanf and printf
...
llvm-svn: 199735
2014-01-21 13:01:20 +00:00
Daniel Sanders
47b4b6dd78
[mips][sched] Split IIFmulSingle into II_MUL_S, II_MADD_S, II_MSUB_S, II_NMADD_S, and II_NMSUB_S
...
No functional change since the InstrItinData's have been duplicated.
llvm-svn: 199734
2014-01-21 12:51:44 +00:00
Tim Northover
1a9b904b76
Macho-embedded: rename compiler-rt support from Darwin-embedded
...
There's nothing Darwin-based in the files or target now, so the previous name
is now misleading.
llvm-svn: 199733
2014-01-21 12:38:19 +00:00
Daniel Sanders
4bf6078841
[mips][sched] Split IIFadd into II_ADD_[DS], II_SUB_[DS]
...
No functional change since the InstrItinData's have been duplicated.
llvm-svn: 199732
2014-01-21 12:38:07 +00:00
Tim Northover
bea1cafde8
Macho-embedded: update build script for newer Clang behaviour.
...
Clang now uses the *-apple-macho triples for embedded targets using MachO. The
environment makes less pretences to be running an actual Mach kernel with all
the support that would imply, so a few changes are needed to the build scripts:
+ The Apple way of detecting endianness applies in all cases so drop the
__MACH__ test.
+ A quick rename since "darwin_embedded" no longer makes any sense. If there's
no Mach going on, there's certainly no Darwin.
+ Change how we test for support for a platform. The functions we build don't
need any SDK support (stdio.h, ...) so we don't need to check for it.
llvm-svn: 199731
2014-01-21 12:38:02 +00:00
Alexey Samsonov
20494ca293
Fix unused function warning from r199729
...
llvm-svn: 199730
2014-01-21 12:16:19 +00:00
Alexey Samsonov
00cd273c46
Sanitize printf functions.
...
Intercept and sanitize arguments passed to printf functions in ASan and TSan
(don't do this in MSan for now). The checks are controlled by runtime flag
(off by default for now).
Patch http://llvm-reviews.chandlerc.com/D2480 by Yuri Gribov!
llvm-svn: 199729
2014-01-21 11:58:33 +00:00
Daniel Sanders
b8013baf8f
[mips][sched] Split IIFcmp into II_C_CC_[SD]
...
No functional change since the InstrItinData's have been duplicated.
llvm-svn: 199728
2014-01-21 11:42:48 +00:00
Daniel Sanders
f5fb34137e
[mips][sched] Split IIFmove into II_C[FT]C1, II_MOV[FNTZ]_[SD], II_MOV_[SD]
...
No functional change since the InstrItinData's have been duplicated.
llvm-svn: 199727
2014-01-21 11:28:03 +00:00
Evgeniy Stepanov
e676aadecf
[asan] Enable frame pointer based unwinder on ARM.
...
This code works with AAPCS-style {fp, lr} frames. Unlike linux perf, it does
not unwind through code compiled with -mapcs-frame (which Clang does not
support anyway).
llvm-svn: 199725
2014-01-21 11:04:58 +00:00
Alexey Samsonov
0714b7b31b
[Sanitizer] Support %.*s in internal printf implementation. Patch by Yuri Gribov.
...
llvm-svn: 199724
2014-01-21 10:59:44 +00:00
Kostya Serebryany
9fcb4c4a6e
[asan] one more test for https://code.google.com/p/address-sanitizer/issues/detail?id=258
...
llvm-svn: 199723
2014-01-21 10:57:07 +00:00
Daniel Sanders
555f4c5672
[mips][sched] Split IIFcvt into II_(ROUND|TRUNC|CEIL|FLOOR|CVT), II_ABS, II_NEG
...
No functional change since the InstrItinData's have been duplicated.
llvm-svn: 199722
2014-01-21 10:56:23 +00:00
Daniel Sanders
298ad0f277
[mips][sched] Split IIslt into II_SLT_SLTU, II_SLTI_SLTIU
...
No functional change since the InstrItinData's have been duplicated.
llvm-svn: 199719
2014-01-21 10:42:13 +00:00
Tim Northover
228becf3de
MIPS: mark intrinsics IntrNoMem so all patterns using them are consistent.
...
This is apparently a bit of a white lie (they can affect DSPControl for
overflow etc) but similar to how we currently handle floating-point operations.
When it becomes relevant the whole lot can be reviewed properly.
llvm-svn: 199718
2014-01-21 10:41:16 +00:00
Renato Golin
e195f9ce15
Checked return warning from coverity
...
llvm-svn: 199716
2014-01-21 10:24:35 +00:00
Kostya Serebryany
4871067a55
[asan] relax the checks inside __sanitizer_annotate_contiguous_container: they are too optimistic due to https://code.google.com/p/address-sanitizer/issues/detail?id=258 .
...
llvm-svn: 199715
2014-01-21 09:53:49 +00:00
Evgeniy Stepanov
131585a6f5
Fix libstdc++4.7 test on Android.
...
llvm-svn: 199714
2014-01-21 09:00:30 +00:00
Daniel Jasper
7cfde414e1
clang-format: text following #if is likely an expression.
...
Before:
#if AAAA &&BBBB
After:
#if AAAA && BBBB
llvm-svn: 199713
2014-01-21 08:56:09 +00:00
Craig Topper
a2c60197bf
Use ArrayRef to simplify some code.
...
llvm-svn: 199712
2014-01-21 07:20:05 +00:00
Saleem Abdulrasool
b28cec4db0
tools: use 64-bit print specifier
...
Try to repair the ARM Cortex-A15 buildbot by using a more appropriate conversion
specifier.
llvm-svn: 199711
2014-01-21 04:31:29 +00:00
Nick Lewycky
36e9b3ccff
Neither attribute overloadable nor enable_if are supported by GCC. Disable the
...
GCC warning about attributes on function definitions for both of them.
llvm-svn: 199710
2014-01-21 04:31:12 +00:00
Rafael Espindola
e1bd71fea4
Use private linkage for utf-16 objc strings too.
...
llvm-svn: 199709
2014-01-21 02:57:56 +00:00
Saleem Abdulrasool
9f0a21efbb
tools: support decoding ARM EHABI opcodes in readobj
...
Add support to llvm-readobj to decode the actual opcodes. The ARM EHABI opcodes
are a variable length instruction set that describe the operations required for
properly unwinding stack frames.
The primary motivation for this change is to ease the creation of tests for the
ARM EHABI object emission as well as the unwinding directive handling in the ARM
IAS.
Thanks to Logan Chien for an extra test case!
llvm-svn: 199708
2014-01-21 02:33:15 +00:00
Saleem Abdulrasool
d9f086036a
ARM IAS: add support for .unwind_raw directive
...
This implements the unwind_raw directive for the ARM IAS. The unwind_raw
directive takes the form of a stack offset value followed by one or more bytes
representing the opcodes to be emitted. The opcode emitted will interpreted as
if it were assembled by the opcode assembler via the standard unwinding
directives.
Thanks to Logan Chien for an extra test!
llvm-svn: 199707
2014-01-21 02:33:10 +00:00
Saleem Abdulrasool
662f5c1a5a
ARM IAS: support .personalityindex
...
The .personalityindex directive is equivalent to the .personality directive with
the ARM EABI personality with the specific index (0, 1, 2). Both of these
directives indicate personality routines, so enhance the personality directive
handling to take into account personalityindex.
Bonus fix: flush the UnwindContext at the beginning of a new function.
Thanks to Logan Chien for additional tests!
llvm-svn: 199706
2014-01-21 02:33:02 +00:00
Rafael Espindola
6839d23be7
Now that r199688 avoids the real issue, use private linkage for objc strings.
...
llvm-svn: 199705
2014-01-21 01:50:12 +00:00
Kevin Qin
6d379abd8f
[AArch64 NEON] Fix a bug caused by undef lane when generating VEXT.
...
It was commited as r199628 but reverted in r199628 as causing
regression test failed. It's because of old vervsion of patch
I used to commit. Sorry for mistake.
llvm-svn: 199704
2014-01-21 01:48:52 +00:00
Nick Lewycky
d950ae74a3
Simplify expression, made possible by r199702.
...
llvm-svn: 199703
2014-01-21 01:30:30 +00:00
Nick Lewycky
47a79816b8
Add operator!= for FoldingSetNodeID and FoldingSetNodeIDRef. Implementation in
...
the header forwards to operator== which is not in the header.
llvm-svn: 199702
2014-01-21 01:29:37 +00:00