Jim Grosbach
0525cd8596
Spelling. s/suppor /support /
...
llvm-svn: 96954
2010-02-23 17:16:27 +00:00
Dan Gohman
5a6b9ad7db
Remove the code which constant-folded ptrtoint(inttoptr(x)+c) to
...
getelementptr. Despite only doing so in the case where x is a known
array object and c can be converted to an index within range, this
could still be invalid if c is actually the address of an object
allocated outside of LLVM. Also, SCEVExpander, the original motivation
for this code, has since been improved to avoid inttoptr+ptroint in
more cases.
llvm-svn: 96950
2010-02-23 16:35:41 +00:00
Garrison Venn
3d6630be49
Modified examples Makefile to only build the ExceptionDemo example for
...
x86 and x86_64 on UNIX systems. Only OS X 10.6.2 (x86_64) and 32bit CentOS 5.2
with gcc 4.1.2 were tested. ARM UNIX build triggered failure motivating this
modification, as it seems that the ARM ABI does not support _Unwind_GetIP(...),
_Unwind_SetGR(...), and _Unwind_SetIP(...). From doing a quick browse of:
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0038a/IHI0038A_ehabi.pdf ,
it seems as if all other exception related apis are supported. Looks like
the port can be done to ARM. Thanks to Xerxes Rånby <xerxes@zafena.se> for
pointing out this error.
llvm-svn: 96949
2010-02-23 16:27:59 +00:00
Wesley Peck
6b601b5704
Testing subversion commit access
...
llvm-svn: 96948
2010-02-23 15:11:17 +00:00
Mikhail Glushenkov
21c7a63ce6
Fix -mtune forwarding.
...
llvm-svn: 96944
2010-02-23 14:29:42 +00:00
Richard Osborne
ff660d72eb
Remove unused lowering function LowerJumpTable
...
llvm-svn: 96943
2010-02-23 14:17:20 +00:00
Richard Osborne
7387249531
Lower BR_JT on the XCore to a jump into a series of jump instructions.
...
llvm-svn: 96942
2010-02-23 13:25:07 +00:00
Daniel Dunbar
64810b7bc6
tests: Don't make a missing llvm-gcc dir a fatal error.
...
llvm-svn: 96938
2010-02-23 11:34:12 +00:00
Daniel Dunbar
31196b6778
Switch .bc/.ll Makefile rules to use LLVM{CC,CXX} instead of LLVMG{CC,XX}
...
llvm-svn: 96936
2010-02-23 10:28:06 +00:00
Daniel Dunbar
bfb3858de0
Add LLVM{CC,CXX} make variables, which specify the configured path the LLVM
...
capable compilers (which could be llvm-gcc or clang).
llvm-svn: 96935
2010-02-23 10:00:53 +00:00
Daniel Dunbar
df02a93faa
Initial configure support for using Clang as the LLVM capable compiler.
...
Comes in two parts:
1. Use --with-clang=path/to/clang/compiler to select an installed clang, or
--with-built-clang to have the makefiles use the clang which will be built
as the LLVM capable compiler. If neither is given, --with-built-clang will
be used if the Clang sources are checked out into the standard location
(tools/clang).
2. Use --with-llvmcc={llvm-gcc,clang,none} to specify which LLVM capable
compiler to use. If not given, then llvm-gcc will be used if available,
otherwise Clang.
Makefile support still to come.
Eric, Doug, Chris, seem reasonable?
llvm-svn: 96934
2010-02-23 10:00:49 +00:00
Mikhail Glushenkov
4a7ee0bea5
Update mcc16 and the ancient Clang plugin for the 'cmd_line' -> 'command' change.
...
llvm-svn: 96933
2010-02-23 09:59:30 +00:00
Daniel Dunbar
9bc9ef2cff
Eliminate CFERuntimeLibDir make variable, this shouldn't be needed.
...
llvm-svn: 96932
2010-02-23 09:28:50 +00:00
Daniel Dunbar
1969fc6dd7
Fix a thinko in the lit.cfg.
...
llvm-svn: 96931
2010-02-23 09:28:48 +00:00
Mikhail Glushenkov
3cd3e0df5f
Input files with empty suffixes must be passed to linker.
...
llvm-svn: 96927
2010-02-23 09:05:21 +00:00
Mikhail Glushenkov
8a3109fb8e
Support -Xlinker et al.
...
llvm-svn: 96926
2010-02-23 09:05:15 +00:00
Mikhail Glushenkov
ce7b3292dd
Temporary disable response files.
...
They are giving us problems on Mac.
llvm-svn: 96925
2010-02-23 09:05:10 +00:00
Mikhail Glushenkov
e14b9c7b16
Typo.
...
llvm-svn: 96924
2010-02-23 09:05:06 +00:00
Mikhail Glushenkov
653efea01f
Trailing whitespace.
...
llvm-svn: 96923
2010-02-23 09:05:01 +00:00
Mikhail Glushenkov
c47f951a86
Implement order-preserving option forwarding.
...
Needed to correctly handle things like 'llvmc -framework Foo foo.o -framework
Bar bar.o' - before this commit all '-framework' options would've been grouped
together in the beginning.
Due to our dependence on CommandLine this turned out to be a giant hack; we will
migrate away from CommandLine eventually.
llvm-svn: 96922
2010-02-23 09:04:57 +00:00
Mikhail Glushenkov
997887add1
Update the test suite.
...
llvm-svn: 96921
2010-02-23 09:04:51 +00:00
Mikhail Glushenkov
232ae779ee
Correct option forwarding: initial implementation.
...
Does not work, but the infrastructure changes are in place.
llvm-svn: 96920
2010-02-23 09:04:44 +00:00
Mikhail Glushenkov
328ae37049
Precompiled headers: initial support.
...
llvm-svn: 96919
2010-02-23 09:04:33 +00:00
Mikhail Glushenkov
d030cced3d
New experimental/undocumented feature: 'works_on_empty'.
...
For now, just enough support to make -filelist work.
llvm-svn: 96918
2010-02-23 09:04:28 +00:00
Mikhail Glushenkov
e213e3cbb6
Support '-install_name'.
...
llvm-svn: 96917
2010-02-23 09:04:18 +00:00
Mikhail Glushenkov
947daddd81
Add a way to enable '-opt=foo' forwarding.
...
llvm-svn: 96916
2010-02-23 09:04:13 +00:00
Daniel Dunbar
d12f02283c
Inline and eliminate LLVMG{CC,XX}WITHPATH.
...
llvm-svn: 96913
2010-02-23 07:56:41 +00:00
Daniel Dunbar
6da0c399f0
Remove ancient Xcode project, replaced by CMake project.
...
llvm-svn: 96912
2010-02-23 07:56:38 +00:00
Daniel Dunbar
debaef15e9
Remove dead LUPGRADE make variable.
...
llvm-svn: 96911
2010-02-23 07:56:36 +00:00
Daniel Dunbar
e6be4dadf2
Kill off unused LLVMGCCLIBEXEC make variable.
...
llvm-svn: 96910
2010-02-23 07:56:34 +00:00
Daniel Dunbar
ad1465c21b
Kill off LLVMGCCARCH and LLVMGCC_VERSION make variables.
...
llvm-svn: 96909
2010-02-23 07:56:31 +00:00
Daniel Dunbar
93911572ff
Eliminate llvmgcc_version testing variable.
...
llvm-svn: 96908
2010-02-23 07:56:28 +00:00
Daniel Dunbar
9774a591a4
Kill off LLVMGCC_MAJVERS make variable.
...
llvm-svn: 96907
2010-02-23 07:56:22 +00:00
Daniel Dunbar
cb977c7241
Kill unused llvmgccmajvers testing variable.
...
llvm-svn: 96906
2010-02-23 07:56:18 +00:00
Chris Lattner
5b5d31f533
add some #if 0'd out code for checking that named values in
...
input/output patterns have the same type. It turns out that
this triggers all the time because we don't infer types
between these boundaries. Until we do, don't turn this on.
llvm-svn: 96905
2010-02-23 07:50:58 +00:00
Chris Lattner
8b5a000583
Reject patterns that use a name multiple times in the src or result
...
of a pattern and where the uses have different types.
llvm-svn: 96904
2010-02-23 07:22:28 +00:00
Chris Lattner
e7f90b31ad
disable two patterns that are using non-sensical result pattern types.
...
llvm-svn: 96903
2010-02-23 07:21:15 +00:00
Chris Lattner
684559d2ef
remove a confused pattern that is trying to match an address
...
then use it as an MMX register (!?).
llvm-svn: 96901
2010-02-23 07:16:12 +00:00
Chris Lattner
da756c0018
reject patterns that have dead named arguments in the input pattern
...
this is tidier and can find bugs.
llvm-svn: 96900
2010-02-23 06:55:24 +00:00
Chris Lattner
03b5f3e853
remove a bunch of dead named arguments in input patterns,
...
though some look dubious afaict, these are all ok.
llvm-svn: 96899
2010-02-23 06:54:29 +00:00
Chris Lattner
df30185383
reject patterns that mention a name in the destination pattern
...
but not in the input. Previously, this would trigger an abort
late in the isel logic.
llvm-svn: 96898
2010-02-23 06:35:45 +00:00
Chris Lattner
1a749c367d
merge some code.
...
llvm-svn: 96896
2010-02-23 06:16:51 +00:00
Chris Lattner
4fb7a4c1c2
fix a type mismatch in this pattern, where we were using an i64 imm in a
...
place where an i32 imm was required, the old isel just got lucky.
This fixes CodeGen/X86/x86-64-and-mask.ll
llvm-svn: 96894
2010-02-23 06:09:57 +00:00
Chris Lattner
4c22c51356
more tidying up
...
llvm-svn: 96891
2010-02-23 05:59:10 +00:00
Bob Wilson
b3640f8018
Update memdep when load PRE inserts a new load, and add some debug output.
...
I don't have a small testcase for this.
llvm-svn: 96890
2010-02-23 05:55:00 +00:00
Chris Lattner
55115233db
reduce indentation by eliminating 'else after return'
...
llvm-svn: 96889
2010-02-23 05:51:07 +00:00
Chris Lattner
8a5eea0929
reapply my cellspu changes with a fix to not break the old isel.
...
llvm-svn: 96885
2010-02-23 05:30:43 +00:00
Dan Gohman
f8e12a593d
Update LangRef to match the code; pointers default to being 64-bit.
...
llvm-svn: 96873
2010-02-23 02:44:03 +00:00
Dan Gohman
f1ac231d17
Revert 96854, 96852, and 96849, unbreaking test/CodeGen/CellSPU/i64ops.ll.
...
llvm-svn: 96871
2010-02-23 02:33:29 +00:00
Chris Lattner
42f0bd1d2c
X86InstrInfoSSE.td declares PINSRW as having type v8i16,
...
don't alis it in the MMX .td file with a different width,
split into two X86ISD opcodes. This fixes an x86 testcase.
llvm-svn: 96859
2010-02-23 02:07:48 +00:00