Jim Grosbach
d5e72a1e84
tidy up trailing whitespace and an 80 column violation.
...
llvm-svn: 112746
2010-09-01 21:48:06 +00:00
Dan Gohman
0ad7d9c24e
Fix loop unswitching's assumption that a code path which either
...
infinite loops or exits will eventually exit. This fixes PR5373.
llvm-svn: 112745
2010-09-01 21:46:45 +00:00
Dale Johannesen
a1a33fc252
Revert 112740, it broke some clang tests somehow...
...
llvm-svn: 112744
2010-09-01 21:36:44 +00:00
Jim Grosbach
9dce31438d
cleanup per feedback. use a helper function for getting the first non-reserved
...
physical register in a register class. Make sure to assert if the register
class is empty.
llvm-svn: 112743
2010-09-01 21:34:41 +00:00
Jim Grosbach
b070ddf6b4
The register allocator shouldn't consider allocating reserved registers. PBQP version.
...
llvm-svn: 112742
2010-09-01 21:23:03 +00:00
Jim Grosbach
5ccf18c2fc
The register allocator shouldn't consider allocating reserved registers.
...
r112728 did this for fast regalloc.
llvm-svn: 112741
2010-09-01 21:04:27 +00:00
Dale Johannesen
973ddaa088
Add a few more missing MMX operations. This should be it.
...
llvm-svn: 112740
2010-09-01 21:03:03 +00:00
Douglas Gregor
be99693127
Fix the source-range information for an EnumConstantDecl; previously,
...
it did not include the initializer expression.
llvm-svn: 112739
2010-09-01 20:41:53 +00:00
Ted Kremenek
026cb58a44
Don't assert in CastSizeChecker when the casted-to pointee is an incomplete type. Fixes PR 8050.
...
llvm-svn: 112738
2010-09-01 20:35:38 +00:00
Howard Hinnant
1f7ae51ef2
Updated for weekly test results.
...
llvm-svn: 112737
2010-09-01 20:33:41 +00:00
Douglas Gregor
982152433b
Test visiting the template parameters of template template parameters,
...
support for which came in with the last commit.
llvm-svn: 112735
2010-09-01 20:21:58 +00:00
Douglas Gregor
06c7d2df9b
Teach libclang to visit the default arguments of template parameters.
...
llvm-svn: 112734
2010-09-01 20:16:53 +00:00
Chris Lattner
44ab470c8e
update the tutorial to use CreateFAdd to create fp operations.
...
llvm-svn: 112733
2010-09-01 20:09:20 +00:00
Johnny Chen
cbb4be0c93
Changed the test case class names to be noun-like instead of verb-like.
...
llvm-svn: 112732
2010-09-01 19:59:58 +00:00
Jim Ingham
91b9383b76
Stream::Printf doesn't add a newline, so it needs to be added to all the error messages in CommandObjectExpression::EvaluateExpression.
...
llvm-svn: 112731
2010-09-01 19:53:33 +00:00
Douglas Gregor
a9aa29cf0b
Implement libclang support for using declarations. Clang actually uses
...
three different kinds of AST nodes to represent using declarations:
UsingDecl, UnresolvedUsingValueDecl, and
UnresolvedUsingTypenameDecl. These three are collapsed into a single
cursor kind for using declarations, since libclang clients don't need
the distinction.
Several related changes here:
- Cursor visitation of the three AST nodes for using declarations
- Proper source-range computation for these AST nodes
- Using declarations have no USRs, since they don't actually declare
any entities.
llvm-svn: 112730
2010-09-01 19:52:22 +00:00
Fariborz Jahanian
61a312413c
Fix IRGen when property-dot syntax used to access
...
a c++ class object 'ivar'. Fixes radar 8366604.
llvm-svn: 112729
2010-09-01 19:36:41 +00:00
Jim Grosbach
df6b67bf85
The register allocator shouldn't consider allocating reserved registers.
...
llvm-svn: 112728
2010-09-01 19:28:41 +00:00
Owen Anderson
5925053b32
Disable CorrelatedValuePropagation while I track down selfhost failures.
...
llvm-svn: 112727
2010-09-01 19:20:46 +00:00
Jim Grosbach
cb2e56fa82
tidy up a few 80-column and trailing whitespace bits.
...
llvm-svn: 112726
2010-09-01 19:16:29 +00:00
Sean Callanan
63c2f65ffc
Fixed a comment.
...
llvm-svn: 112725
2010-09-01 19:04:01 +00:00
Bill Wendling
6456efaffd
The output of opt -stats must be sent to stderr. Patch by NAKAMURA Takumi!
...
llvm-svn: 112724
2010-09-01 18:32:56 +00:00
Owen Anderson
c637c49c11
Tentatively add correlated value propagation to the set of standard passes.
...
llvm-svn: 112723
2010-09-01 18:30:15 +00:00
Owen Anderson
73f988cafa
JumpThreading keeps LazyValueInfo up to date, so we don't need to rerun it
...
if we schedule another LVI-using pass afterwards.
llvm-svn: 112722
2010-09-01 18:27:22 +00:00
Eric Christopher
3ce9c4a65f
Add some more load types in.
...
llvm-svn: 112721
2010-09-01 18:01:32 +00:00
Douglas Gregor
9dc243c3eb
Improve libclang indexing support for class template specializations
...
in a few related ways:
- Don't recurse into instantiations of templates.
- Recurse into explicit specializations.
- Visit the template arguments of an explicit specialization or
explicit instantiation.
- Include template specialization arguments in the USRs for class
template specializations.
llvm-svn: 112720
2010-09-01 17:32:36 +00:00
Eric Christopher
a5d315c665
Speculatively revert 112699 and 112702, they seem to be causing
...
self host errors on clang-x86-64.
llvm-svn: 112719
2010-09-01 17:29:10 +00:00
Benjamin Kramer
2bd4cee516
StringRefize.
...
llvm-svn: 112718
2010-09-01 17:28:48 +00:00
Douglas Gregor
57879faf91
Make it clear that libclang does not modify the command-line arguments
...
it is given.
llvm-svn: 112717
2010-09-01 16:43:19 +00:00
Douglas Gregor
920cadf9ae
Add test for nothing... i.e., the contents of a USR for using directives
...
llvm-svn: 112716
2010-09-01 16:37:17 +00:00
Douglas Gregor
eece0eaa85
Transfer calling-convention attributes down to member function pointers.
...
llvm-svn: 112715
2010-09-01 16:29:03 +00:00
Chris Lattner
c19eaaa9d4
have the makefiles check the llvm-config error code instead of charging
...
on an producing weird link errors. Patch by Yuri Gribov!
llvm-svn: 112714
2010-09-01 16:11:17 +00:00
Chris Lattner
49a79412de
dead code patrol
...
llvm-svn: 112713
2010-09-01 16:06:39 +00:00
Chris Lattner
94f834348f
zap dead code.
...
llvm-svn: 112712
2010-09-01 16:04:34 +00:00
Chris Lattner
39eccb4754
temporarily revert r112664, it is causing a decoding conflict, and
...
the testcases should be merged.
llvm-svn: 112711
2010-09-01 16:00:50 +00:00
Chris Lattner
988fd16060
add a new version of mingw, patch by İsmail "cartman" Dönmez
...
in PR8049
llvm-svn: 112710
2010-09-01 15:51:58 +00:00
Chris Lattner
0073962025
when emitting an error about a missing } in a compound statement, emit
...
a "to match this {" note, pointing out the opener.
llvm-svn: 112709
2010-09-01 15:49:26 +00:00
Chris Lattner
2333b12c8a
zap dead code.
...
llvm-svn: 112708
2010-09-01 15:44:05 +00:00
Chris Lattner
ec8724f250
remove dead code.
...
llvm-svn: 112707
2010-09-01 15:39:31 +00:00
Dan Gohman
a2233f2801
Make tool_output_file's raw_ostream instance a member variable instead
...
of a base class.
This makes it possible to unregister the file from FilesToRemove when
the file is done. Also, this eliminates the need for
formatted_tool_output_file.
llvm-svn: 112706
2010-09-01 14:20:41 +00:00
Dan Gohman
e201c07d23
Add an interface for unregistering a file from the FilesToRemove list.
...
llvm-svn: 112705
2010-09-01 14:17:34 +00:00
Michael J. Spencer
d8e5dfccc1
COFF: Update tests to reflect changes in last commit.
...
llvm-svn: 112704
2010-09-01 14:15:31 +00:00
Michael J. Spencer
c582c7b5c9
COFF: Fix incorrect SCT_COMPLEX_TYPE_SHIFT. Add a few constants.
...
llvm-svn: 112703
2010-09-01 14:09:36 +00:00
Duncan Sands
4d51e3fd17
Use the SSAUpdator to turn calls to eh.exception that are not in a
...
landing pad into uses of registers rather than loads from a stack
slot. Doesn't touch the 'orrible hack code - Bill needs to persuade
me harder :)
llvm-svn: 112702
2010-09-01 14:07:47 +00:00
Dan Gohman
858806fb8b
Make the iterator form of erase return void, since it always succeeds,
...
and since this is what std::map and std::set do.
llvm-svn: 112701
2010-09-01 14:00:35 +00:00
Duncan Sands
2afaef80e9
Define LLVM_GLOBAL_VISIBILITY to be __declspec(dllexport) on
...
windows systems.
llvm-svn: 112700
2010-09-01 13:07:11 +00:00
Duncan Sands
f7b18437b5
If PrototypeValue is erased in the middle of using the SSAUpdator
...
then the SSAUpdator may access freed memory. Instead, simply pass
in the type and name explicitly, which is all that was used anyway.
llvm-svn: 112699
2010-09-01 10:29:33 +00:00
Duncan Sands
5e2e7d7ff3
Add convenience class for working with eh.exception calls.
...
llvm-svn: 112698
2010-09-01 09:26:00 +00:00
Dale Johannesen
e13c04d6da
Attempt to fix buildbot.
...
llvm-svn: 112697
2010-09-01 05:19:06 +00:00
Chris Lattner
34e5361eb5
add a gross hack to work around a problem that Argiris reported
...
on llvmdev: SRoA is introducing MMX datatypes like <1 x i64>,
which then cause random problems because the X86 backend is
producing mmx stuff without inserting proper emms calls.
In the short term, force off MMX datatypes. In the long term,
the X86 backend should not select generic vector types to MMX
registers. This is being worked on, but won't be done in time
for 2.8. rdar://8380055
llvm-svn: 112696
2010-09-01 05:14:33 +00:00