Howard Hinnant
3b42bdd58a
Hyeon-Bin Jeong: readsome() need to reset gcount to zero. This fixes http://llvm.org/bugs/show_bug.cgi?id=14670 .
...
llvm-svn: 170703
2012-12-20 15:40:28 +00:00
Alexey Samsonov
19e8b7ecba
[ASan] remove duplicate entry in shadow byte legend
...
llvm-svn: 170701
2012-12-20 15:19:10 +00:00
Roman Divacky
ff95a1dc12
Remove MCTargetAsmLexer and its derived classes now that edis,
...
its only user, is gone.
llvm-svn: 170699
2012-12-20 14:43:30 +00:00
Alexey Samsonov
aef6b78bcb
[Sanitizer] Fix CMake build rules for sanitizer_common tests to respect universal static libraries on Mac
...
llvm-svn: 170698
2012-12-20 14:38:02 +00:00
Kostya Serebryany
c0d8ca5537
[asan] asan_allocator2: implement memalign
...
llvm-svn: 170697
2012-12-20 14:35:06 +00:00
Evgeniy Stepanov
e243708d6b
[*san] Create unittests output directory, if it does not exist.
...
llvm-svn: 170696
2012-12-20 14:34:09 +00:00
Dmitry Vyukov
7b838ada82
tsan: add cmake build and tests into presubmit script
...
llvm-svn: 170695
2012-12-20 14:10:27 +00:00
Renato Golin
6b2ea4a48f
Adding support for llvm.arm.neon.vaddl[su].* and
...
llvm.arm.neon.vsub[su].* intrinsics.
Patch by Pete Couperus <pjcoup@gmail.com>
llvm-svn: 170694
2012-12-20 13:52:11 +00:00
NAKAMURA Takumi
f827eb629d
c-index-test/Makefile: Add clangFormat to USEDLIBS for libclang-unavailable hosts.
...
llvm-svn: 170693
2012-12-20 13:30:10 +00:00
NAKAMURA Takumi
393bf4c3c8
c-index-test/Makefile: Reformat.
...
llvm-svn: 170692
2012-12-20 13:30:05 +00:00
Alexey Samsonov
01674dfc8f
[Sanitizer] Modify CMake build rules for sanitizer_common unit tests: build them with fresh Clang for both 32- and 64-bits (if possible)
...
llvm-svn: 170691
2012-12-20 13:24:21 +00:00
Alexander Potapenko
5e9e51874e
[ASan] Make the FileCheck pattern more c++filt-resistant.
...
This test didn't pass for me locally because of "T0's stack" being converted to "T0'short stack" by c++filt.
Strange enough this doesn't show up on our bots.
llvm-svn: 170690
2012-12-20 13:17:49 +00:00
Kostya Serebryany
54c6086e9c
[tsan] fix cmake build
...
llvm-svn: 170689
2012-12-20 12:26:09 +00:00
Alexander Kornienko
9bdeb11508
Minor coding style issue: NULL -> 0
...
llvm-svn: 170688
2012-12-20 12:23:54 +00:00
Kostya Serebryany
8627af3779
[asan] add memalign tests
...
llvm-svn: 170687
2012-12-20 12:11:52 +00:00
Evgeniy Stepanov
a8df444a1c
Add __has_feature(memory_sanitizer).
...
llvm-svn: 170686
2012-12-20 12:03:13 +00:00
Kostya Serebryany
9da3dd0415
[asan] add a flag poison_heap to allow better allocator benchmarking, implemenet malloc_stats() on Linux
...
llvm-svn: 170685
2012-12-20 11:54:21 +00:00
Alexander Kornienko
787f4c399f
ASTDumper coding style fixes.
...
http://llvm-reviews.chandlerc.com/D226
Patch by Philip Craig!
llvm-svn: 170684
2012-12-20 11:08:38 +00:00
NAKAMURA Takumi
712c3882f6
clang/test/Driver/warning-options.cpp: Appease MSYS bash.
...
llvm-svn: 170683
2012-12-20 11:08:13 +00:00
NAKAMURA Takumi
a1d528baa5
llvmbuild/main.py: Let LibraryDependencies.inc deterministic.
...
FYI, llvm and clang can be built deterministically between stage 2 and stage3, among iterative clean rebuilds, with GNU ar;
configure --disable-timestamps
make AR.Flags=crsD RANLIB=echo
llvm-svn: 170682
2012-12-20 10:35:18 +00:00
Dmitry Vyukov
d088b3b219
tsan: add java interface implementation stub
...
llvm-svn: 170681
2012-12-20 10:21:30 +00:00
Kostya Serebryany
ab8d33184d
[asan] asan_allocator2: make all remaining tests pass.
...
llvm-svn: 170680
2012-12-20 08:53:41 +00:00
Dmitry Vyukov
5a0761ed3c
tsan: add Java interface
...
llvm-svn: 170679
2012-12-20 07:47:04 +00:00
Kostya Serebryany
f855bbc2f3
[asan] add ASAN_PCRE_DOTALL to two new multi-line regexps
...
llvm-svn: 170677
2012-12-20 07:26:33 +00:00
Craig Topper
ae48cb2e5a
Formatting fixes. Remove some unnecessary 'else' after 'return'. No functional change.
...
llvm-svn: 170676
2012-12-20 07:15:54 +00:00
Craig Topper
9d4171afed
Removing trailing whitespace
...
llvm-svn: 170675
2012-12-20 07:09:41 +00:00
Reed Kotler
d11acc7dc0
Implement cfi_def_cfa_offset. "Make check" test case for this comming in the
...
next few days but it's already tested a lot from test-suite and works fine.
This patch completes almost 100% pass of test-suite for mips 16.
llvm-svn: 170674
2012-12-20 06:59:37 +00:00
Reed Kotler
8965d24a2a
There is one more patch to finish large frames. Make sure we assert
...
on code that has large frames which will not yet compile correctly.
llvm-svn: 170673
2012-12-20 06:57:00 +00:00
Jyotsna Verma
56605448f2
Add constant extender support to GP-relative load/store instructions.
...
llvm-svn: 170672
2012-12-20 06:52:46 +00:00
Jyotsna Verma
bf75aaf53e
Add TSFlags to ALU32 type instructions for constant-extender/Relationship maps.
...
llvm-svn: 170671
2012-12-20 06:45:39 +00:00
Alexey Samsonov
74cbc4ccd7
[ASan] don't use -fsanitize=address linker flag for unit tests on Android
...
llvm-svn: 170670
2012-12-20 06:16:50 +00:00
Reed Kotler
7bff8f1d7a
set register class properly for mips16 here
...
llvm-svn: 170669
2012-12-20 06:06:35 +00:00
Rafael Espindola
fb8ac2df09
Undefine PPC harder.
...
This was causing a build failure while trying to build on ppc ubuntu 12.10 with
cmake.
llvm-svn: 170668
2012-12-20 05:13:09 +00:00
Reed Kotler
92fc33bc97
This assert is overly restrictive and does not work for mips16.
...
llvm-svn: 170667
2012-12-20 05:09:15 +00:00
Richard Smith
64e25ce53d
Move C++ name demangling support from ubsan into sanitizer_common.
...
llvm-svn: 170666
2012-12-20 05:00:13 +00:00
Reed Kotler
fd633229f7
Turn on register scavenger for Mips 16
...
We use an unused Mips 32 register for the emergency slot
instead of using the stack.
llvm-svn: 170665
2012-12-20 04:44:58 +00:00
Akira Hatanaka
e7f1acc7c0
[mips] Refactor SLT (set on less than) instructions. Separate encoding
...
information from the rest.
llvm-svn: 170664
2012-12-20 04:27:52 +00:00
Akira Hatanaka
bbd197e9c4
[mips] Refactor unconditional branch instruction. Separate encoding information
...
from the rest.
llvm-svn: 170663
2012-12-20 04:22:39 +00:00
Richard Smith
e3fbbccc0f
Implement std::is_base_of for the case where we don't have a compiler
...
intrinsic. This relies upon the fact that overload resolution does not check
access and ambiguity for a derived-to-base conversion. This passes all
is_base_of tests in the test suite.
llvm-svn: 170662
2012-12-20 04:20:28 +00:00
Akira Hatanaka
b1527b7505
[mips] Remove asm string parameter from pseudo instructions. Add InstrItinClass
...
parameter.
llvm-svn: 170661
2012-12-20 04:20:09 +00:00
Akira Hatanaka
14f9ce0f83
[mips] Delete definition of CPRESTORE instruction.
...
llvm-svn: 170660
2012-12-20 04:15:30 +00:00
Akira Hatanaka
c0ea0bb99b
[mips] Refactor conditional branch instructions with one register operand.
...
Separate encoding information from the rest.
llvm-svn: 170659
2012-12-20 04:13:23 +00:00
Richard Smith
4a8e454ab2
Don't use isa<CallInst>(this) in the constructor for CallInst's base class.
...
This has undefined behavior, because the classof implementation attempts to
access parts of the not-yet-constructed derived class. Found by clang
-fsanitize=vptr.
llvm-svn: 170658
2012-12-20 04:11:02 +00:00
Akira Hatanaka
f71ffd29d9
[mips] Refactor conditional branch instructions with two register operands.
...
Separate encoding information from the rest.
llvm-svn: 170657
2012-12-20 04:10:13 +00:00
Reed Kotler
d019dbf75e
fix most of remaining issues with large frames.
...
these patches are tested a lot by test-suite but
make check tests are forthcoming once the next
few patches that complete this are committed.
with the next few patches the pass rate for mips16 is
near 100%
llvm-svn: 170656
2012-12-20 04:07:42 +00:00
Akira Hatanaka
f423672117
[mips] Use "or $r0, $r1, $zero" instead of "addu $r0, $zero, $r1" to copy
...
physical register $r1 to $r0.
GNU disassembler recognizes an "or" instruction as a "move", and this change
makes the disassembled code easier to read.
Original patch by Reed Kotler.
llvm-svn: 170655
2012-12-20 04:06:06 +00:00
Richard Smith
15b1e3727b
Fix use-before-construction of X86TargetLowering.
...
llvm-svn: 170654
2012-12-20 04:04:17 +00:00
Richard Smith
e7701ebfec
Don't use -1 as a value of an unsigned 7-bit enumeration; that has undefined
...
behavior and violates the !range constraints we put on loads of this enum.
Found by clang -fsanitize=enum.
llvm-svn: 170653
2012-12-20 04:02:58 +00:00
Richard Smith
3287fac591
Don't leave IsUnsigned uninitialized in a default-constructed APSInt. Copying
...
such a structure has undefined behavior. Caught by -fsanitize=bool.
llvm-svn: 170652
2012-12-20 03:59:24 +00:00
Akira Hatanaka
7d75f9e3d3
[mips] Change the order of template parameters. Move the default parameters to
...
the end.
llvm-svn: 170651
2012-12-20 03:52:08 +00:00