Eli Friedman
dbe2aa91b9
A couple minor README updates.
...
llvm-svn: 91823
2009-12-21 08:03:16 +00:00
Chris Lattner
a0a51c7b0e
improve compatibility with SWIG, patch by James Knight!
...
llvm-svn: 91822
2009-12-21 07:52:40 +00:00
Chris Lattner
4edfcb88e1
revert r89298, which was committed without a testcase. I think
...
the underlying PHI node insertion issue in SSAUpdate is fixed.
llvm-svn: 91821
2009-12-21 07:45:57 +00:00
Chris Lattner
8fb07c5a21
fix PR5837 by having SSAUpdate reuse phi nodes for the
...
'GetValueInMiddleOfBlock' case, instead of inserting
duplicates.
A similar fix is almost certainly needed by the machine-level
SSAUpdate implementation.
llvm-svn: 91820
2009-12-21 07:16:11 +00:00
Chris Lattner
080f666e01
add a helper ctor.
...
llvm-svn: 91819
2009-12-21 07:15:15 +00:00
Zhongxing Xu
fd62a33616
Add comments.
...
llvm-svn: 91818
2009-12-21 06:52:24 +00:00
Eli Friedman
00879d8faa
Change StringRef::startswith and StringRef::endswith to versions which are a
...
bit more verbose, but optimize to much shorter code.
llvm-svn: 91817
2009-12-21 06:49:24 +00:00
Chris Lattner
7bc85a931e
add check lines for min/max tests.
...
llvm-svn: 91816
2009-12-21 06:08:50 +00:00
Chris Lattner
33269813df
really convert this to filecheck.
...
llvm-svn: 91815
2009-12-21 06:06:10 +00:00
Chris Lattner
d4fb4296df
give instcombine some helper functions for matching MIN and MAX, and
...
implement some optimizations for MIN(MIN()) and MAX(MAX()) and
MIN(MAX()) etc. This substantially improves the code in PR5822 but
doesn't kick in much elsewhere. 2 max's were optimized in
pairlocalalign and one in smg2000.
llvm-svn: 91814
2009-12-21 06:03:05 +00:00
Chris Lattner
7a72d50de7
filecheckize
...
llvm-svn: 91813
2009-12-21 05:53:13 +00:00
Chris Lattner
ffbd02829c
enhance x-(-A) -> x+A to preserve NUW/NSW.
...
Use the presence of NSW/NUW to fold "icmp (x+cst), x" to a constant in
cases where it would otherwise be undefined behavior.
Surprisingly (to me at least), this triggers hundreds of the times in
a few benchmarks: lencode, ldecode, and 466.h264ref seem to *really*
like this.
llvm-svn: 91812
2009-12-21 04:04:05 +00:00
Chris Lattner
900ce231f9
Optimize all cases of "icmp (X+Cst), X" to something simpler. This triggers
...
a bunch in lencode, ldecod, spass, 176.gcc, 252.eon, among others. It is
also the first part of PR5822
llvm-svn: 91811
2009-12-21 03:19:28 +00:00
Chris Lattner
d18b455086
convert to filecheck
...
llvm-svn: 91810
2009-12-21 03:11:05 +00:00
Eli Friedman
9025ec2ee5
Fix for PR5840: fix the kind of name lookup used for classes in
...
Sema::getTypeName.
"LookupNestedNameSpecifierName" isn't quite the right kind of lookup, though;
it doesn't ignore namespaces. Someone more familiar with the lookup code
should fix this properly.
llvm-svn: 91809
2009-12-21 01:42:38 +00:00
Eli Friedman
a26001bf96
Small comment fix.
...
llvm-svn: 91808
2009-12-21 01:26:45 +00:00
Chris Lattner
3a6af3de6c
indentation fix
...
llvm-svn: 91807
2009-12-21 01:10:56 +00:00
Anders Carlsson
9a98ac993f
Add tests for structs inside anonymous namespaces.
...
llvm-svn: 91806
2009-12-21 00:57:38 +00:00
Anders Carlsson
2b7f444366
Incomplete structs should also have internal linkage.
...
llvm-svn: 91805
2009-12-21 00:41:42 +00:00
Anders Carlsson
18e6ee1b20
Correcly handle pointers to member pointer types where the class or the pointee is incomplete.
...
llvm-svn: 91804
2009-12-20 23:37:55 +00:00
Nuno Lopes
518e370719
fix PR4010: add support for the warn_unused_result for function pointers
...
llvm-svn: 91803
2009-12-20 23:11:08 +00:00
Chris Lattner
1576850a76
fix PR5500: clang fails to parse inline asm with :: in C++ mode
...
llvm-svn: 91802
2009-12-20 23:08:04 +00:00
Chris Lattner
bf5fff5fbb
refactor asm stmt parsing to avoid nesting as much, and
...
pull ':' eating out of ParseAsmOperandsOpt.
llvm-svn: 91801
2009-12-20 23:00:41 +00:00
Chris Lattner
2fe080c83e
a really old testcase I apparently forgot to 'svn add'.
...
llvm-svn: 91800
2009-12-20 23:00:15 +00:00
Anders Carlsson
d008129f34
Rework the way pointer types are handled by the RTTI builder. We now get the right linkage for indirect pointers to incomplete structs.
...
llvm-svn: 91799
2009-12-20 22:30:54 +00:00
Eli Friedman
7dac3712a2
Make sure we instantiate the destructor for variables initialized by
...
assignment.
llvm-svn: 91798
2009-12-20 22:29:11 +00:00
Eli Friedman
4afe9a3518
Fix review comment; no visible change.
...
llvm-svn: 91797
2009-12-20 22:12:03 +00:00
Douglas Gregor
39c778b443
Switch default-initialization of variables of class type (or array thereof) over to InitializationSequence. I could swear that this fixes a PR somewhere, but I couldn't figure out which one
...
llvm-svn: 91796
2009-12-20 22:01:25 +00:00
Douglas Gregor
1b6d10555f
Revert accidental commit
...
llvm-svn: 91795
2009-12-20 21:10:58 +00:00
Douglas Gregor
b752f1e25c
Fix CMake build on windows, from Cedric Venet
...
llvm-svn: 91794
2009-12-20 20:56:30 +00:00
John McCall
1c7e6ec27b
Don't inject the class name until that magical lbrace.
...
Because of the rules of base-class lookup* and the restrictions on typedefs, it
was actually impossible for this to cause any problems more serious than the
spurious acceptance of
template <class T> class A : B<A> { ... };
instead of
template <class T> class A : B<A<T> > { ... };
but I'm sure we can all agree that that is a very important restriction which
is well worth making another Parser->Sema call for.
(*) n.b. clang++ does not implement these rules correctly; we are not ignoring
non-type names
llvm-svn: 91792
2009-12-20 07:58:13 +00:00
John McCall
bffb990c23
Test the lookup I wasn't sure would be done properly after the last patch.
...
Clang reasonably adds all the base specifiers in one pass; this is now required
for correctness to prevent lookup from going mad. But this has the advantage of
establishing the correct context when looking up base specifiers, which will be
important for access control.
llvm-svn: 91791
2009-12-20 05:57:29 +00:00
Lang Hames
0209f50c0d
Fixed use of phi param in SlotIndex constructors.
...
llvm-svn: 91790
2009-12-19 23:32:32 +00:00
John McCall
2d814c305e
Parse base specifiers within the scope of the class. This is possibly not
...
quite right; I'll come back to it later. It does fix PR 5741.
llvm-svn: 91789
2009-12-19 21:48:58 +00:00
Chris Lattner
25bf6f8946
fix an overly conservative caching issue that caused memdep to
...
cache a pointer as being unavailable due to phi trans in the
wrong place. This would cause later queries to fail even when
they didn't involve phi trans.
llvm-svn: 91787
2009-12-19 21:29:22 +00:00
Daniel Dunbar
039d6e11a8
CMake: Update lib deps.
...
llvm-svn: 91786
2009-12-19 21:27:30 +00:00
Chris Lattner
f0b0cb2dcb
comments shouldn't go in the AST, and we already make it easy
...
to go from a decl to the doc comments for it.
llvm-svn: 91785
2009-12-19 20:59:13 +00:00
Chris Lattner
5c13f389cb
.llx is no more.
...
llvm-svn: 91784
2009-12-19 20:56:53 +00:00
Chris Lattner
95b431dd32
fix inconsistent use of tabs
...
llvm-svn: 91783
2009-12-19 20:44:43 +00:00
Daniel Dunbar
535dc0a5e2
Remove another ';' after method definition.
...
llvm-svn: 91781
2009-12-19 18:58:59 +00:00
Daniel Dunbar
877075a41f
Remove unused variable (noticed by clang++).
...
llvm-svn: 91780
2009-12-19 18:58:49 +00:00
Daniel Dunbar
e017ecc9e2
Remove ';' after method definition. Noticed by clang++, which one would think
...
would have a higher respect for its own code. This is getting old, is this
warning really adding value?
llvm-svn: 91779
2009-12-19 17:50:07 +00:00
Daniel Dunbar
4750efc28a
#if 0 out X86 disassembler for now, it is breaking the build in multiple places.
...
llvm-svn: 91778
2009-12-19 17:11:53 +00:00
Sanjiv Gupta
8ac077df57
Emit direction operand in binary insns that stores in memory.
...
llvm-svn: 91777
2009-12-19 13:52:01 +00:00
Sanjiv Gupta
bdef02be69
Adding a bunch of options to the mcc16 driver.
...
llvm-svn: 91776
2009-12-19 13:13:29 +00:00
Nuno Lopes
3ed6d6003c
rename dprintf to dbgpritnf, in order to fix build with glibc (which already defines dprintf in stdio.h
...
llvm-svn: 91775
2009-12-19 12:07:00 +00:00
Nuno Lopes
91b866a163
fix build and while at it remove a redudant include
...
llvm-svn: 91774
2009-12-19 11:52:18 +00:00
Sanjiv Gupta
bda8002e7f
Test cases for changes done in 91768.
...
llvm-svn: 91773
2009-12-19 11:38:14 +00:00
John McCall
b878801046
Kill off PreDeclaratorDC.
...
llvm-svn: 91772
2009-12-19 10:53:49 +00:00
John McCall
6df5fef637
Refactor to remove more dependencies on PreDeclaratorDC. I seem to have made
...
the redeclaration problems in the [temp.explicit]p3 testcase worse, but I can
live with that; they'll need to be fixed more holistically anyhow.
llvm-svn: 91771
2009-12-19 10:49:29 +00:00