Alexey Samsonov
40d5b772e5
[Sanitizer] Switch to common mmap/munmap routines in ASan run-time.
...
llvm-svn: 158078
2012-06-06 16:15:07 +00:00
Alexey Samsonov
e95e29c2ac
[Sanitizer] Make UNIMPLEMENTED macro common.
...
llvm-svn: 158077
2012-06-06 15:47:40 +00:00
Kostya Serebryany
00e22d2b2c
[asan] more compaction for allocator
...
llvm-svn: 158076
2012-06-06 15:30:55 +00:00
Alexey Samsonov
e428779dbf
[Sanitizer] Use common CHECK machinery. Currently each tool has to define its own CheckFailed function.
...
llvm-svn: 158075
2012-06-06 15:22:20 +00:00
Kostya Serebryany
79437fe376
[asan] make tid u32 instead of int
...
llvm-svn: 158074
2012-06-06 15:06:58 +00:00
Duncan Sands
763da45e9e
Grab-bag of reassociate tweaks. Unify handling of dead instructions and
...
instructions to reoptimize. Exploit this to more systematically eliminate
dead instructions (this isn't very useful in practice but is convenient for
analysing some testcase I am working on). No need for WeakVH any more: use
an AssertingVH instead.
llvm-svn: 158073
2012-06-06 14:53:10 +00:00
Kostya Serebryany
53b74ac256
[asan] start compacting the allocator header, the goal is to make it 16 bytes w/o losing any information
...
llvm-svn: 158072
2012-06-06 14:46:38 +00:00
Kostya Serebryany
64166ca86b
[tsan,asan] comment out O_CLOEXEC as it causes build failures on old linux kernels
...
llvm-svn: 158071
2012-06-06 14:11:31 +00:00
Alexey Samsonov
d323f4e78e
[Sanitizer] Remove __attribute__((format))
...
llvm-svn: 158070
2012-06-06 13:58:39 +00:00
Benjamin Kramer
3de5d40f4d
Stop leaking RegScavengers from TailDuplication.
...
llvm-svn: 158069
2012-06-06 13:53:41 +00:00
Alexey Samsonov
d44cb4cb8a
[ASan] match type of arguments to format string on Mac.
...
llvm-svn: 158068
2012-06-06 13:44:19 +00:00
Alexey Samsonov
8bafdd020e
[Sanitizer] fix Win build - ignore __attribute__((format)).
...
llvm-svn: 158067
2012-06-06 13:37:02 +00:00
Alexey Samsonov
51ae983718
[Sanitizer]: Introduce a common internal printf function. For now, also use tool-specific wrappers TsanPrintf (its output is controlled by TSan flags) and AsanPrintf (which copies its results to the ASan-private buffer). Supported formats: %[z]{d,u,x}, %s, %p. Re-write all format strings in TSan according to this format (this should have no effect on 64-bit platforms).
...
llvm-svn: 158065
2012-06-06 13:11:29 +00:00
Tobias Grosser
88aeaf6ac4
Detect the cuda library available.
...
We will use the cuda library for the upcoming automatic GPGPU code generation.
Contributed by: Yabin Hu <yabin.hwu@gmail.com>
llvm-svn: 158064
2012-06-06 12:16:10 +00:00
Francois Pichet
b27ea02784
Zap the /Za compiler switch from MSVC projects, the option is considered harmful even by Microsoft people and clang won't build using the MSVC 2012 RC if not removed.
...
Only 1 minor code change was necessary: can't use cdecl as variable name anymore.
llvm-svn: 158063
2012-06-06 12:00:10 +00:00
Alexey Samsonov
cd96c44dce
[ASan] more format fixes
...
llvm-svn: 158060
2012-06-06 10:54:25 +00:00
Alexey Samsonov
461820ad67
[ASan] Make printf arguments match format strings better.
...
llvm-svn: 158059
2012-06-06 10:46:00 +00:00
Alexey Samsonov
ac4c290d02
[TSan] run some renaming as a preparation for factoring out Printf implementation.
...
llvm-svn: 158058
2012-06-06 10:13:27 +00:00
Alexey Samsonov
201aa367fc
[ASan] fix win build - add missing header
...
llvm-svn: 158057
2012-06-06 09:43:32 +00:00
Alexey Samsonov
ee07290628
[Sanitizer] Move more functions/constants to sanitizer_common.
...
llvm-svn: 158056
2012-06-06 09:26:25 +00:00
Richard Barton
f1ef87ddbb
Correct decoder for T1 conditional B encoding
...
llvm-svn: 158055
2012-06-06 09:12:53 +00:00
Daniel Jasper
0baec549a3
Introduce -Wunused-private-field. If enabled, this warning detects
...
unused private fields of classes that are fully defined in the current
translation unit.
llvm-svn: 158054
2012-06-06 08:32:04 +00:00
Duncan Sands
1f5d109918
Add a new broken compiler.
...
llvm-svn: 158053
2012-06-06 07:39:39 +00:00
Alexey Samsonov
ca2b5d7abb
[Sanitizer] move internal_filesize and internal_dup2 from TSan to sanitizer_common.
...
llvm-svn: 158052
2012-06-06 07:30:33 +00:00
Alexey Samsonov
c4b201308b
[ASan] Use __sanitizer::Die() in ASan runtime.
...
llvm-svn: 158051
2012-06-06 07:02:44 +00:00
Alexey Samsonov
bc3a7e3fe2
[Sanitizer] add sanitizer_common.h for routines shared between TSan and ASan runtimes. Use __sanitizer::Die() in TSan.
...
llvm-svn: 158050
2012-06-06 06:47:26 +00:00
Craig Topper
bf2409e8aa
Mark several instructions SSE2 instead of SSE3 as they should be.
...
llvm-svn: 158049
2012-06-06 06:45:27 +00:00
Ted Kremenek
f470a4c2ca
Disable path pruning for UndefResultChecker. It turns out we usually want to see more of the path
...
to discover how a value was used uninitialized.
llvm-svn: 158048
2012-06-06 06:25:37 +00:00
Alexey Samsonov
7fca5ccdae
[ASan] fix GetFreeBytesTest interface test on 32-bit Linux - delete some assumptions about the behavior of allocator in test code
...
llvm-svn: 158047
2012-06-06 06:02:05 +00:00
Justin Holewinski
6fa89b7a06
Fix gtest build issue on Visual Studio 2012 RC
...
llvm-svn: 158046
2012-06-06 03:11:20 +00:00
Chad Rosier
280e5df2ac
Remove extraneous CHECK-NOTs from previous commit and add a new test case.
...
llvm-svn: 158045
2012-06-06 02:12:17 +00:00
Chad Rosier
1de1b54e72
FileCheckize this test.
...
llvm-svn: 158044
2012-06-06 01:38:32 +00:00
Jim Ingham
babfc38abc
Fix a place in GDBRemoteCommunicationClient::SendContinuePacketAndWaitForReply where we weren't taking
...
m_interrupt_sent into account. Also don't reset m_interrupt_sent in SendInterrupt but do so in SendPacketAndWaitForResponse
when we know we've handled the interrupt.
Fix a code path through ProcessGDBRemote::DoDestroy where we were tearing down the debug session but
not setting the exit status.
llvm-svn: 158043
2012-06-06 00:32:39 +00:00
Jim Ingham
aacc31813e
Make sure that when if we are going to Halt while the process is in the middle of HandlePrivateEvent we
...
wait till that is done. We need a stronger way to do this, but in practice this works and using some locking
strategy is harder because Halt & HandlePrivateEvent generally happen on different threads.
llvm-svn: 158042
2012-06-06 00:29:30 +00:00
Jakob Stoklund Olesen
c141ba584e
Move LiveUnionArray into LiveIntervalUnion.h
...
It is useful outside RegAllocBase.
llvm-svn: 158041
2012-06-05 23:57:30 +00:00
Douglas Gregor
c65e1598ad
A non-explicit constructor template with a second parameter that is a
...
parameter pack is a converting constructor. Fixes PR13003.
llvm-svn: 158040
2012-06-05 23:44:51 +00:00
Johnny Chen
c4392d2ad0
rdar://problem/11598332
...
The output of 'register read' should be prettier.
Modify RegisterValue::Dump() to take an additional parameter:
uint32_t reg_name_right_align_at
which defaults to 0 (i.e., no alignment at all). Update the 'register read' command impl to pass 8
as the alignment to RegisterValue::Dump() method. If more sophisticated scheme is desired, we will
need to introduce an additional command option to 'register read' later on.
llvm-svn: 158039
2012-06-05 23:25:10 +00:00
Jakob Stoklund Olesen
46d229c573
Don't print register names in LiveIntervalUnion::print().
...
Soon we'll be making LiveIntervalUnions for register units as well.
This was the only place using the RepReg member, so just remove it.
llvm-svn: 158038
2012-06-05 23:07:19 +00:00
Matt Beaumont-Gay
7ba769bedd
Suppress -Wunused-variable in -Asserts build
...
llvm-svn: 158037
2012-06-05 23:00:03 +00:00
Jim Ingham
41ec0f9018
Whitespace cleanup.
...
llvm-svn: 158032
2012-06-05 22:53:34 +00:00
Jakob Stoklund Olesen
f3f7d6f6e2
Simplify LiveInterval::print().
...
Don't print out the register number and spill weight, making the TRI
argument unnecessary.
This allows callers to interpret the reg field. It can currently be a
virtual register, a physical register, a spill slot, or a register unit.
llvm-svn: 158031
2012-06-05 22:51:54 +00:00
Jakob Stoklund Olesen
12e03dae44
Add experimental support for register unit liveness.
...
Instead of computing a live interval per physreg, LiveIntervals can
compute live intervals per register unit. This makes impossible the
confusing situation where aliasing registers could have overlapping live
intervals. It should also make fixed interferernce checking cheaper
since registers have fewer register units than aliases.
Live intervals for regunits are computed on demand, using MRI use-def
chains and the new LiveRangeCalc class. Only regunits live in to ABI
blocks are precomputed during LiveIntervals::runOnMachineFunction().
The regunit liveness computations don't depend on LiveVariables.
llvm-svn: 158029
2012-06-05 22:02:15 +00:00
Ted Kremenek
54baf2e57d
PlistDiagnostics: force the ranges for control-flow edges to be single locations, forcing
...
adjacent edges to have compatible ranges. This simplifies the layout logic for some clients.
llvm-svn: 158028
2012-06-05 22:00:52 +00:00
Jakob Stoklund Olesen
989b3b1516
Implement LiveRangeCalc::extendToUses() and createDeadDefs().
...
These LiveRangeCalc methods are to be used when computing a live range
from scratch.
llvm-svn: 158027
2012-06-05 21:54:09 +00:00
Andrew Trick
4b037005d2
MachineInstr::eraseFromParent fix for removing bundled instrs.
...
Patch by Ivan Llopard.
llvm-svn: 158025
2012-06-05 21:44:23 +00:00
Greg Clayton
8ae50eb4a6
<rdar://problem/11597333>
...
Fixed an issue where LLDB would use armv7-apple-unknown even though armv7-unknown-unknown was specified with the target create command:
(lldb) target create -a armv7-unknown-unknown <executable>
llvm-svn: 158023
2012-06-05 21:17:09 +00:00
Fariborz Jahanian
3da28f80e3
objective-c: merge deprecated/unavailable attributes to
...
the overriding deprecated/unavailable method.
// rdar://11475360
llvm-svn: 158022
2012-06-05 21:14:46 +00:00
Andrew Trick
4544606c71
misched: API for minimum vs. expected latency.
...
Minimum latency determines per-cycle scheduling groups.
Expected latency determines critical path and cost.
llvm-svn: 158021
2012-06-05 21:11:27 +00:00
Benjamin Kramer
21b8ad0560
Add 3.0 and 3.1 tags to the getting started guide.
...
llvm-svn: 158020
2012-06-05 20:35:50 +00:00
Manuel Klimek
ee56b541d8
Fixes the refactoring library test in VS2010.
...
llvm-svn: 158019
2012-06-05 20:16:30 +00:00