Galina Kistanova
a6faf8e28b
These tests require particular registered targets. Declared as such.
...
llvm-svn: 132623
2011-06-04 04:38:16 +00:00
Alexis Hunt
4ac55e33be
Reimplement r132572 on top of a FoldingSet, thus hopefully solving both
...
the self-host failures and Chandler's concerns.
llvm-svn: 132622
2011-06-04 04:32:43 +00:00
Jakob Stoklund Olesen
fc205a5694
Teach TableGen to evaluate DAG expressions as set operations.
...
A TableGen backend can define how certain classes can be expanded into
ordered sets of defs, typically by evaluating a specific field in the
record. The SetTheory class can then evaluate DAG expressions that refer
to these named sets.
A number of standard set and list operations are predefined, and the
backend can add more specialized operators if needed. The -print-sets
backend is used by SetTheory.td to provide examples.
This is intended to simplify how register classes are defined:
def GR32_NOSP : RegisterClass<"X86", [i32], 32, (sub GR32, ESP)>;
llvm-svn: 132621
2011-06-04 04:11:37 +00:00
Nick Lewycky
75b2053863
Fold assert-only-used variable into the assert.
...
llvm-svn: 132620
2011-06-04 02:07:10 +00:00
Nick Lewycky
c101ebfc8f
Remove extraneous "virtual" keyword and non-virtual destructor. Caught by
...
-Wnon-virtual-dtor!
llvm-svn: 132619
2011-06-04 02:04:22 +00:00
Jordy Rose
fb5e8c2814
[analyzer] Change an indent-if to an early return. No functionality change.
...
llvm-svn: 132618
2011-06-04 01:50:25 +00:00
Jordy Rose
097c5397a8
[analyzer] Don't crash when copying an unknown number of bytes with memcpy(). Also handle all memcpy-family return values in evalCopyCommon(), rather than having some outside and some inside.
...
llvm-svn: 132617
2011-06-04 01:47:27 +00:00
Andrew Trick
c73aa1ee81
Missing include of climits in the new BranchProbability pass.
...
llvm-svn: 132616
2011-06-04 01:30:52 +00:00
Greg Clayton
a658fd26c3
Created a std::string in the base StopInfo class for the description and
...
cleaned up all base classes that had their own copy. Added a SetDescription
accessor to the StopInfo class.
llvm-svn: 132615
2011-06-04 01:26:29 +00:00
Jordy Rose
64ae92e5c5
[analyzer] Remove extra assignment that actually lost a few of the assumptions.
...
llvm-svn: 132614
2011-06-04 01:22:21 +00:00
Andrew Trick
49371f3f33
New BranchProbabilityInfo analysis. Patch by Jakub Staszak!
...
BranchProbabilityInfo provides an interface for IR passes to query the
likelihood that control follows a CFG edge. This patch provides an
initial implementation of static branch predication that will populate
BranchProbabilityInfo for branches with no external profile
information using very simple heuristics. It currently isn't hooked up
to any external profile data, so static prediction does all the work.
llvm-svn: 132613
2011-06-04 01:16:30 +00:00
Tanya Lattner
55808c1026
Add support for builtin astype:
...
__builtin_astype(): Used to reinterpreted as another data type of the same size using for both scalar and vector data types.
Added test case.
llvm-svn: 132612
2011-06-04 00:47:47 +00:00
Dan Gohman
27b82f2f91
Reapply r131781 (revert r131809), now that some BasicAA shortcomings
...
it exposed are fixed.
llvm-svn: 132611
2011-06-04 00:46:31 +00:00
Devang Patel
1b291b22d0
Rework r132576.
...
Emit debug info only if there is an insertion point. The debug info should not force an insertion point. Codegen may later on decide to not emit code for some reason, see extensive comment in CodeGenFunction::EmitStmt(), and debug info should not get in the way.
llvm-svn: 132610
2011-06-04 00:38:02 +00:00
Dan Gohman
fb02cec44e
Fix BasicAA's recursion detection so that it doesn't pessimize
...
queries in the case of a DAG, where a query reaches a node
visited earlier, but it's not on a cycle. This avoids
MayAlias results in cases where BasicAA is expected to
return MustAlias or PartialAlias in order to protect TBAA.
llvm-svn: 132609
2011-06-04 00:31:50 +00:00
Jordy Rose
4451cd4511
[analyzer] Fix comment for (still-disabled) evalStrncpy
...
llvm-svn: 132608
2011-06-04 00:05:23 +00:00
Jordy Rose
63b84be6cb
[analyzer] Fix handling of "copy zero bytes" for memcpy and friends.
...
llvm-svn: 132607
2011-06-04 00:04:22 +00:00
Stuart Hastings
be605494ac
Reapply 132424 with fixes. This fixes PR10068.
...
rdar://problem/5993888
llvm-svn: 132606
2011-06-03 23:53:54 +00:00
Jordy Rose
aee7fb9e64
[analyzer] __mempcpy_chk is the same as mempcpy (at least to CStringChecker)
...
llvm-svn: 132605
2011-06-03 23:42:56 +00:00
Jonathan D. Turner
205c7d559f
Improvements to abbreviations for PCH which add support for EnumDecl, ObjCIvarDecl, TypedefDecl, VarDecl and FieldDecl and improve support for ParmVarDecl.
...
llvm-svn: 132604
2011-06-03 23:11:16 +00:00
Douglas Gregor
4cd65962dc
Expose @synthesize and @dynamic via their own cursor kinds in
...
libclang. Fixes <rdar://problem/9537904>.
llvm-svn: 132603
2011-06-03 23:08:58 +00:00
Jakob Stoklund Olesen
496fa5556f
Fix some tests that depend on register allocation.
...
llvm-svn: 132602
2011-06-03 22:45:21 +00:00
Jakob Stoklund Olesen
e1c6d3acb4
Blackfin always uses a reserved call frame.
...
Materializing the stack pointer update before a call requires a scratch
register that may not be available.
llvm-svn: 132601
2011-06-03 22:45:18 +00:00
Galina Kistanova
f56b4f6fdd
These tests require particular registered targets. Declared as such.
...
llvm-svn: 132600
2011-06-03 22:24:54 +00:00
Greg Clayton
54e8ac5562
Make sure we are ok to stop in a thread plan and have no stop reason for
...
the thread we were running on (other thread crashed or had exceptional stop
reason).
llvm-svn: 132599
2011-06-03 22:12:42 +00:00
Eric Christopher
1e3e8933ed
Another possible bug. Stopgap until we can autogenerate tables and
...
constraint lengths.
Part of rdar://9037836 and rdar://9119939
llvm-svn: 132598
2011-06-03 22:09:12 +00:00
Greg Clayton
3b292a1ed3
Don't codesign with lldb_codesign for non MacOSX SDKs.
...
llvm-svn: 132597
2011-06-03 22:08:56 +00:00
Jonathan D. Turner
d09655fce5
Test of commit access.
...
llvm-svn: 132596
2011-06-03 21:46:44 +00:00
Johnny Chen
c95f5de211
Add InferiorCallPOSIX.cpp/.h into the xcode project file to fix build error.
...
llvm-svn: 132594
2011-06-03 21:27:28 +00:00
Alexis Hunt
967ea7ca6b
Revert r132572 to figure out why it broke selfhost and clean it up as
...
suggested by Chandler.
llvm-svn: 132593
2011-06-03 21:10:40 +00:00
Eric Christopher
714af006a2
Testcase for llvm-gcc commit r132591.
...
Part of rdar://9037836 and rdar://9119939
llvm-svn: 132592
2011-06-03 20:56:31 +00:00
Eric Christopher
761a5d4280
Fix an off by one error.
...
Part of rdar://9037836 and rdar://9119939
llvm-svn: 132590
2011-06-03 20:44:52 +00:00
Bill Wendling
9e900784f2
Remove testcase. It's problematic for the buildbots.
...
llvm-svn: 132589
2011-06-03 20:43:58 +00:00
Peter Collingbourne
6b5f17a586
Fix some order-of-initialisation warnings
...
llvm-svn: 132588
2011-06-03 20:41:09 +00:00
Peter Collingbourne
10bc01032c
Implement RegisterContextLinux_x86_64::{Read,Write}AllRegisterValues
...
llvm-svn: 132587
2011-06-03 20:41:02 +00:00
Peter Collingbourne
5a6fa540dc
Move SaveFrameZeroState and RestoreSaveFrameZero implementations to Thread base class
...
llvm-svn: 132586
2011-06-03 20:40:54 +00:00
Peter Collingbourne
70969ef102
Implement ProcessLinux::Do{Allocate,Deallocate}Memory using inferior mmap/munmap calls
...
llvm-svn: 132585
2011-06-03 20:40:44 +00:00
Peter Collingbourne
99f9aa02c2
Move inferior mmap/munmap call code into their own functions in utility lib
...
llvm-svn: 132584
2011-06-03 20:40:38 +00:00
Peter Collingbourne
1740be7cd9
Disable MCJIT on non-Darwin platforms
...
Currently the runtime dynamic linker lacks object file support for anything
other than Mach-O.
llvm-svn: 132583
2011-06-03 20:40:12 +00:00
Peter Collingbourne
b4aabeb8d7
Scan dynamic symbol table of ELF object files
...
llvm-svn: 132582
2011-06-03 20:39:58 +00:00
Jakob Stoklund Olesen
b8bf3c0f8b
Switch AllocationOrder to using RegisterClassInfo instead of a BitVector
...
of reserved registers.
Use RegisterClassInfo in RABasic as well. This slightly changes som
allocation orders because RegisterClassInfo puts CSR aliases last.
llvm-svn: 132581
2011-06-03 20:34:53 +00:00
Jakob Stoklund Olesen
3460ae88b2
Preserve the original ordering when a CSR has multiple aliases.
...
Previously, these aliases would be ordered alphabetically. (BH, BL)
Print out the computed allocation orders.
llvm-svn: 132580
2011-06-03 20:34:50 +00:00
Dan Gohman
4e7e7958d7
When merging MustAlias and PartialAlias, chose PartialAlias instead
...
of conservatively choosing MayAlias.
llvm-svn: 132579
2011-06-03 20:17:36 +00:00
Devang Patel
84bb33add9
Use IRBuilder, preserve line numbers.
...
llvm-svn: 132578
2011-06-03 19:46:19 +00:00
Howard Hinnant
3297ed7065
noexcept for <vector>. This also includes installing move_if_noexcept() into vector.
...
llvm-svn: 132577
2011-06-03 19:40:40 +00:00
Devang Patel
887e215e64
Emit debug info only if there is an insertion point. The debug info should not force an insertion point. Codegen may later on decide to not emit code for some reason, see extensive comment in CodeGenFunction::EmitStmt(), and debug info should not get in the way.
...
llvm-svn: 132576
2011-06-03 19:21:47 +00:00
Bill Wendling
b96ea46c7c
Accomodate front-ends which use private instead of internal here.
...
llvm-svn: 132575
2011-06-03 19:21:05 +00:00
Howard Hinnant
2d45a18c24
Bring noexcept for <string> inline with other containers.
...
llvm-svn: 132573
2011-06-03 18:40:47 +00:00
Alexis Hunt
1b02ed8c7c
Begin implementing a cache of special member lookups. Currently only
...
destructors are implemented but other special members are on the way,
which is where the real benefits of this will be visible.
llvm-svn: 132572
2011-06-03 18:36:49 +00:00
Galina Kistanova
b38fd263bd
Added registered targets for in-test dependency declarations.
...
llvm-svn: 132571
2011-06-03 18:36:30 +00:00