Nick Lewycky
7574774874
Revert r132630. GCC passes everything down, we aren't trying to replicate that.
...
llvm-svn: 132637
2011-06-04 09:06:25 +00:00
Jakob Stoklund Olesen
25b753bb3f
Drop a RecordKeeper reference that wasn't necessary.
...
llvm-svn: 132636
2011-06-04 07:49:55 +00:00
Roman Divacky
5e300b82e2
Adjust the linker for PowerPC64/-m32 on FreeBSD too.
...
llvm-svn: 132635
2011-06-04 07:40:24 +00:00
Roman Divacky
00859c29bf
Make -m32 work on FreeBSD/PowerPC64.
...
llvm-svn: 132634
2011-06-04 07:37:31 +00:00
Dan Gohman
baf1afb289
Add a testcase to demonstrate the problem where phi translation is
...
ignored for clobbering partial-alias loads.
llvm-svn: 132633
2011-06-04 07:05:05 +00:00
Dan Gohman
adf80ae9e4
Reapply r131781, now that the GVN bug with partially-aliasing loads
...
is disabled.
llvm-svn: 132632
2011-06-04 06:50:18 +00:00
Dan Gohman
a471751c24
Disable the main feature of 130180, the elimination of loads that are
...
redundant with partially-aliasing loads.
When computing what portion of a clobbering load value is needed,
it doesn't consider phi-translation which may have occurred
between the clobbing load and the redundant load.
llvm-svn: 132631
2011-06-04 06:48:50 +00:00
Nick Lewycky
6d92b72e70
GCC passes -z foo directly through to the linker (and yes -z=foo becomes
...
"-z =foo"). Do the same thing in clang.
llvm-svn: 132630
2011-06-04 06:48:26 +00:00
Nick Lewycky
97864dac76
On linux, -nostdlib was causing a --start-group with no --end-group to be passed
...
to the linker.
llvm-svn: 132629
2011-06-04 06:27:06 +00:00
Dan Gohman
43efe1c8bd
Remove this test, which should have been reverted along with r131781.
...
llvm-svn: 132628
2011-06-04 06:21:23 +00:00
Roman Divacky
35c669708d
Use processor name in the target triple. This fixes PowerPC64 to generate
...
64bit code for example.
llvm-svn: 132627
2011-06-04 06:15:42 +00:00
Nick Lewycky
62188bbb90
Identifiers with _CapitalLetter are reserved, so don't use them. Prefer the
...
common C++ pattern of using the same name for the constructor argument as you
do for the member. Noticed by inspection.
llvm-svn: 132626
2011-06-04 05:19:42 +00:00
Dan Gohman
87fdceaf73
Revert r131781 again. Apparently there is more going on here.
...
llvm-svn: 132625
2011-06-04 05:11:22 +00:00
Jakob Stoklund Olesen
a4615a6f94
Silence compiler warnings.
...
llvm-svn: 132624
2011-06-04 05:09:36 +00:00
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