Evgeniy Stepanov
8f247016bd
Use zero-based shadow by default on Android.
...
llvm-svn: 157318
2012-05-23 11:52:37 +00:00
Evgeniy Stepanov
617232f32b
Use zero-based shadow by default on Android.
...
llvm-svn: 157317
2012-05-23 11:52:12 +00:00
Stepan Dyatkovskiy
7a50155227
PR1255(case ranges) related changes in Local Transformations.
...
llvm-svn: 157315
2012-05-23 08:18:26 +00:00
Dmitry Vyukov
4a17675888
asan: fix typo in comment
...
llvm-svn: 157314
2012-05-23 06:14:21 +00:00
Craig Topper
a4fd6d655a
Tidy up spacing.
...
llvm-svn: 157313
2012-05-23 05:44:51 +00:00
Chris Lattner
4f18aa8f04
small refinement to r157218 to save a tiny amount of table size in the common
...
case.
llvm-svn: 157312
2012-05-23 05:19:18 +00:00
Richard Smith
47ad017191
Correct the starting location for instantiations of field declarations which
...
start with a cv-qualifier. DeclaratorDecl::getTypeSpecStartLoc() does not
produce the location of the first type-specifier (the cv-qualifier) in this
case, because we don't track source locations for cv-qualifiers.
No test here: I've not found a way to test this with a lit-style test, and
introducing a gtest test for this seems unwarranted. Suggestions welcome!
Patch by Daniel Jasper!
llvm-svn: 157311
2012-05-23 04:22:22 +00:00
Richard Smith
01ade177e9
If the first argument of __builtin_object_size can be folded to a constant
...
pointer, but such folding encounters side-effects, ignore the side-effects
rather than performing them at runtime: CodeGen generates wrong code for
__builtin_object_size in that case.
llvm-svn: 157310
2012-05-23 04:13:20 +00:00
Craig Topper
9fc5c814fa
Fix indentation of wrapped line for readability. No functional change.
...
llvm-svn: 157309
2012-05-23 03:59:53 +00:00
Richard Smith
607d631d64
Clang 3.1 is out: turn the relevant C++11 status boxes green.
...
llvm-svn: 157308
2012-05-23 01:38:11 +00:00
Eric Christopher
9cc59f66ad
Move file to be more representative.
...
llvm-svn: 157306
2012-05-23 00:18:46 +00:00
Eric Christopher
41f556b709
Check that we have an unknown upper bound range for our flexible array members.
...
llvm-svn: 157305
2012-05-23 00:18:43 +00:00
Eric Christopher
a91af14b8d
Emit C++11 enum class information if it exists.
...
Part of rdar://11496790
llvm-svn: 157304
2012-05-23 00:09:47 +00:00
Eric Christopher
c49643586b
Add support for C++11 enum classes in llvm.
...
Part of rdar://11496790
llvm-svn: 157303
2012-05-23 00:09:20 +00:00
Johnny Chen
ebffd2e7fd
Add more convenience registers to x86_64 and a simple test scenario:
...
self.expect("expr -- $ax == (($ah << 8) | $al)",
substrs = ['true'])
llvm-svn: 157302
2012-05-22 23:32:12 +00:00
Nuno Lopes
59e9df773a
address some of John Criswell's comments
...
teach computeAllocSize about realloc, reallocf, and valloc
llvm-svn: 157298
2012-05-22 22:02:19 +00:00
NAKAMURA Takumi
70c1aa0bb5
ARMDisassembler.cpp: Fix utf8 char in comments.
...
llvm-svn: 157292
2012-05-22 21:47:02 +00:00
Sean Callanan
8b1e432113
Integrated a fix for an ARM disassembler crash
...
(0xd 0xd 0xa0 0xf4, or "vld2hs.8 {d0[], d1[]}, [r0]!")
llvm-svn: 157289
2012-05-22 21:42:43 +00:00
John McCall
8d32c05ed4
Recognize the MS inheritance attributes and turn them into attributes
...
on the RecordDecl. Persist the MS portability type attributes and
ignore them in Sema rather than the parser.
Patch by João Matos!
llvm-svn: 157288
2012-05-22 21:28:12 +00:00
John McCall
fa6cf4cc9a
Fix line endings.
...
llvm-svn: 157287
2012-05-22 21:28:07 +00:00
Johnny Chen
6c26f0b2a7
Fix a typo.
...
llvm-svn: 157278
2012-05-22 19:41:53 +00:00
Johnny Chen
819b35daf7
Add a test case to check that eax's content equals the lower half of rax.
...
Plus fix the test class name as well as wrong directory path.
llvm-svn: 157277
2012-05-22 19:37:01 +00:00
Johnny Chen
b42b05e6de
The RegisterInfo descriptors for the convenience registers can specify an offset to be added to the offset as derived from
...
the value_regs field, which is useful for future expansion purposes. As of now, we have:
calculated_offset_of_eax = offset_of_rax + (offset_of_eax_from_the_descriptor which is 0)
llvm-svn: 157275
2012-05-22 18:59:38 +00:00
Eric Christopher
d42b92f5c3
Untabify and 80-col.
...
llvm-svn: 157274
2012-05-22 18:45:24 +00:00
Eric Christopher
775cbd2b47
Formatting consistency.
...
llvm-svn: 157273
2012-05-22 18:45:18 +00:00
Johnny Chen
377c63da9e
Fix wrong offset of eax and friends pointed out by Greg.
...
rdar://problem/11487457
llvm-svn: 157272
2012-05-22 18:34:18 +00:00
Jakob Stoklund Olesen
eebd5bc646
Also compute TopoSigs in synthetic register classes.
...
CodeGenRegisterClass has two constructors. Both need to compute the
TopoSigs BitVector.
llvm-svn: 157271
2012-05-22 18:20:28 +00:00
Dmitry Vyukov
302cebb8f1
tsan: add shadow memory flush + fix few bugs
...
llvm-svn: 157270
2012-05-22 18:07:45 +00:00
Eric Christopher
8b3304da56
Test that we emit a subrange type for vlas.
...
Part of rdar://11457152
llvm-svn: 157269
2012-05-22 18:04:48 +00:00
Dmitry Vyukov
011a363c85
tsan: fix sizeof sigset_t
...
llvm-svn: 157268
2012-05-22 18:01:33 +00:00
Manuel Klimek
d9c79e753b
Fixes the autoconf build.
...
llvm-svn: 157266
2012-05-22 17:45:33 +00:00
Nuno Lopes
eee43e1bc7
hopefully fix the CMake build. sorry for breakage
...
llvm-svn: 157264
2012-05-22 17:40:46 +00:00
Andrew Trick
a7a3de1bcf
LSR fix: add a missing phi check during IV hoisting.
...
Fixes PR12898: SCEVExpander crash.
llvm-svn: 157263
2012-05-22 17:39:59 +00:00
Nuno Lopes
a425589fea
wire -fbounds-checking to the new LLVM bounds checking pass
...
llvm-svn: 157262
2012-05-22 17:19:45 +00:00
Nuno Lopes
a2f6cecb6d
add a new pass to instrument loads and stores for run-time bounds checking
...
move EmitGEPOffset from InstCombine to Transforms/Utils/Local.h
(a draft of this) patch reviewed by Andrew, thanks.
llvm-svn: 157261
2012-05-22 17:19:09 +00:00
Manuel Klimek
78d084d942
Adds a method overwriteChangedFiles to the Rewriter. This is implemented by
...
first writing the changed files to a temporary location and then overwriting
the original files atomically.
Also adds a RewriterTestContext to aid unit testing rewrting logic in general.
llvm-svn: 157260
2012-05-22 17:01:35 +00:00
Dmitry Vyukov
4d30e9b5eb
tsan: fix makefile
...
allow to build custom configurations
llvm-svn: 157259
2012-05-22 16:46:05 +00:00
Nuno Lopes
2b1ff46ed1
revert the usage of the objectsize intrinsic with 3 parameters (to match LLVM r157255)
...
llvm-svn: 157256
2012-05-22 15:26:48 +00:00
Nuno Lopes
ad40c0a425
revert my previous patches that introduced an additional parameter to the objectsize intrinsic.
...
After a lot of discussion, we realized it's not the best option for run-time bounds checking
llvm-svn: 157255
2012-05-22 15:25:31 +00:00
Jakob Stoklund Olesen
924279ca0e
Only erase virtregs with no uses left.
...
Also make sure registers aren't erased twice if the dead def mentions
the register twice.
This fixes PR12911.
llvm-svn: 157254
2012-05-22 14:52:12 +00:00
Filipe Cabecinhas
6f970e8458
Remove some compilation warnings.
...
llvm-svn: 157253
2012-05-22 14:45:44 +00:00
Dmitry Vyukov
f6985e3ab9
tsan: reduce per-thread memory usage
...
llvm-svn: 157252
2012-05-22 14:34:43 +00:00
Duncan Sands
4df5e96d3a
Fix PR12858, a crash due to GVN's PRE not fully removing an instruction from the
...
leader table. That's because it wasn't expecting instructions to turn up as
leader for a value number that is not its own, but equality propagation could
create this situation. One solution is to have the leader table use a WeakVH
but this slows down GVN by about 5%. Instead just have equality propagation not
add instructions to the leader table, only constants and arguments. In theory
this might cause GVN to run more (each time it changes something it runs again)
but it doesn't seem to occur enough to cause a slow down.
llvm-svn: 157251
2012-05-22 14:17:53 +00:00
Kostya Serebryany
5d03d45643
[asan] nuke some old unused code
...
llvm-svn: 157250
2012-05-22 13:31:35 +00:00
Kostya Serebryany
02d5ec5ecf
[asan] increase the stack size limit to 256M (yes, that happens); also CHECK that the stack size is less than that on a non-main thread
...
llvm-svn: 157249
2012-05-22 11:54:44 +00:00
Dmitry Vyukov
15710c9220
tsan: simple memory profiler
...
llvm-svn: 157248
2012-05-22 11:33:03 +00:00
Simon Atanasyan
d45982cb00
Replace inline asm constraint "=a" by the more general constraint "=r".
...
That extend a range of platforms support this test case.
llvm-svn: 157247
2012-05-22 11:03:10 +00:00
Tobias Grosser
29666113fd
ScheduleOptimizer: Simplify some code
...
We now use isl_map_equate, which makes the code a lot simpler.
llvm-svn: 157246
2012-05-22 10:47:31 +00:00
Tobias Grosser
18daacad61
ScopInfo: Add parameter bounds to context
...
Derive the maximal and minimal values of a parameter from the type it has. Add
this information to the scop context. This information is needed, to derive
optimal types during code generation.
llvm-svn: 157245
2012-05-22 10:47:27 +00:00
Tobias Grosser
3b2cf96bae
Replace some asserts with llvm_unreachable
...
llvm-svn: 157244
2012-05-22 10:47:21 +00:00