Craig Topper
9520719b9b
Mark some static arrays as const.
...
llvm-svn: 157377
2012-05-24 06:35:32 +00:00
Craig Topper
273b0d7be5
Use uint16_t to store registers in static tables. Matches other tables.
...
llvm-svn: 157375
2012-05-24 06:09:56 +00:00
Craig Topper
be064d0136
Use uint16_t to store register number in static tables to match other tables.
...
llvm-svn: 157374
2012-05-24 05:55:47 +00:00
Craig Topper
01736f866a
Make some opcode tables static and const. Allows code to avoid making copies to pass the tables around.
...
llvm-svn: 157373
2012-05-24 05:17:00 +00:00
Seth Cantrell
ac6fb8f9f6
fix Bug 12924
...
http://llvm.org/bugs/show_bug.cgi?id=12924
This issue was that the source location was pointing to a
non-printable character and so CaretEnd was pointing one
_column_ past the caret but not one _character_ past the
caret. So the conversion between column and byte locations
wasn't working (because the conversion is only valid from
the first column or byte of a character).
llvm-svn: 157372
2012-05-24 05:14:44 +00:00
Joel Jones
2edc84ee60
Reflect that tblgen is now llvm-tblgen
...
llvm-svn: 157371
2012-05-24 04:38:50 +00:00
Richard Smith
ce4f608f86
DR1152 / PR12931 / PR6177: A candidate function which requires binding a const
...
volatile reference to a temporary is not viable. My interpretation is that
DR1152 was a bugfix, not a rule change for C++11, so this is not conditional on
the language mode. This matches g++'s behavior.
llvm-svn: 157370
2012-05-24 04:29:20 +00:00
Craig Topper
e4260f911b
Mark a couple arrays as static and const. Use array_lengthof instead of sizeof/sizeof.
...
llvm-svn: 157369
2012-05-24 04:22:05 +00:00
Craig Topper
42b96d1b74
Mark a static array as const.
...
llvm-svn: 157368
2012-05-24 04:11:15 +00:00
Craig Topper
2fbd130a79
Mark a static table as const. Shrink opcode size in static tables to uint16_t. Simplify loop iterating over one of those tables. No functional change intended.
...
llvm-svn: 157367
2012-05-24 03:59:11 +00:00
Jim Ingham
777e6d01ea
Change the "Debug" build to use the current MacOSX SDK. Fix the swig builder to have an explicit
...
short-circuit of the Python SWIG building, rather than relying on the SDKROOT being set.
llvm-svn: 157363
2012-05-24 01:16:09 +00:00
Eli Friedman
c11535c248
Add a warning to diagnose statements in C++ like "*(volatile int*)x;". Conceptually, this is part of -Wunused-value, but I added a separate flag -Wunused-volatile-lvalue so it doesn't get turned off by accident with -Wno-unused-value. I also made a few minor improvements to existing unused value warnings in the process. <rdar://problem/11516811>.
...
llvm-svn: 157362
2012-05-24 00:47:05 +00:00
Johnny Chen
a95ce623d8
rdar://problem/11457634
...
Supports the use-case scenario of immediately continuing the process once attached.
Add a simple completion test case from "process attach --con" to "process attach --continue ".
llvm-svn: 157361
2012-05-24 00:43:00 +00:00
Nuno Lopes
5c7ad16fdd
implement Sema support for the alloc_size attribute
...
Portions of this patch by Xi Wang. Reviewed by Jordy Rose. Thank you both.
Codegen support will follow soon.
llvm-svn: 157360
2012-05-24 00:22:00 +00:00
Fariborz Jahanian
9b43c3f0c5
modern objc translation: Add translation of @autoreleasepool
...
statement. // rdar://11474836.
llvm-svn: 157359
2012-05-23 23:47:20 +00:00
Chad Rosier
20b79dc40e
Tidy up naming for consistency and other cleanup. No functional change intended.
...
llvm-svn: 157358
2012-05-23 23:45:10 +00:00
Jakob Stoklund Olesen
41ebcda8f4
Add a test case for global live range splitting.
...
llvm-svn: 157357
2012-05-23 23:42:23 +00:00
Argyrios Kyrtzidis
03a384ec1f
[libclang] Report CXType_ObjCId for 'const id', not CXType_Typedef.
...
rdar://11357807
llvm-svn: 157356
2012-05-23 23:30:16 +00:00
Jakob Stoklund Olesen
0ce90494e6
Add a last resort tryInstructionSplit() to RAGreedy.
...
Live ranges with a constrained register class may benefit from splitting
around individual uses. It allows the remaining live range to use a
larger register class where it may allocate. This is like spilling to a
different register class.
This is only attempted on constrained register classes.
<rdar://problem/11438902>
llvm-svn: 157354
2012-05-23 22:37:27 +00:00
Johnny Chen
f9ef60d236
Add SBProcess::GetNumSupportedHardwareWatchpoints() API and export it through the Python scripting bridge.
...
Add/modify some test cases.
llvm-svn: 157353
2012-05-23 22:34:34 +00:00
NAKAMURA Takumi
5ad41dab52
clang/test/Tooling: Update comments in left 2 tests on XFAIL. They are incompatible to -fms-compatibility.
...
llvm-svn: 157352
2012-05-23 22:24:33 +00:00
NAKAMURA Takumi
2e8124b6df
clang/test/Tooling: Tweak 4 tests to escape the path separator s/\\/\\\\/g in JSON.
...
llvm-svn: 157351
2012-05-23 22:24:27 +00:00
NAKAMURA Takumi
9b2d17c613
Tooling: Canonicalize Key in IndexByFile[]. llvm::sys::path::native() may be used here.
...
It fixes test/Tooling on Win32 hosts.
llvm-svn: 157350
2012-05-23 22:24:20 +00:00
Bill Wendling
e351e8c52d
Forgot to reverse conditional.
...
llvm-svn: 157349
2012-05-23 22:12:50 +00:00
Bill Wendling
041793c452
Reduce indentation by early detection of 'continue'. No functionality change.
...
llvm-svn: 157348
2012-05-23 22:09:50 +00:00
Argyrios Kyrtzidis
0b21d82437
[arcmt] Remove an unused -autorelease, without failing with error, for this
...
idiom that is used commonly in setters:
[backingValue autorelease];
backingValue = [newValue retain]; // in general a +1 assign
rdar://9914061
llvm-svn: 157347
2012-05-23 21:50:04 +00:00
Chad Rosier
37a12af0af
[driver] Have the crash diagnostics print the clang version information.
...
rdar://11518308
llvm-svn: 157346
2012-05-23 21:38:47 +00:00
Johnny Chen
6463720505
Add the capability to display the number of supported hardware watchpoints to the "watchpoint list" command.
...
Add default Process::GetWatchpointSupportInfo() impl which returns an error of "not supported".
Add "qWatchpointSupportInfo" packet to the gdb communication layer to support this, and modify TestWatchpointCommands.py to test it.
llvm-svn: 157345
2012-05-23 21:09:52 +00:00
Nicolas Geoffray
afc2edbedc
llvm-ld does not exist anymore, use llvm-link instead.
...
llvm-svn: 157342
2012-05-23 20:34:19 +00:00
Kaelyn Uhrain
4dbe0cd6dc
Fix typo in flag to opt, and also a CHECK-NEXT that doesn't follow a
...
CHECK. The latter error was hidden by the former, and the test harness
used by e.g. "make check" silently ignored that opt was printing an
error message about an unknown flag instead of running on the test file.
llvm-svn: 157341
2012-05-23 20:21:36 +00:00
Jakob Stoklund Olesen
5b8f476037
Correctly deal with identity copies in RegisterCoalescer.
...
Now that the coalescer keeps live intervals and machine code in sync at
all times, it needs to deal with identity copies differently.
When merging two virtual registers, all identity copies are removed
right away. This means that other identity copies must come from
somewhere else, and they are going to have a value number.
Deal with such copies by merging the value numbers before erasing the
copy instruction. Otherwise, we leave dangling value numbers in the live
interval.
This fixes PR12927.
llvm-svn: 157340
2012-05-23 20:21:06 +00:00
Ted Kremenek
4ab452d061
Update checker build.
...
llvm-svn: 157339
2012-05-23 19:57:38 +00:00
Tim Northover
f6e29c4771
Fix how CMake appends -m32 to linker command-lines
...
llvm-svn: 157337
2012-05-23 18:42:02 +00:00
Chad Rosier
223faf719c
[arm-fast-isel] Add support for non-global callee.
...
Patch by Jush Lu <jush.msn@gmail.com>.
llvm-svn: 157336
2012-05-23 18:38:57 +00:00
Manuel Klimek
3f00134c05
Adds the Refactoring library, which is a layer on top of the Tooling library
...
that allows easy refactoring across translation units.
llvm-svn: 157331
2012-05-23 16:29:20 +00:00
Filipe Cabecinhas
c34f776877
extra ';' outside of a function [-pedantic,-Wextra-semi]
...
llvm-svn: 157330
2012-05-23 16:27:09 +00:00
Nuno Lopes
10287d839f
BoundsChecking: add a couple of simple tests and fix a bug in branch emition
...
llvm-svn: 157329
2012-05-23 16:24:52 +00:00
Filipe Cabecinhas
52008c641c
Small fixes: actually return a boolean and remove semi-colons.
...
llvm-svn: 157328
2012-05-23 16:24:11 +00:00
Jim Ingham
04e0a2270a
Process::Destroy should Halt before it tries to destroy so we don't have race conditions where we are in the middle of trying to service an event when we go to Destroy.
...
The AttachCompletionHandler should note that it has restarted the target if it indeed does so.
llvm-svn: 157327
2012-05-23 15:46:31 +00:00
Evgeniy Stepanov
8152e22073
Move AsanShadowRangeIsAvailable() from mac to posix.
...
llvm-svn: 157326
2012-05-23 15:21:50 +00:00
Nuno Lopes
561dae0947
revert r156383: removal of TYPE_CODE_FUNCTION_OLD
...
Apparently LLVM only stopped emitting this after LLVM 3.0
llvm-svn: 157325
2012-05-23 15:19:39 +00:00
Patrik Hägglund
8a1e316c15
Fix the inliner so that the optsize function attribute don't alter the
...
inline threshold if the global inline threshold is lower (as for -Oz).
Reviewed by Chandler Carruth and Bill Wendling.
llvm-svn: 157323
2012-05-23 13:42:57 +00:00
Patrik Hägglund
ca210d8432
Fixed typo in r156905.
...
llvm-svn: 157320
2012-05-23 12:34:56 +00:00
Patrik Hägglund
94537c2a06
Small fix for the debug output from PBQP (PR12822).
...
llvm-svn: 157319
2012-05-23 12:12:58 +00:00
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