Dan Gohman
be474734a5
Add some comments.
...
llvm-svn: 102731
2010-04-30 18:33:41 +00:00
Dan Gohman
57bb73c80b
Remove the -disable-16bit command-line option, which is now obsolete.
...
llvm-svn: 102730
2010-04-30 18:30:26 +00:00
Jakob Stoklund Olesen
408459ffa6
Don't use floating point in SimpleRegisterCoalescing.
...
Rounding differences causes tests to fail on Linux.
llvm-svn: 102729
2010-04-30 18:28:11 +00:00
Dan Gohman
e0d8f9dbe9
Properly escape edge source and destination labels.
...
llvm-svn: 102728
2010-04-30 18:27:57 +00:00
Daniel Dunbar
9f84c7b600
Move include installation steps to better location, inside each include dir instead of at the top-level.
...
Also, don't set NO_INSTALL=1 for c-index-test.
llvm-svn: 102724
2010-04-30 17:59:38 +00:00
Dan Gohman
6221b85680
Add -o /dev/null to some tests which don't care about their output.
...
llvm-svn: 102722
2010-04-30 17:42:30 +00:00
Dan Gohman
e82c25e878
Apply a patch from Jan Sjodin to fix a compiler abort on vector
...
comparisons sign-extended to a different bitwidth than the
comparison operands.
llvm-svn: 102721
2010-04-30 17:19:19 +00:00
Daniel Dunbar
d411fcbc4c
Regenerate.
...
llvm-svn: 102720
2010-04-30 17:12:26 +00:00
Daniel Dunbar
e96fcbb085
Default OPTIMIZE_OPTION to -O2 on FreeBSD, at the request of the Clang/FreeBSD
...
folks. LLVM/Clang is miscompiled by the standard GCC at -O3.
llvm-svn: 102719
2010-04-30 17:12:23 +00:00
Benjamin Kramer
2073fcac2d
SmallBitVector: Rework find_first/find_next and tweak test to test them (at least on 64 bit platforms).
...
llvm-svn: 102712
2010-04-30 13:40:27 +00:00
David Chisnall
d6a6af6a53
Fixed incorrect type of alloca (GNU runtime).
...
llvm-svn: 102711
2010-04-30 13:36:12 +00:00
Abramo Bagnara
5009937f47
Add calling convention related attributes to related declaration. Mark attributes invalid on type related checking so to add them to declarations only when everything is ok.
...
llvm-svn: 102710
2010-04-30 13:10:51 +00:00
Benjamin Kramer
e2a98b1e90
Implement a read/write operator[] for SmallBitVector with a proxy class.
...
llvm-svn: 102709
2010-04-30 12:29:39 +00:00
Benjamin Kramer
120e6b748b
Make sure SmallBitVector actually uses the small case and fix latent bugs.
...
- We can't use PointerIntPair here since we require the discrimination bit to be in the LSB.
llvm-svn: 102707
2010-04-30 11:34:01 +00:00
Abramo Bagnara
b639ab9ffc
Attribute noreturn is now put in declaration attributes. Fixed a double warning generation.
...
llvm-svn: 102705
2010-04-30 09:13:03 +00:00
John McCall
5af1aa6393
An edge from a call expression to the exit block is only an abnormal edge
...
if *none* of the successors of the call expression is the exit block.
This matters when a call of bool type is the condition of (say) a while
loop in a function with no statements after the loop. This *can* happen
in C, but it's much more common in C++ because of overloaded operators.
Suppresses some substantial number of spurious -Wmissing-noreturn warnings.
llvm-svn: 102696
2010-04-30 07:10:06 +00:00
Douglas Gregor
8b895228d9
Fix ADL for types declared in transparent decls, from Alp Toker!
...
llvm-svn: 102695
2010-04-30 07:08:38 +00:00
Evan Cheng
5f2314f3a3
Fix test.
...
llvm-svn: 102694
2010-04-30 06:00:56 +00:00
Douglas Gregor
407e961645
Introduce a sequence number into class template partial
...
specializations, which keeps track of the order in which they were
originally declared. We use this number so that we can always walk the
list of partial specializations in a predictable order during matching
or template instantiation. This also fixes a failure in Boost.Proto,
where SourceManager::isBeforeInTranslationUnit was behaving
poorly in inconsistent ways.
llvm-svn: 102693
2010-04-30 05:56:50 +00:00
John McCall
b3cec96a7c
Account for the VTT argument when making an implicit copy constructor for
...
a class with virtual bases. Just a patch until Sema starts (correctly) doing
most of this analysis.
Fixes PR 6622.
llvm-svn: 102692
2010-04-30 05:56:45 +00:00
Douglas Gregor
1e13c5a8fb
When we start the definition of a class template, set the
...
InjectedClassNameType's Decl to point at the definition. It's a little
messy, but we do the same thing with classes and their record types,
since much of Clang expects that the TagDecl* one gets out of a type
is the definition. Fixes several Boost.Proto failures.
llvm-svn: 102691
2010-04-30 04:39:27 +00:00
Zhongxing Xu
526f504f06
Remove unused trait.
...
llvm-svn: 102690
2010-04-30 04:17:33 +00:00
Zhongxing Xu
685a1d818d
Refactor the AnalysisConsumer to analyze functions after the whole
...
translation unit is parsed. This enables us to inline some calls when still
analyzing one function at a time.
Actions are classified into Function, CXXMethod, ObjCMethod,
ObjCImplementation.
This does not hurt performance much. The analysis time for sqlite3.c:
before:
real 17m52.440s
user 17m49.460s
sys 0m2.010s
after:
real 18m0.500s
user 17m56.900s
sys 0m2.330s
DisplayProgress option is broken now. -inine-call action is removed. It
will be reenabled in another form, perhaps as an indenpendant option.
llvm-svn: 102689
2010-04-30 04:14:20 +00:00
John McCall
e7db86ddb0
Fix a tentative-parse error with unqualified template ids in cast expressions.
...
Also resolve a long-working FIXME in the test case I modified.
llvm-svn: 102688
2010-04-30 03:11:01 +00:00
Douglas Gregor
dead00f902
Fix pasto in this test
...
llvm-svn: 102687
2010-04-30 03:07:23 +00:00
Douglas Gregor
6602c25c0c
Add Clang version inspection macros. Fixes PR6681.
...
llvm-svn: 102686
2010-04-30 02:51:06 +00:00
John McCall
48bf349471
Fix -fno-rtti -fexceptions by forcing the emission of (non-"builtin") RTTI
...
when used by the exceptions routines. Fixes PR 6974.
llvm-svn: 102684
2010-04-30 01:15:21 +00:00
Evan Cheng
5117a555e0
Another sibcall bug. If caller and callee calling conventions differ, then it's only safe to do a tail call if the results are returned in the same way.
...
llvm-svn: 102683
2010-04-30 01:12:32 +00:00
Nate Begeman
4a623eed26
logical ops, unary ops, pairwise ops
...
llvm-svn: 102681
2010-04-30 00:46:57 +00:00
Dan Gohman
587e0800e5
Temporarily disable SelectionDAG kill flags, which are causing trouble.
...
llvm-svn: 102680
2010-04-30 00:32:51 +00:00
Jeffrey Yasskin
0a1513902f
Fix the OProfileJITEventListener build after r101844 removed
...
MachineFunction::DefaultDebugLoc. We now use the same technique as
DwarfDebug::beginFunction to find the starting line number for a
function.
llvm-svn: 102679
2010-04-30 00:16:10 +00:00
Dan Gohman
ac55510c4e
Set register kill flags on the SelectionDAG path, at least in the
...
easy cases.
llvm-svn: 102678
2010-04-30 00:08:21 +00:00
John McCall
dac3ea6e8d
Teach EHCleanupBlock to deal appropriately with the possibility that there
...
might not have been an insertion block set at start. Fixes PR6975.
llvm-svn: 102677
2010-04-30 00:06:43 +00:00
Anders Carlsson
786a3d910e
Get the base class addresses before calling EmitClassCopyAssignment.
...
llvm-svn: 102676
2010-04-30 00:04:01 +00:00
Anders Carlsson
2b4ec8d003
Remove an unnecessary argument to EmitClassCopyAssignment.
...
llvm-svn: 102674
2010-04-29 23:51:42 +00:00
John McCall
99b2fe5f54
Rebuild the nested name specifiers in member-pointer declarator chunks when
...
entering the current instantiation. Set up a little to preserve type location
information for typename types while we're in there.
Fixes a Boost failure.
llvm-svn: 102673
2010-04-29 23:50:39 +00:00
Jakob Stoklund Olesen
8d4214578d
Reject really weird coalescer case when trying to merge identical subregisters
...
of different register classes. e.g.
%reg1048:3<def> = EXTRACT_SUBREG %RAX<kill>, 3
Where %reg1048 is a GR32 register. This is not impossible to handle, but it is
pretty hard and very rare.
This should unbreak the dragonegg builder.
llvm-svn: 102672
2010-04-29 23:47:46 +00:00
Charles Davis
b2403ee273
Fix build with MSVC.
...
llvm-svn: 102671
2010-04-29 23:44:00 +00:00
Nick Lewycky
83e3060f08
The llc -f flag was removed.
...
llvm-svn: 102670
2010-04-29 23:37:44 +00:00
Nate Begeman
723169d8ec
Comparisons.
...
llvm-svn: 102669
2010-04-29 23:36:09 +00:00
Dan Gohman
0fd54fbbcf
Don't leave Base.FrameIndex uninitialized, so that it doesn't
...
print randomly in debug output.
llvm-svn: 102668
2010-04-29 23:30:41 +00:00
Chris Lattner
9d186478c0
add some more (void)'s to prototypes for PR6961
...
llvm-svn: 102667
2010-04-29 23:27:32 +00:00
Dan Gohman
35cd68c888
Fix typos in assertion strings.
...
llvm-svn: 102666
2010-04-29 23:25:34 +00:00
Ted Kremenek
d8a23f988d
Do not enable '-analyze-check-security-syntactic' by default when using '--analyze'. There
...
are several known issues to address for it should be turned on by default.
llvm-svn: 102664
2010-04-29 22:50:22 +00:00
Jakob Stoklund Olesen
e2550f4f93
Slightly verboser debug spew from coalescer
...
llvm-svn: 102663
2010-04-29 22:21:48 +00:00
Devang Patel
02b2574d06
Missed earlier. This is part of previous check-in. (r102661 - refactor.)
...
llvm-svn: 102662
2010-04-29 20:48:12 +00:00
Devang Patel
0395553e35
Refactor.
...
llvm-svn: 102661
2010-04-29 20:40:36 +00:00
Dale Johannesen
6feac8a39b
Make naked functions work on PPC.
...
llvm-svn: 102657
2010-04-29 19:32:19 +00:00
Devang Patel
080e4fb2f0
Print variable scope name in DEBUG_VALUE comment. Useful in some cases. e.g.
...
##DEBUG_VALUE: runOnMachineFunction:this <- RDI+0
##DEBUG_VALUE: runOnMachineFunction:fn <- RSI+0
##DEBUG_VALUE: DeadDefs <- undef ## SimpleRegisterCoalescing.cpp:2706
##DEBUG_VALUE: getRegInfo:this <- [%rsp+$56]+$0
##DEBUG_VALUE: getTarget:this <- [%rsp+$56]+$0
llvm-svn: 102655
2010-04-29 18:52:10 +00:00
Evan Cheng
6e7ca24907
Remove DBG_VALUE which reference dead stack slots.
...
llvm-svn: 102654
2010-04-29 18:51:00 +00:00