Mikhail Glushenkov
f552ed69f9
Cosmetic fixes: include guards.
...
llvm-svn: 65824
2009-03-02 09:02:28 +00:00
Mikhail Glushenkov
a9780b2202
Plugin::Priority() doesn't need to be pure virtual.
...
llvm-svn: 65823
2009-03-02 09:02:01 +00:00
Mikhail Glushenkov
661f4c9131
Add a comment.
...
llvm-svn: 65822
2009-03-02 09:01:39 +00:00
Mikhail Glushenkov
931d4521c3
Reorganize llvmc code.
...
Move the code from 'llvmc/driver' into a new CompilerDriver library, and change
the build system accordingly. Makes it easier for projects using LLVM to build
their own llvmc-based drivers.
Tested with objdir != srcdir.
llvm-svn: 65821
2009-03-02 09:01:14 +00:00
Zhongxing Xu
57359cad17
remove an implemented fixme.
...
llvm-svn: 65817
2009-03-02 08:25:09 +00:00
Bill Wendling
89cd82f5da
Random formatting changes.
...
llvm-svn: 65815
2009-03-02 07:54:14 +00:00
Zhongxing Xu
e7d1493216
Initial support for pointer arithmetic. Only support concrete indexes and
...
offsets for now.
llvm-svn: 65814
2009-03-02 07:52:23 +00:00
Bill Wendling
b3921bf12e
Fix typos.
...
llvm-svn: 65813
2009-03-02 07:42:15 +00:00
Daniel Dunbar
dd9427133a
Avoid crash when child iterator gives null result.
...
llvm-svn: 65812
2009-03-02 07:00:57 +00:00
Daniel Dunbar
51adf5824e
Rename lib/Driver (etc) to lib/Frontend in prep for the *actual*
...
driver taking lib/Driver.
llvm-svn: 65811
2009-03-02 06:16:29 +00:00
Daniel Dunbar
b4e80a5b19
ABITestGen: Add v2i16 and v16f32 as default vector types to generate.
...
llvm-svn: 65810
2009-03-02 06:14:33 +00:00
Daniel Dunbar
76b7acc49f
First cut at zero-cost EH support.
...
- Still manually generates the EH code; the parts related to cleanup
need to be integrated into the cleanup stack (for proper
interaction with VLAs, etc.).
- Some differences vs gcc in corner cases; I believe our behavior is
correct but need to verify/file bugs vs gcc.
llvm-svn: 65809
2009-03-02 06:08:11 +00:00
Daniel Dunbar
7a38ce4f88
Make sure to invoke (not call) to objc_exception_throw if necessary.
...
llvm-svn: 65808
2009-03-02 05:20:36 +00:00
Daniel Dunbar
a646834214
Fix completely broken thinko in GetClassGlobal.
...
llvm-svn: 65807
2009-03-02 05:18:14 +00:00
Daniel Dunbar
0f3403cb5a
Don't set nounwind on functions when in using the new Obj-C ABI.
...
llvm-svn: 65806
2009-03-02 04:58:03 +00:00
Daniel Dunbar
b960b7b7c7
Cleanup handling of function attributes in calls.
...
- No intended functionality change.
llvm-svn: 65805
2009-03-02 04:32:35 +00:00
Bill Wendling
f170d2e6c8
Change </pp> to </p>.
...
llvm-svn: 65804
2009-03-02 04:28:57 +00:00
Bill Wendling
87adbe4836
- Use "real-world applications" instead of just "real applications".
...
- Verification Fixes.
llvm-svn: 65803
2009-03-02 04:28:18 +00:00
Gordon Henriksen
29a25ebbd9
Make some improvements to the GC docs.
...
Also, drop reference to the half-baked runtime interface.
llvm-svn: 65802
2009-03-02 03:47:20 +00:00
Gordon Henriksen
3de1a09c86
Drop toy GC runtime.
...
llvm-svn: 65801
2009-03-02 03:46:48 +00:00
Chris Lattner
0ed1aa830b
remove empty section
...
llvm-svn: 65800
2009-03-02 03:24:41 +00:00
Chris Lattner
d434bfbdc4
more englishification
...
llvm-svn: 65799
2009-03-02 03:24:11 +00:00
Mike Stump
0e425b8200
Push checking down, also, give the user a hit as to which part of the
...
block literal is causing the problem, instead of the vague reference
to the entire block literal.
llvm-svn: 65798
2009-03-02 03:04:42 +00:00
Chris Lattner
d1094e032f
start translating this into Engrish and organizing it.
...
llvm-svn: 65797
2009-03-02 02:37:32 +00:00
Douglas Gregor
5a80bd1504
Rework the way we find locally-scoped external declarations when we
...
need them to evaluate redeclarations or call a function that hasn't
already been declared. We now keep a DenseMap of these locally-scoped
declarations so that they are not visible but can be quickly found,
e.g., when we're looking for previous declarations or before we go
ahead and implicitly declare a function that's being called. Fixes
PR3672.
llvm-svn: 65792
2009-03-02 00:19:53 +00:00
Nate Begeman
a9e981225e
Fix a problem with DAGCombine on 64b targets where folding
...
extracts + build_vector into a shuffle would fail, because the
type of the new build_vector would not be legal. Try harder to
create a legal build_vector type. Note: this will be totally
irrelevant once vector_shuffle no longer takes a build_vector for
shuffle mask.
New:
_foo:
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
subps %xmm1, %xmm1
mulps %xmm0, %xmm1
addps %xmm0, %xmm1
movaps %xmm1, 0
Old:
_foo:
xorps %xmm0, %xmm0
movss %xmm0, %xmm1
xorps %xmm2, %xmm2
unpcklps %xmm1, %xmm2
pshufd $80, %xmm1, %xmm1
unpcklps %xmm1, %xmm2
pslldq $16, %xmm2
pshufd $57, %xmm2, %xmm1
subps %xmm0, %xmm1
mulps %xmm0, %xmm1
addps %xmm0, %xmm1
movaps %xmm1, 0
llvm-svn: 65791
2009-03-01 23:44:07 +00:00
Chris Lattner
705f0b764e
move gold plugin next to LTO doc in the subsystem section
...
llvm-svn: 65790
2009-03-01 23:42:51 +00:00
Nick Lewycky
b750d2266d
Add a quickstart example.
...
llvm-svn: 65789
2009-03-01 21:55:10 +00:00
Anders Carlsson
5878c797b3
Add BLOCK_HAS_DESCRIPTOR to global blocks.
...
llvm-svn: 65788
2009-03-01 21:09:29 +00:00
Nick Lewycky
d70c8a8da6
Close list item tag, to conform with the style in this file. It's optional
...
anyways.
llvm-svn: 65787
2009-03-01 21:07:44 +00:00
Nick Lewycky
f268c6b2a3
Add the gold plugin page to the documentation index!
...
llvm-svn: 65786
2009-03-01 21:06:42 +00:00
Nick Lewycky
236e926c5b
Cleanup the description of flags to llvm-gcc. Also remove stray text in the
...
attribution.
llvm-svn: 65785
2009-03-01 20:58:07 +00:00
Mike Stump
3a139f3793
Be sure to mark blocks with no imports as being global.
...
llvm-svn: 65784
2009-03-01 20:07:53 +00:00
Nick Lewycky
6d1fc5c7e4
Don't forget the important part. llvm-gcc -use-gold-plugin passes the right
...
options to gold.
llvm-svn: 65783
2009-03-01 18:48:53 +00:00
Chris Lattner
a01c21f616
simplify some code.
...
llvm-svn: 65782
2009-03-01 18:47:06 +00:00
Mikhail Glushenkov
254225489a
Sprinkle llvmc notes with <tt>.
...
Also removes some trailing whitespace.
llvm-svn: 65781
2009-03-01 18:09:47 +00:00
Steve Naroff
8676e08730
Fix <rdar://problem/6248764> parser rejects: bad receiver type 'CFStringRef'.
...
Downgrade an error to a warning (for GCC compatibility).
llvm-svn: 65779
2009-03-01 17:14:31 +00:00
Gabor Greif
144fa6a08a
Another sentinel optimization. This one should always
...
be a win, since almost every interesting function has at least one Argument.
llvm-svn: 65778
2009-03-01 17:13:15 +00:00
Douglas Gregor
5741efbba0
Fix PR3509 by providing correct starting locations for initializer lists
...
llvm-svn: 65777
2009-03-01 17:12:46 +00:00
Gabor Greif
6f8d4ae3c0
Reuse a technique (pioneered for BasicBlocks) of superposing ilist with
...
its sentinel. This is quite a win when a function really has a basic block.
When the function is just a declaration (and stays so) the old way did not
allocate a sentinel. So this change is most beneficial when the ratio of
function definition to declaration is high. I.e. linkers etc. Incidentally
these are the most resource demanding applications, so I expect that the
reduced malloc traffic, locality and space savings outweigh the cost of
addition of two pointers to Function.
llvm-svn: 65776
2009-03-01 16:38:10 +00:00
Duncan Sands
491f9e89ae
Functions marked malloc are noalias return.
...
llvm-svn: 65775
2009-03-01 16:19:31 +00:00
Steve Naroff
114aecb26b
Fix <rdar://problem/6619539> incompatible pointer types sending 'XCElementSpacer *', expected 'XCElement *' (not handling protocol signatures correctly?).
...
- Reworked ASTContext::canAssignObjCInterfaces().
- Added ObjCProtocolDecl::lookupProtocolNamed().
llvm-svn: 65773
2009-03-01 16:12:44 +00:00
Duncan Sands
3d23bb03c1
Tweak this a bit.
...
llvm-svn: 65772
2009-03-01 15:19:03 +00:00
Duncan Sands
ef821b5fbe
Adjust this test for recent llvm-gcc changes.
...
llvm-svn: 65771
2009-03-01 15:01:51 +00:00
Nick Lewycky
b603c73e76
Fix grammar.
...
llvm-svn: 65769
2009-03-01 09:51:07 +00:00
Gabor Greif
b122c4cb1d
fix a comment
...
llvm-svn: 65768
2009-03-01 09:45:52 +00:00
Gabor Greif
19b2d443b5
Fix a typo. Thanks baldrick!
...
llvm-svn: 65767
2009-03-01 09:43:41 +00:00
Nick Lewycky
0a71fa9dc3
First pass at a document describing how to achieve LTO on Linux with gold.
...
llvm-svn: 65766
2009-03-01 09:38:29 +00:00
Duncan Sands
2166cb7673
Another point to mention.
...
llvm-svn: 65765
2009-03-01 08:26:19 +00:00
Ted Kremenek
07e95680fd
Rename AnonTypedRegion to TypedViewRegion.
...
llvm-svn: 65764
2009-03-01 05:44:08 +00:00