Roman Divacky
a229186a82
Remove duplicate includes.
...
llvm-svn: 170902
2012-12-21 17:06:44 +00:00
Tom Stellard
a8b0351720
R600: Expand vec4 INT <-> FP conversions
...
llvm-svn: 170901
2012-12-21 16:33:24 +00:00
Kostya Serebryany
fe80f080ee
[asan] asan_allocator2 fix two asserts that happen on full chrome: a) memalign called with 0 size and large alignment and b) malloc called after TSD has been destructed
...
llvm-svn: 170900
2012-12-21 14:54:46 +00:00
Daniel Jasper
fbde69e266
Basic support for formatting for-loops.
...
We used to not really format them. Now we do:
for (MachineBasicBlock::succ_iterator SI = BB->succ_begin(),
SE = BB->succ_end();
SI != SE; ++SI) {
This is just one example and I am sure we still mess some of them up, but it
is a step forward.
llvm-svn: 170899
2012-12-21 14:37:20 +00:00
Benjamin Kramer
4669d18893
X86: Match the SSE/AVX min/max vector ops using a custom node instead of intrinsics
...
This is very mechanical, no functionality change. Preparation for PR14667.
llvm-svn: 170898
2012-12-21 14:04:55 +00:00
Alexey Samsonov
e30a84f08f
[Sanitizer] CMake build rules for unittests: depend on headers when compiling a file with custom clang.
...
llvm-svn: 170897
2012-12-21 14:04:52 +00:00
Dmitry Vyukov
b3bf5651bd
tsan: add java malloc stress test
...
llvm-svn: 170896
2012-12-21 13:40:27 +00:00
Kostya Serebryany
a1e29adab5
[sanitizer] mmap less on every size class to make the allocator more friendly to small programs
...
llvm-svn: 170895
2012-12-21 13:38:05 +00:00
Dmitry Vyukov
c23b218520
tsan: add java rwlock test
...
llvm-svn: 170894
2012-12-21 13:31:07 +00:00
Dmitry Vyukov
c55ed2f538
tsan: add a test for java memory move
...
llvm-svn: 170893
2012-12-21 13:28:39 +00:00
Dmitry Vyukov
e6b51986bb
tsan: move common part of java tests into a separate header
...
llvm-svn: 170892
2012-12-21 13:26:10 +00:00
Dmitry Vyukov
a33bf2701e
tsan: fix Java memory move operations and add the test
...
llvm-svn: 170891
2012-12-21 13:23:48 +00:00
Rafael Espindola
92e37d31e7
Update comments.
...
llvm-svn: 170890
2012-12-21 13:22:55 +00:00
Dmitry Vyukov
fe817bdb88
tsan: less debug output
...
llvm-svn: 170889
2012-12-21 12:30:52 +00:00
Kostya Serebryany
3cc719fdf9
[asan] asan_allocator2: better memory stats
...
llvm-svn: 170888
2012-12-21 12:26:31 +00:00
Daniel Jasper
0ca819410d
Temporary fix of tests to make buildbots happy.
...
Permanent solution coming up after checking back with Fariborz/Douglas.
llvm-svn: 170887
2012-12-21 12:10:20 +00:00
Duncan Sands
0ac8473db0
Test that a landingpad gets the name provided when it was created (see commit
...
170318).
llvm-svn: 170886
2012-12-21 12:03:03 +00:00
Dmitry Vyukov
58e617121d
tsan: update mutex lock table for java
...
llvm-svn: 170885
2012-12-21 11:30:41 +00:00
Dmitry Vyukov
22be55e47e
tsan: update mutex table for java
...
llvm-svn: 170884
2012-12-21 11:30:14 +00:00
Evgeniy Stepanov
4fbc0d08bf
[msan] Remove unreachable blocks before instrumenting a function.
...
llvm-svn: 170883
2012-12-21 11:18:49 +00:00
Dmitry Vyukov
a5b57100d4
tsan: java: move shadow memory on GC compaction
...
llvm-svn: 170882
2012-12-21 11:16:40 +00:00
Dmitry Vyukov
bed53cfc12
tsan: add a high-level comment to tsan_interface_java.h
...
llvm-svn: 170881
2012-12-21 10:57:59 +00:00
Evgeniy Stepanov
acef0e66a6
Slight rewording of -fsanitize=memory docs.
...
llvm-svn: 170880
2012-12-21 10:53:20 +00:00
Evgeniy Stepanov
17d5590003
User manual chapter on MemorySanitizer.
...
llvm-svn: 170879
2012-12-21 10:50:00 +00:00
Alexander Potapenko
47a03a2ebe
[ASan] Fix another FileCheck pattern to be c++filt-proof.
...
llvm-svn: 170878
2012-12-21 10:48:30 +00:00
Dmitry Vyukov
11bb06039a
tsan: fix lint warnings
...
llvm-svn: 170877
2012-12-21 10:47:48 +00:00
Dmitry Vyukov
1859251df8
tsan: disable checks for limited address space and unlimited stack for Go
...
llvm-svn: 170876
2012-12-21 10:45:01 +00:00
Daniel Jasper
ab7654e894
Use OperatorPrecedence.h in clang-format
...
No indented functional changes other than handling more operators
correctly.
llvm-svn: 170875
2012-12-21 10:20:02 +00:00
Daniel Jasper
8dd404737b
Formatting fixes for PR14680
...
Also, some (automated) formatting fixes and slight cleanups.
llvm-svn: 170873
2012-12-21 09:41:31 +00:00
Alexey Samsonov
53a965e125
[Sanitizer] Don't implicitly add object files to the list of dependencies when building compiler_rt unittests. Fix sanitizer_common and asan build rules accordingly. This also fixes check-sanitizer command on Ninja.
...
llvm-svn: 170870
2012-12-21 08:56:14 +00:00
Kostya Serebryany
3674c6b13b
[asan] add a flag alloc_dealloc_mismatch (off by default for now) which finds malloc/delete, new/free, new/delete[], etc mismatches
...
llvm-svn: 170869
2012-12-21 08:53:59 +00:00
Dmitry Vyukov
42de108861
Remove the working that ThreadSanitizer is *experimental*.
...
llvm-svn: 170868
2012-12-21 08:21:25 +00:00
Richard Smith
38a549bc42
Fix regression in r170489: when instantiating a direct initializer which is a
...
CXXScalarValueInitExpr (or an ImplicitValueInitExpr), strip it back down to an
empty pair of parentheses so that the initialization code can tell that we're
performing value-initialization.
llvm-svn: 170867
2012-12-21 08:13:35 +00:00
Dmitry Vyukov
1fbe87d0c9
tsan: add lit test with statically linker libstdc++
...
llvm-svn: 170866
2012-12-21 08:08:19 +00:00
Ted Kremenek
9304da9578
Extend checkUnsafeAssigns() to also handle assigning an object literal to a weak reference.
...
Thanks to Jordan Rose and John McCall for their sage code review.
Fixes <rdar://problem/12569201>.
llvm-svn: 170864
2012-12-21 08:04:28 +00:00
Ted Kremenek
b36234deca
Refactor checkUnsafeAssigns() to avoid code duplication with while loop.
...
This is just a minor bit of refactoring, but it is nice cleanup for
the subsequent patch that adds warning support for assigning literals
to weak variables.
llvm-svn: 170863
2012-12-21 08:04:20 +00:00
Sebastian Pop
ab9ea13f64
avoid initializing twice
...
llvm-svn: 170854
2012-12-21 07:27:17 +00:00
Sebastian Pop
eb283143e2
do not access Info when it is NULL
...
llvm-svn: 170853
2012-12-21 07:27:13 +00:00
Dmitry Vyukov
47a5ad0348
tsan: use clang in cmake build + add -Werror
...
llvm-svn: 170844
2012-12-21 06:30:27 +00:00
Richard Relph
27cfe1c1b5
Clean up some warnings that become errors. Seen in Xcode.
...
llvm-svn: 170843
2012-12-21 05:17:13 +00:00
Nadav Rotem
eacbb731d3
Add a missing "virtual" keyword.
...
llvm-svn: 170842
2012-12-21 05:02:12 +00:00
Nadav Rotem
3b850b70b3
Enable if-conversion.
...
llvm-svn: 170841
2012-12-21 04:47:54 +00:00
Quentin Colombet
b1b66e7a25
Add ARM cortex-r5 subtarget.
...
llvm-svn: 170840
2012-12-21 04:35:05 +00:00
Rafael Espindola
73bf9fa7ba
Don't skip __DWARF,
...
Now that we don't merge section and segment names, we don't need to skip the
segment name to get to the section name.
llvm-svn: 170839
2012-12-21 04:08:03 +00:00
Rafael Espindola
a9f810b6b5
Add a function to get the segment name of a section.
...
On MachO, sections also have segment names. When a tool looking at a .o file
prints a segment name, this is what they mean. In reality, a .o has only one
anonymous, segment.
This patch adds a MachO only function to fetch that segment name. I named it
getSectionFinalSegmentName since the main use for the name seems to be inform
the linker with segment this section should go to.
The patch also changes MachOObjectFile::getSectionName to return just the
section name instead of computing SegmentName,SectionName.
The main difference from the previous patch is that it doesn't use
InMemoryStruct. It is extremely dangerous: if the endians match it returns
a pointer to the file buffer, if not, it returns a pointer to an internal buffer
that is overwritten in the next API call.
We should change all of this code to use
support::detail::packed_endian_specific_integral like ELF, but since these
functions only handle strings, they work with big and little endian machines
as is.
I have tested this by installing ubuntu 12.10 ppc on qemu, that is why it took
so long :-)
llvm-svn: 170838
2012-12-21 03:47:03 +00:00
Richard Smith
d82a2ce3a0
Reinstate r170806, reverted in r170835, with a fix use i1 instead of i8 for a value-initialized bool!
...
llvm-svn: 170837
2012-12-21 03:17:28 +00:00
Evan Cheng
59421aee3d
Add targets to skip running the GC passes.
...
llvm-svn: 170836
2012-12-21 02:57:04 +00:00
NAKAMURA Takumi
3df909d030
Revert r170806, "Fix some bugs where we would sometimes use 0, not -1, when emitting a null constant of type pointer-to-data-member."
...
It broke stage2.
llvm-svn: 170835
2012-12-21 02:50:38 +00:00
Argyrios Kyrtzidis
d4635d4865
[libclang] Follow-up to r170824, provide the correct number of arguments for
...
a not-fully-formed macro invocation during code-completion.
llvm-svn: 170833
2012-12-21 01:51:12 +00:00
Anna Zaks
9747febba9
[analyzer] Address Jordan's nitpicks as per code review of r170625.
...
llvm-svn: 170832
2012-12-21 01:50:14 +00:00