Roman Divacky
ca10389bfe
Specify MachinePointerInfo as refering to the argument value and offset of the
...
store when handling byval arguments. Thus preventing reordering of the store
with load with post-RA scheduler.
llvm-svn: 164553
2012-09-24 20:47:19 +00:00
Bob Wilson
317be45091
Replace an assertion with an error for empty __asm statements.
...
llvm-svn: 164551
2012-09-24 19:57:59 +00:00
Bob Wilson
0fc64f0b11
Fix a comment typo and clean up formatting.
...
llvm-svn: 164550
2012-09-24 19:57:55 +00:00
Douglas Gregor
e769d862ee
Make sure that we don't end up making an #undef'd macro visible after
...
the fact. Test cases will come when we're actually (de-)serializing
macro history.
llvm-svn: 164549
2012-09-24 19:56:18 +00:00
Chad Rosier
3cb355d11f
Rather then have a wrapper function, have tblgen instantiate the implementation.
...
llvm-svn: 164548
2012-09-24 19:32:29 +00:00
Argyrios Kyrtzidis
5eae073cb1
[libclang] Bring CXCursor_AsmStmt back as an alias for CXCursor_GCCAsmStmt.
...
This was renamed in r162632 which was badness because the C API needs to be stable.
rdar://12360096
llvm-svn: 164547
2012-09-24 19:27:20 +00:00
Dmitri Gribenko
61b4b7f0f3
Include 'long long' extension warning in the LongLong group so that it can be
...
silenced by -Wno-long-long. Thanks Richard Smith for the fix idea!
llvm-svn: 164546
2012-09-24 19:05:10 +00:00
Dmitri Gribenko
1cd2305703
Change the wording of the extension warning from
...
> 'long long' is an extension when C99 mode is not enabled
to
> 'long long' is a C++11 extension
while compiling in C++98 mode.
llvm-svn: 164545
2012-09-24 18:19:21 +00:00
Jim Ingham
43de0f95ed
Remove a couple of debugging printf's from the testsuite.
...
llvm-svn: 164544
2012-09-24 18:11:54 +00:00
Anna Zaks
b9828203df
[analyzer] Really turn on dynamic-bifurcation on by default.
...
Thanks to Byoungyoung for realizing taht we are not passing the default
option correctly.
llvm-svn: 164543
2012-09-24 17:43:47 +00:00
Anna Zaks
e20b201dda
[analyzer] Remove unused.
...
llvm-svn: 164542
2012-09-24 17:43:44 +00:00
Anna Zaks
3533a54a97
[analyzer]Prevent infinite recursion(assume->checker:evalAssume->assume)
...
(Unfortunately, I do not have a good reduced test case for this.)
llvm-svn: 164541
2012-09-24 17:43:41 +00:00
Richard Osborne
6fb4bd77e2
Add missing : in CHECK line.
...
llvm-svn: 164540
2012-09-24 17:22:43 +00:00
Richard Osborne
2fd29bfb90
Add missing check for presence of target data.
...
This avoids a crash in visitAllocaInst when target data isn't available.
llvm-svn: 164539
2012-09-24 17:10:03 +00:00
Marshall Clow
8493cad160
Updating email address
...
llvm-svn: 164490
2012-09-24 14:27:24 +00:00
Marshall Clow
b07ddfcac7
Updating email address
...
llvm-svn: 164489
2012-09-24 14:27:10 +00:00
Alexey Samsonov
351d486df0
[TSan] one more attempt to fix sleep_sync test: call sleep in the spawned thread so that sleep-synchronization will be detected even if child thread is started late.
...
llvm-svn: 164488
2012-09-24 13:35:46 +00:00
Alexey Samsonov
313014694f
[TSan] Provide replacements for operators new/delete instead of declaring extern C functions with weirdly mangled names (same strategy is used in ASan).
...
llvm-svn: 164487
2012-09-24 13:19:47 +00:00
Alexey Samsonov
a555b3faf4
[ASan] Apply some ASan-relevant pieces of patch by Ruben Van Boxem. In the same time, remove ASan from CMake build on Windows after conversation with Timur. We don't want to support building ASan on Windows until it is in a working state.
...
llvm-svn: 164486
2012-09-24 11:43:40 +00:00
Alexander Potapenko
34b46ca48e
Use an explicit target to test that source fortification is off when building for Darwin with -faddress-sanitizer.
...
llvm-svn: 164485
2012-09-24 10:25:24 +00:00
Dmitri Gribenko
7ba91723e7
Small cleanup of literal semantic analysis: hiding 'char *' pointers behind
...
StringRef makes code cleaner. Also, make the temporary buffer smaller:
512 characters is unreasonably large for integer literals.
llvm-svn: 164484
2012-09-24 09:53:54 +00:00
Alexey Samsonov
0659f72f7b
[TSan] increase sleep time in test to ensure correct event ordering
...
llvm-svn: 164483
2012-09-24 08:57:41 +00:00
Chandler Carruth
ed2a284977
Update the Clang tests which run with a full optimization pipeline for
...
the new SROA pass. This is a benign change: the order of PHI nodes
changed.
llvm-svn: 164481
2012-09-24 01:10:25 +00:00
Chandler Carruth
8232bf53c6
Enable the new SROA pass by default.
...
Queue the fallout. ;]
llvm-svn: 164480
2012-09-24 01:10:25 +00:00
Chandler Carruth
92924fd28f
Address one of the original FIXMEs for the new SROA pass by implementing
...
integer promotion analogous to vector promotion. When there is an
integer alloca being accessed both as its integer type and as a narrower
integer type, promote the narrower access to "insert" and "extract" the
smaller integer from the larger one, and make the integer alloca
a candidate for promotion.
In the new formulation, we don't care about target legal integer or use
thresholds to control things. Instead, we only perform this promotion to
an integer type which the frontend has already emitted a load or store
for. This bounds the scope and prevents optimization passes from
coalescing larger and larger entities into a single integer.
llvm-svn: 164479
2012-09-24 00:34:20 +00:00
NAKAMURA Takumi
f5a898c305
unittests/AST/StmtPrinterTest.cpp: Suppress a LP64-assumed test, "0x100000000i128 => 4294967296L", for now.
...
LONG_MAX is 2147483647L on common 32 bit and LLP64 (Windows x64).
llvm-svn: 164478
2012-09-24 00:34:18 +00:00
Dmitri Gribenko
24bef9a4e9
As a followup for r164303, add some tests for printing literals that test
...
printing directly rather than through a complicated machinery of ObjC rewriter.
llvm-svn: 164477
2012-09-23 20:29:07 +00:00
Anton Korobeynikov
37d73002d4
Emit dtors into proper section while compiling in vcpp-compatible mode.
...
Patch by Kai!
llvm-svn: 164476
2012-09-23 15:53:47 +00:00
Chandler Carruth
e7a1ba5e8b
Switch to a signed representation for the dynamic offsets while walking
...
across the uses of the alloca. It's entirely possible for negative
numbers to come up here, and in some rare cases simply doing the 2's
complement arithmetic isn't the correct decision. Notably, we can't zext
the index of the GEP. The definition of GEP is that these offsets are
sign extended or truncated to the size of the pointer, and then wrapping
2's complement arithmetic used.
This patch fixes an issue that comes up with *no* input from the
buildbots or bootstrap afaict. The only place where it manifested,
disturbingly, is Clang's own regression test suite. A reduced and
targeted collection of tests are added to cope with this. Note that I've
tried to pin down the potential cases of overflow, but may have missed
some cases. I've tried to add a few cases to test this, but its hard
because LLVM has quite limited support for >64bit constructs.
llvm-svn: 164475
2012-09-23 11:43:14 +00:00
Nick Lewycky
c6b4f0310c
Don't do actual work inside an assert statement. Fixes PR11760!
...
llvm-svn: 164474
2012-09-23 03:58:21 +00:00
Rafael Espindola
151a957fb0
Implement ToolChain::IsUnwindTablesDefault to reduce code duplication a bit.
...
llvm-svn: 164473
2012-09-23 03:05:41 +00:00
Michael Liao
8d62212e93
Revise test to avoid using of 'grep'
...
llvm-svn: 164472
2012-09-23 02:41:47 +00:00
Craig Topper
3186c01fec
Add LLVM_OVERRIDE to methods that override their base classes.
...
llvm-svn: 164471
2012-09-23 02:12:10 +00:00
Rafael Espindola
66431cd10f
On Hexagon getArchName() never returns x86_64, simplify the function.
...
llvm-svn: 164470
2012-09-22 22:58:57 +00:00
Rafael Espindola
ccaa3b6eb2
Use pipes.
...
llvm-svn: 164469
2012-09-22 22:51:00 +00:00
Rafael Espindola
c326427905
Use FileCheck.
...
llvm-svn: 164468
2012-09-22 22:30:04 +00:00
Dmitri Gribenko
1da8886915
Comment sema: warn when comment has \deprecated but declaration does not have a
...
deprecation attribute ('deprecated', 'availability' or 'unavailable').
This warning is under a separate flag, -Wdocumentation-deprecated-sync, so it
can be turned off easily while leaving other -Wdocumentation warnings on.
llvm-svn: 164467
2012-09-22 21:47:50 +00:00
Dmitri Gribenko
d0885d2941
Remove superfluous \namespace command.
...
llvm-svn: 164466
2012-09-22 21:44:37 +00:00
Michael Liao
1b823fc1ba
Enhance test case of atomic16 to verify inst encoding fixed in r164453.
...
llvm-svn: 164465
2012-09-22 21:07:59 +00:00
Dmitri Gribenko
b947e8239f
Fix cindex.py compatibility with older libclang.so
...
The issue is that we were calling clang_getCompletionBriefComment
unconditionally. New we check if this function is available before calling it.
llvm-svn: 164464
2012-09-22 17:52:29 +00:00
Rafael Espindola
a7b9698b3d
Use FileCheck.
...
llvm-svn: 164462
2012-09-22 15:26:38 +00:00
Rafael Espindola
08f1ebb2b7
Fix pr13749. There is still a lot of code using getArchName that should be
...
using getArch, but I will try to fix them one at time to add tests.
llvm-svn: 164460
2012-09-22 15:04:11 +00:00
NAKAMURA Takumi
23b5b171eb
ARMInstPrinter.cpp: Fix a warning in -Asserts. [-Wunused-variable]
...
llvm-svn: 164459
2012-09-22 13:12:28 +00:00
NAKAMURA Takumi
0ac2f2a077
Whitespace.
...
llvm-svn: 164458
2012-09-22 13:12:22 +00:00
Tim Northover
2fdbdc5870
Fix edge cases of ARM shift operands in arith instructions.
...
As before with load instructions, oddities like "asr #32", "rrx" could
be printed incorrectly.
Patch by Chris Lidbury.
llvm-svn: 164456
2012-09-22 11:18:19 +00:00
Tim Northover
0c97e76492
Fix the handling of edge cases in ARM shifted operands.
...
This patch fixes load/store instructions to handle less common cases
like "asr #32", "rrx" properly throughout the MC layer.
Patch by Chris Lidbury.
llvm-svn: 164455
2012-09-22 11:18:12 +00:00
Abramo Bagnara
6cba23a649
Avoid multiple atomic builtin declaration.
...
llvm-svn: 164454
2012-09-22 09:05:22 +00:00
Michael Liao
2718b20030
Fix 16-bit atomic inst encoding and keep pseudo-inst starting with '#'
...
llvm-svn: 164453
2012-09-22 05:41:15 +00:00
Michael Liao
2456b3ae8c
Fix typo in r164357
...
llvm-svn: 164452
2012-09-22 03:39:42 +00:00
Andrew Trick
9257b8f8bb
Machine Model (-schedmodel only). Added SchedAliases.
...
Allow subtargets to tie SchedReadWrite types to processor specific
sequences or variants.
llvm-svn: 164451
2012-09-22 02:24:21 +00:00