Dan Gohman
d776b6e51d
Fix a missing word.
...
llvm-svn: 62720
2009-01-21 21:54:44 +00:00
Dan Gohman
01d7dd8607
Versions of VIM included with Intrepid and Leopard at least appear
...
to handle symlinks just fine, so reword the instructions in the
README accordingly.
llvm-svn: 62719
2009-01-21 21:52:42 +00:00
Dan Gohman
3155533003
Enable syntax highlighting of LLVM and tablegen files by default,
...
so that users don't have to copy text from the README to get this.
llvm-svn: 62718
2009-01-21 21:47:51 +00:00
Dan Gohman
455be5a0a0
Only set cindent for C and C++ source files.
...
llvm-svn: 62717
2009-01-21 21:30:25 +00:00
Bill Wendling
6cf1f8fd5b
Now with RUN line.
...
llvm-svn: 62716
2009-01-21 21:28:03 +00:00
Bill Wendling
ba11cd338b
Run this through -simplifycfg and -mem2reg to test only what we need to test.
...
llvm-svn: 62714
2009-01-21 21:02:27 +00:00
Dan Gohman
922bf52e8e
Add a comment to SelectionDAG::ReplaceAllUsesWith to describe a subtle
...
iteraction with SelectionDAG CSE.
llvm-svn: 62713
2009-01-21 20:50:09 +00:00
Dale Johannesen
1f86498f93
Do not use host floating point types when emitting
...
ASCII IR; loading and storing these can change the
bits of NaNs on some hosts. Remove or add warnings
at a few other places using host floating point;
this is a bad thing to do in general.
llvm-svn: 62712
2009-01-21 20:32:55 +00:00
Chris Lattner
e387d9ed5b
Inline ParseOptionalTypeSpecifier into ParseDeclarationSpecifiers.
...
This avoids call overhead and extraneous switches when parsing
very simple declspecs like "int" "void" etc, which are pretty common :)
llvm-svn: 62711
2009-01-21 19:48:37 +00:00
Evan Cheng
ec5eb161fd
Also favors NOT64r.
...
llvm-svn: 62710
2009-01-21 19:45:31 +00:00
Chris Lattner
80261b30b7
revert the gnu objc patches, they regress codegen-gnu.m
...
llvm-svn: 62708
2009-01-21 19:37:47 +00:00
Steve Naroff
948f18bb82
Removed alignment argument to delete operator. It isn't needed and Visual Studio is offended by it.
...
llvm-svn: 62707
2009-01-21 19:34:14 +00:00
Steve Naroff
050dd11e90
Add #line to make the Visual Studio compiler happy.
...
Fixes <rdar://problem/6507668> clang ObjC rewriter: put #line statement at top of rewritten file
llvm-svn: 62706
2009-01-21 19:24:01 +00:00
Chris Lattner
1d09218b98
switch from getTypeAtIndex to getElementType. It is non-virtual
...
and more idiomatic.
llvm-svn: 62705
2009-01-21 19:21:36 +00:00
Chris Lattner
78ecd4f61e
ParseOptionalTypeSpecifier should consume a token if it returns true.
...
llvm-svn: 62704
2009-01-21 19:19:26 +00:00
Chris Lattner
d1760b7837
Fix objc type conversion issues with the GNU runtime, patch by
...
David Chisnall
llvm-svn: 62703
2009-01-21 18:52:19 +00:00
Daniel Dunbar
d00bca3572
ccc: Handle a few long argument form (--) translations using option
...
groups, and fix misdeclaration of some -W options.
llvm-svn: 62702
2009-01-21 18:49:34 +00:00
Anders Carlsson
e26b945b8d
Don't turn off blocks when compiling Obj-C code
...
llvm-svn: 62701
2009-01-21 18:47:36 +00:00
Chris Lattner
f37530c944
initialialize some ivars in ctor.
...
llvm-svn: 62700
2009-01-21 18:45:48 +00:00
Chris Lattner
a326520190
fix warning in release-asserts mode and spelling of assert.
...
llvm-svn: 62699
2009-01-21 18:38:18 +00:00
Chris Lattner
f66bf111a4
alphebetize
...
llvm-svn: 62698
2009-01-21 18:26:45 +00:00
Chris Lattner
41b43da217
add getPointerToGlobal to the C bindings, patch by Lennart Augustsson!
...
PR3364
llvm-svn: 62697
2009-01-21 18:11:10 +00:00
Chris Lattner
77527f5812
Remove uses of uint32_t in favor of 'unsigned' for better
...
compatibility with cygwin. Patch by Jay Foad!
llvm-svn: 62695
2009-01-21 18:09:24 +00:00
Daniel Dunbar
f2e3d81cb4
ccc: Add appropriate file search prefixes when on x86_64 Darwin, and
...
look for crt3.o appropriately.
llvm-svn: 62694
2009-01-21 17:18:19 +00:00
Dan Gohman
7e6b932f18
Simplify ReduceLoadWidth's logic: it doesn't need several different
...
special cases after producing the new reduced-width load, because the
new load already has the needed adjustments built into it. This fixes
several bugs due to the special cases, including PR3317.
llvm-svn: 62692
2009-01-21 15:17:51 +00:00
Dan Gohman
b43c8996f2
Fix a recent regression. ClrOpcode is not set for i8; for i8, if
...
we want to clear %ah to zero before a division, just use a
zero-extending mov to %al. This fixes PR3366.
llvm-svn: 62691
2009-01-21 14:50:16 +00:00
Mikhail Glushenkov
6a4f729dc9
Mimic gcc behaviour with regard to response files.
...
llvm-svn: 62688
2009-01-21 13:14:02 +00:00
Mikhail Glushenkov
1a0c083748
Fix 'llvm-config --libs' output.
...
Change the naming scheme for llvmc plugins so that they do not appear in
'llvm-config --libs' output.
llvm-svn: 62687
2009-01-21 13:05:00 +00:00
Mikhail Glushenkov
fbc89cecad
Change the hook API back to prevent memory leaks.
...
llvm-svn: 62686
2009-01-21 13:04:33 +00:00
Mikhail Glushenkov
bf9716e15d
Allow hooks with arguments.
...
llvm-svn: 62685
2009-01-21 13:04:00 +00:00
Duncan Sands
d56cf3025f
This was causing invalid memory accesses when
...
generating debug info in the compiler.
llvm-svn: 62684
2009-01-21 11:51:17 +00:00
Duncan Sands
1de451d0d0
Let's try to have our cake and eat it to: move
...
this test into FrontendC to ensure that llvm-gcc
is available; assemble using "llvm-gcc -xassembler"
rather than "as".
llvm-svn: 62683
2009-01-21 11:37:31 +00:00
Duncan Sands
696f4a8598
Don't rely on grep -w working.
...
llvm-svn: 62682
2009-01-21 09:41:42 +00:00
Sanjiv Gupta
335ea6cf2a
Fixed build warnings. Restoring changes done in 62600, they were lost in 62655.
...
llvm-svn: 62681
2009-01-21 09:02:46 +00:00
Duncan Sands
be7e41481b
Cleanup whitespace and comments, and tweak some
...
prototypes, in operand type legalization. No
functionality change.
llvm-svn: 62680
2009-01-21 09:00:29 +00:00
Owen Anderson
fe48dfa0f2
I accidentally removed this check in an earlier commit, which cause breakage in the pre alloc splitter.
...
llvm-svn: 62678
2009-01-21 08:18:03 +00:00
Chris Lattner
3029b35faa
merge two checks for identifiers in the pth loop into one.
...
llvm-svn: 62677
2009-01-21 07:50:06 +00:00
Chris Lattner
8256b970a3
a trivial micro optimization to save a load.
...
llvm-svn: 62676
2009-01-21 07:45:14 +00:00
Chris Lattner
ad89ec013f
Add a bit to IdentifierInfo that acts as a simple predicate which
...
tells us whether Preprocessor::HandleIdentifier needs to be called.
Because this method is only rarely needed, this saves a call and a
bunch of random checks. This drops the time in HandleIdentifier
from 3.52ms to .98ms on cocoa.h on my machine.
llvm-svn: 62675
2009-01-21 07:43:11 +00:00
Chris Lattner
66c6562e24
silence a couple unused variable 'result' warnings.
...
llvm-svn: 62674
2009-01-21 07:35:26 +00:00
Ted Kremenek
8d6c828728
Don't crash on empty PTH files. This fixes <rdar://problem/6512714>.
...
llvm-svn: 62673
2009-01-21 07:34:28 +00:00
Chris Lattner
c950296006
really we only need on Read24!
...
llvm-svn: 62672
2009-01-21 07:28:57 +00:00
Chris Lattner
47def9787e
revert my previous patch, it assumed endianness.
...
llvm-svn: 62671
2009-01-21 07:21:56 +00:00
Ted Kremenek
ff6990d43b
This test now passes using -analyzer-store-region.
...
llvm-svn: 62670
2009-01-21 07:13:46 +00:00
Ted Kremenek
8973cbfb21
This test now passes using -analyzer-store-region.
...
llvm-svn: 62669
2009-01-21 07:10:01 +00:00
Chris Lattner
a74f7cbb9d
minor cleanups: now that tokens are 4-byte aligned in a PTH
...
file, just load them directly as ints.
llvm-svn: 62668
2009-01-21 07:06:08 +00:00
Ted Kremenek
fe32cc0ba6
Get RegionStore to work with the retain/release checker and its test cases.
...
Because the RegionStore can reason about values beyond the reasoning power of BasicStore, this patch splits some of the test cases for the retain/release checker to have versions that are handled by RegionStore (more warnings) and BasicStore (less warnings).
llvm-svn: 62667
2009-01-21 06:57:53 +00:00
Anders Carlsson
dc6ceca4ba
Fix an inline asm sema bug that I introduced.
...
llvm-svn: 62666
2009-01-21 06:27:20 +00:00
Sanjiv Gupta
f737337707
Implement LowerOperationWrapper for legalizer.
...
Also a few signed comparison fixes.
llvm-svn: 62665
2009-01-21 05:44:05 +00:00
Scott Michel
ed7d79fce4
CellSPU:
...
- Ensure that (operation) legalization emits proper FDIV libcall when needed.
- Fix various bugs encountered during llvm-spu-gcc build, along with various
cleanups.
- Start supporting double precision comparisons for remaining libgcc2 build.
Discovered interesting DAGCombiner feature, which is currently solved via
custom lowering (64-bit constants are not legal on CellSPU, but DAGCombiner
insists on inserting one anyway.)
- Update README.
llvm-svn: 62664
2009-01-21 04:58:48 +00:00