Daniel Dunbar
400c040e01
Chase LLVM TOT in circles (i.e., revert r63773 to match revert of
...
r63765).
llvm-svn: 63795
2009-02-04 23:40:00 +00:00
Daniel Dunbar
56e7552c73
Add ABIArgInfo::dump()
...
llvm-svn: 63794
2009-02-04 23:24:38 +00:00
Dale Johannesen
f08a47bb70
Remove non-DebugLoc forms of CopyToReg and CopyFromReg.
...
Adjust callers.
llvm-svn: 63789
2009-02-04 23:02:30 +00:00
Dale Johannesen
ae616c2c61
Reverting 63765. This broke the build of both clang
...
and llvm-gcc.
llvm-svn: 63786
2009-02-04 22:47:25 +00:00
Douglas Gregor
fc4f8a1834
Implement semantic analysis for the GNU flexible array initialization
...
extension. The interaction with designated initializers is a
bit... interesting... but we follow GNU's lead and don't permit too
much crazy code in this area.
Also, make the "excess initializers" error message a bit more
informative.
Addresses PR2561: http://llvm.org/bugs/show_bug.cgi?id=2561
llvm-svn: 63785
2009-02-04 22:46:25 +00:00
Mike Stump
82f071faa7
Add support for blocks with explicit return types.
...
llvm-svn: 63784
2009-02-04 22:31:32 +00:00
Daniel Dunbar
46353ece18
Use correct signature for calling enumeration mutation function.
...
llvm-svn: 63782
2009-02-04 22:00:33 +00:00
Devang Patel
916fdce16d
Ignore dbg intrinsics.
...
llvm-svn: 63781
2009-02-04 21:39:48 +00:00
Daniel Dunbar
fb5fdf1f14
Temporarily disable caching of ABI results; this is going horribly
...
wrong in some cases.
llvm-svn: 63780
2009-02-04 21:36:22 +00:00
Sebastian Redl
18f8ff62a3
Implement taking address of member functions, including overloaded ones.
...
llvm-svn: 63779
2009-02-04 21:23:32 +00:00
Daniel Dunbar
ed9309ef46
ccc: Forward -femit-all-decls to clang and use an option group to
...
simplify handling of -f options clang recognizes.
llvm-svn: 63778
2009-02-04 21:21:08 +00:00
Daniel Dunbar
fa803cd260
Test case for -femit-all-decls.
...
llvm-svn: 63777
2009-02-04 21:20:25 +00:00
Daniel Dunbar
1e8052b36d
Add -femit-all-decls codegen option.
...
- Emits all declarations, even unused (static) ones.
- Useful when doing minimization of codegen problems (otherwise
problems localized to a static function aren't minimized well).
llvm-svn: 63776
2009-02-04 21:19:06 +00:00
Daniel Dunbar
a45bdbbb6a
Add asserts that the function signature matches the other arguments provide
...
to CGCall functions.
llvm-svn: 63775
2009-02-04 21:17:21 +00:00
Mon P Wang
4cf5f3a7e5
Add test case for r63760.
...
llvm-svn: 63774
2009-02-04 21:10:56 +00:00
Daniel Dunbar
91b73d441e
(llvm up) Update for intrinsic lookup changes.
...
llvm-svn: 63773
2009-02-04 21:09:15 +00:00
Nate Begeman
94fefbc98e
Remove now-incorrect test.
...
llvm-svn: 63772
2009-02-04 21:07:37 +00:00
Torok Edwin
a488ee0e35
Alphabetize includes. Update comment.
...
llvm-svn: 63771
2009-02-04 21:00:02 +00:00
Fariborz Jahanian
e4dc35deb9
Some early code for objc2's nonfragile abi messaging.
...
llvm-svn: 63770
2009-02-04 20:42:28 +00:00
Fariborz Jahanian
b73a23e47e
Patch fixes messaging for GNU runtime.
...
Patch by David Chisnall
llvm-svn: 63769
2009-02-04 20:31:19 +00:00
Stuart Hastings
556bd92698
80 column rule.
...
llvm-svn: 63768
2009-02-04 20:30:10 +00:00
Dale Johannesen
021052a705
Remove non-DebugLoc versions of getLoad and getStore.
...
Adjust the many callers of those versions.
llvm-svn: 63767
2009-02-04 20:06:27 +00:00
Chris Lattner
2e731e369c
smaller header.
...
llvm-svn: 63766
2009-02-04 19:47:38 +00:00
Nate Begeman
6ae3aa83d0
New feature: add support for target intrinsics being defined in the
...
target directories themselves. This also means that VMCore no longer
needs to know about every target's list of intrinsics. Future work
will include converting the PowerPC target to this interface as an
example implementation.
llvm-svn: 63765
2009-02-04 19:47:21 +00:00
Chris Lattner
022923a22a
Fix PR3464 by searching for headers from the predefines
...
buffer as if the #include happened from the main file.
llvm-svn: 63764
2009-02-04 19:45:07 +00:00
Chris Lattner
7ead0396f6
Ok, we need a system header for this test to pass in the clang/test directory as well as from the pp directory.
...
llvm-svn: 63763
2009-02-04 19:44:14 +00:00
Chris Lattner
988dff84f1
fix test
...
llvm-svn: 63762
2009-02-04 19:40:02 +00:00
Chris Lattner
2f7bb79c86
rename again
...
llvm-svn: 63761
2009-02-04 19:38:30 +00:00
Mon P Wang
34650735d0
Avoids generating a legalization assert for the case where a vector type is legal
...
but when legalizing the operation, we split the vector type and generate a library
call whose type needs to be promoted. For example, X86 with SSE on but MMX off,
a divide v2i64 will be scalarized to 2 calls to a library using i64.
llvm-svn: 63760
2009-02-04 19:38:14 +00:00
Chris Lattner
4a82a24108
rename some tests
...
llvm-svn: 63759
2009-02-04 19:38:12 +00:00
Chris Lattner
3b04af73f1
include smaller header for test.
...
llvm-svn: 63758
2009-02-04 19:37:49 +00:00
Chris Lattner
29321443f6
add DeclTemplate.h/cpp
...
llvm-svn: 63757
2009-02-04 19:21:34 +00:00
Douglas Gregor
ec6e1893d7
Improve documentation for Sema::getTypeName. Also, it's return type is
...
DeclTy*, not TypeTy*.
llvm-svn: 63756
2009-02-04 19:16:12 +00:00
Torok Edwin
c409c77817
mention that PIC is needed for libLTO and libLLVMgold
...
llvm-svn: 63755
2009-02-04 19:12:25 +00:00
Douglas Gregor
4ab311dc30
Note the Radar number that corresponds to PR3137
...
llvm-svn: 63754
2009-02-04 19:10:27 +00:00
Ted Kremenek
77de9885f8
Update checker build.
...
llvm-svn: 63753
2009-02-04 19:09:38 +00:00
Chris Lattner
e84a7911c4
Bill implemented this.
...
llvm-svn: 63752
2009-02-04 19:09:07 +00:00
Chris Lattner
553fd7e1eb
add a note, this is why we're faster at SciMark-MonteCarlo with
...
SSE disabled.
llvm-svn: 63751
2009-02-04 19:08:01 +00:00
Douglas Gregor
ded2d7b021
Basic representation of C++ class templates, from Andrew Sutton.
...
llvm-svn: 63750
2009-02-04 19:02:06 +00:00
Eli Friedman
cddff7fd62
Test for PR3137.
...
llvm-svn: 63749
2009-02-04 18:50:00 +00:00
Evan Cheng
9ec370f748
Skip over zero registers.
...
llvm-svn: 63748
2009-02-04 18:18:58 +00:00
Chris Lattner
370ec10dad
allow main to have any integer type.
...
llvm-svn: 63743
2009-02-04 17:48:18 +00:00
Torok Edwin
a2794dba04
remove printf - it was there only for debugging!
...
llvm-svn: 63742
2009-02-04 17:40:28 +00:00
Torok Edwin
4b35a81845
add support for .a files containing LLVM IR to the gold plugin
...
llvm-svn: 63741
2009-02-04 17:39:30 +00:00
Dan Gohman
556d14d483
Minor code cleanups; no functionality change.
...
llvm-svn: 63740
2009-02-04 17:28:58 +00:00
Douglas Gregor
2ada048975
Some name-lookup-related fixes, from Piotr Rak!
...
- Changes Lookup*Name functions to return NamedDecls, instead of
Decls. Unfortunately my recent statement that it will simplify lot of
code, was not quite right, but it simplifies some...
- Makes MergeLookupResult SmallPtrSet instead of vector, following
Douglas suggestions.
- Adds %qN format for printing qualified names to Diagnostic.
- Avoids searching for using-directives in Scopes, which are not
DeclScope, during unqualified name lookup.
llvm-svn: 63739
2009-02-04 17:27:36 +00:00
Steve Naroff
189d41f625
Fix <rdar://problem/6552648> error: redefinition of 'XCElementAnchorDelegate' as different kind of symbol.
...
At first glance, this looked like a recent regression (possibly created by http://llvm.org/viewvc/llvm-project?view=rev&revision=63354 , which was the only recent change to this section of Sema::ActOnStartClassInterface()). After more investigation, it looks like an edge case bug that we didn't cover in our tests.
llvm-svn: 63738
2009-02-04 17:14:05 +00:00
Douglas Gregor
8a6be5ec64
Diagnose ambiguities in getTypeName. Fixes http://llvm.org/bugs/show_bug.cgi?id=3475
...
llvm-svn: 63737
2009-02-04 17:00:24 +00:00
Stuart Hastings
ffee3d831a
Since I'm obliged to work with a development OS that currently doesn't
...
support GraphViz, I've been using the foo->dump() facility. This
patch is a minor rewrite to the SelectionDAG dump() stuff to make it a
little more helpful. The existing foo->dump() functionality does not
change; this patch adds foo->dumpr(). All of this is only useful when
running LLVM under a debugger.
llvm-svn: 63736
2009-02-04 16:46:19 +00:00
Douglas Gregor
94eabf3355
Bring operator name lookup (as required for C++ operator overloading)
...
into the general name-lookup fold. This cleans up some ugly,
not-quite-working code in the handling of operator overloading.
llvm-svn: 63735
2009-02-04 16:44:47 +00:00