Craig Topper
93d65c785e
Use uint16_t to store indices into string table since C++ only allows 64K string literals so the index into the big string can never be larger than that.
...
llvm-svn: 152105
2012-03-06 06:04:39 +00:00
Craig Topper
f875c10fda
Add asserts to ensure that values will fit into the tables.
...
llvm-svn: 152104
2012-03-06 04:39:52 +00:00
Greg Clayton
6a820b624b
Bumping Xcode project versions for lldb-123 and debugserver-174.
...
llvm-svn: 152103
2012-03-06 04:02:03 +00:00
Greg Clayton
9845a8d54d
<rdar://problem/10840355>
...
Fixed STDERR to not be opened as readable. Also cleaned up some of the code that implemented the file actions as some of the code was using the wrong variables, they now use the right ones (in for stdin, out for stdout, err for stderr).
llvm-svn: 152102
2012-03-06 04:01:04 +00:00
Jim Ingham
97f7e81891
Add a test case and fix the C++ exception symbols.
...
llvm-svn: 152101
2012-03-06 03:52:02 +00:00
Craig Topper
7856d7a671
Increase number of allowed registers in register classes to 64k instead of 256. Widen register class ID to 16-bits. Widen register size and alignment to be up to 64k bytes instead of 256 bytes. This partially reverts r152019 to be less restrictive.
...
llvm-svn: 152100
2012-03-06 03:44:22 +00:00
Craig Topper
9734478c86
Revert r152016 and allow overlap, sub, super register tables to be more than 64k entries.
...
llvm-svn: 152099
2012-03-06 03:28:45 +00:00
Richard Smith
d67aea28f6
User-defined literals: reject string and character UDLs in all places where the
...
grammar requires a string-literal and not a user-defined-string-literal. The
two constructs are still represented by the same TokenKind, in order to prevent
a combinatorial explosion of different kinds of token. A flag on Token tracks
whether a ud-suffix is present, in order to prevent clients from needing to look
at the token's spelling.
llvm-svn: 152098
2012-03-06 03:21:47 +00:00
Argyrios Kyrtzidis
8de0744441
Remove UsuallyTinyPtrVector.
...
It is just a worse version of TinyPtrVector.
llvm-svn: 152097
2012-03-06 03:02:16 +00:00
Argyrios Kyrtzidis
735f9d4805
Use TinyPtrVector instead of UsuallyTinyPtrVector.
...
The latter is just a worse version of the former.
llvm-svn: 152096
2012-03-06 03:00:11 +00:00
Jakob Stoklund Olesen
d9b427ee65
Add <imp-def> operands when reloading into physregs.
...
When an instruction only writes sub-registers, it is still necessary to
add an <imp-def> operand for the super-register. When reloading into a
virtual register, rewriting will add the operand, but when loading
directly into a virtual register, the <imp-def> operand is still
necessary.
llvm-svn: 152095
2012-03-06 02:48:17 +00:00
Eric Christopher
8c096d65b3
Fix up link and a couple small edits.
...
llvm-svn: 152094
2012-03-06 02:25:41 +00:00
Eric Christopher
85cd2a0148
Add the beginnings of documentation for the Name Accelerator Tables.
...
Based on a writeup originally by Greg Clayton.
Abuse div and pre tags horribly. Needs a bit more cleanup.
llvm-svn: 152093
2012-03-06 02:25:38 +00:00
Eric Christopher
5acc7c1b74
Delete trailing whitespace to clean up.
...
llvm-svn: 152092
2012-03-06 02:25:36 +00:00
Argyrios Kyrtzidis
04bd4321b9
Move clang/Basic/UsuallyTinyPtrVector.h to llvm/ADT/UsuallyTinyPtrVector.h.
...
Depends on llvm commit r152090.
llvm-svn: 152091
2012-03-06 02:09:28 +00:00
Argyrios Kyrtzidis
0da851245a
Add include/llvm/ADT/UsuallyTinyPtrVector.h which is a vector that
...
optimizes the case where there is only one element.
llvm-svn: 152090
2012-03-06 02:08:48 +00:00
Evan Cheng
217a704acc
Avoid finalizeBundles infinite looping.
...
llvm-svn: 152089
2012-03-06 02:00:52 +00:00
Greg Clayton
6a1edd70cf
Bumped project Xcode project version for lldb-122 and debugserver-173.
...
llvm-svn: 152088
2012-03-06 01:36:31 +00:00
Enrico Granata
6014590824
Fixing a crasher bug where we were not checking for NULL before trying to retrieve the format for a type
...
llvm-svn: 152087
2012-03-06 01:28:31 +00:00
Ted Kremenek
04e860df2c
[analyzer] add a diagnostic event when entering a call via inlining, within the callee, and add an edge.
...
llvm-svn: 152086
2012-03-06 01:25:01 +00:00
Eli Friedman
e781266905
Make sure to properly ifdef out an unused function on OSX < 10.6. PR12136. Patch from Jeremy Huddleston.
...
llvm-svn: 152085
2012-03-06 01:21:14 +00:00
Johnny Chen
da324de971
rdar://problem/10267705
...
Clarification on the error message when the display format (eFormatBytes/eFormatBytesWithASCII) conflicts
with the byte size.
llvm-svn: 152084
2012-03-06 01:17:59 +00:00
Ted Kremenek
024ba20bef
[analyzer] 'Looping back to the head of the loop' diagnostics are prunable.
...
llvm-svn: 152083
2012-03-06 01:00:36 +00:00
Argyrios Kyrtzidis
840497dd81
Move include/clang/AST/UsuallyTinyPtrVector.h -> include/clang/Basic/UsuallyTinyPtrVector.h
...
and add an erase method to it.
Patch by Andrew Craik!
llvm-svn: 152082
2012-03-06 00:49:28 +00:00
Jim Ingham
fab10e89ce
Add a command and an SB API to create exception breakpoints. Make the break output prettier for Exception breakpoints.
...
llvm-svn: 152081
2012-03-06 00:37:27 +00:00
Jordy Rose
330de22fe0
[analyzer] Remove now-unused constant. No functionality change.
...
llvm-svn: 152080
2012-03-06 00:33:35 +00:00
Owen Anderson
2ee7c4dfc5
Make it possible for a target to mark FSUB as Expand. This requires providing a default expansion (FADD+FNEG), and teaching DAGCombine not to form FSUBs post-legalize if they are not legal.
...
llvm-svn: 152079
2012-03-06 00:29:31 +00:00
Jordy Rose
0accc6ae7b
[analyzer] Fix unnecessary dyn_cast_or_null. No functionality change.
...
llvm-svn: 152078
2012-03-06 00:28:20 +00:00
Greg Clayton
e16e2d02ea
<rdar://problem/10986692>
...
Safeguard against building on next OS and run on current OS.
llvm-svn: 152077
2012-03-06 00:24:17 +00:00
Lang Hames
718cfbe05a
Split fpscr into two registers: FPSCR and FPSCR_NZCV.
...
The fpscr register contains both flags (set by FP operations/comparisons) and
control bits. The control bits (FPSCR) should be reserved, since they're always
available and needn't be defined before use. The flag bits (FPSCR_NZCV) should
like to be unreserved so they can be hoisted by MachineCSE. This fixes PR12165.
llvm-svn: 152076
2012-03-06 00:19:55 +00:00
Argyrios Kyrtzidis
b5e420f707
Add some doxygen comments.
...
llvm-svn: 152075
2012-03-06 00:16:36 +00:00
Argyrios Kyrtzidis
87acf19a5c
[tablegen] Make sure that the code that is determining the order of warning groups
...
is shared to avoid any "misalignment" if indices.
llvm-svn: 152074
2012-03-06 00:00:38 +00:00
Ted Kremenek
6762a94040
Teak CallAndMessageChecker to only warn about uninitialized struct fields in call arguments
...
when the called function is never inlined.
Fixes <rdar://problem/10977037>.
llvm-svn: 152073
2012-03-05 23:57:14 +00:00
Anna Zaks
a5b86343f5
[analyzer] Bump up the size of the functions that should be
...
considered for inlining to 200 BBs.
Setting the max to 10 BBs introduced several false negatives, we'll
reevaluate the setting later on along with other inlining heuristics.
llvm-svn: 152072
2012-03-05 23:54:55 +00:00
Fariborz Jahanian
d3ba40b90f
Minor refactoring for previous patch for // rdar://10735698
...
llvm-svn: 152071
2012-03-05 23:38:41 +00:00
Eli Friedman
af3c6fe51e
A few more cases of missing masking in ComputeMaskedBits; found by inspection.
...
llvm-svn: 152070
2012-03-05 23:22:40 +00:00
Richard Smith
f506eaf36d
static_assert: Allow any string-literal as the message, not just a character
...
string literal, and adjust the diagnostic code to match. This also causes us
to escape any control characters in the message.
llvm-svn: 152069
2012-03-05 23:20:05 +00:00
Jim Grosbach
8dc347fc27
ARM vpush/vpop assembler mnemonics accept an optional size suffix.
...
rdar://10988114
llvm-svn: 152068
2012-03-05 23:16:31 +00:00
Jim Grosbach
6cbf0f13dd
Nuke a bit of dead code.
...
llvm-svn: 152067
2012-03-05 23:09:51 +00:00
Eli Friedman
a8b75ac798
Make sure we don't return bits outside the mask in ComputeMaskedBits. PR12189.
...
llvm-svn: 152066
2012-03-05 23:09:40 +00:00
Ted Kremenek
9d96f843b8
Teach SimpleSValBuilder that (in the absence of more information) stack memory doesn't alias symbolic memory. This is a heuristic/hack, but works well in practice. Fixes <rdar://problem/10978247>.
...
llvm-svn: 152065
2012-03-05 23:06:19 +00:00
Sean Callanan
bb6e7edd32
Made sure to store the type for "this" when in a
...
C++ method.
llvm-svn: 152064
2012-03-05 22:08:20 +00:00
Jim Grosbach
e5307f9019
ARM Refactor VLD/VST spaced pair instructions.
...
Use the new composite physical registers.
llvm-svn: 152063
2012-03-05 21:43:40 +00:00
Daniel Dunbar
6290557872
AST/stats: Don't effectively use an out-of-line function to return a static
...
bool. Ugh.
llvm-svn: 152062
2012-03-05 21:42:49 +00:00
Jim Grosbach
c71bf4739a
ARM Remove a bit of dead code.
...
llvm-svn: 152061
2012-03-05 21:09:58 +00:00
Daniel Dunbar
e5617c79e4
ASTContext: Don't use nothrow specifications on the new operators for allocating
...
from the ASTContext.
- Doing so requires the compiler to generate null checks against the returned
result, but the BumpPtrAllocator never returns null pointers.
- The optimizer can usually eliminate such checks, but not always, so this
gives us tighter codegen in some places.
- It would be really nice if we could just use __builtin_unreachable or
something to tell the optimizer that the allocator never returns null, but
LLVM isn't currently that smart.
llvm-svn: 152060
2012-03-05 21:02:05 +00:00
Anna Zaks
9bd4be9657
[analyzer] Time the execution (per each TU) with -analyzer-stats.
...
llvm-svn: 152059
2012-03-05 20:53:59 +00:00
Daniel Dunbar
030e0a866c
platform/clang_darwin: Fix a comment.
...
llvm-svn: 152058
2012-03-05 20:46:09 +00:00
Daniel Dunbar
cdf9bf7048
make/clang_darwin: Tweak CheckArches function to force the integrated-as and use
...
the stub SDK to try and ensure we always pick up the right archs when they
should be able to be used.
- Also, warn when we drop an architecture.
This is a reapplication of r150232 that should stick now that we have the
integrated assembler on for ARM.
llvm-svn: 152057
2012-03-05 20:46:06 +00:00
Daniel Dunbar
e8092cabeb
build/compiler-rt: Stop forcing off -integrated-as for compiler-rt builds.
...
llvm-svn: 152054
2012-03-05 20:19:03 +00:00