Anton Korobeynikov
5bb6590218
Fix PR1323 : we haven't updated phi nodes in good manner :)
...
llvm-svn: 35963
2007-04-13 06:53:51 +00:00
Chris Lattner
e7cab7b7a4
arm has r+r*s and r+i addr modes, but no r+i+r*s addr modes.
...
llvm-svn: 35962
2007-04-13 06:50:55 +00:00
Zhou Sheng
dedfc40044
Make the apint construction more effective.
...
llvm-svn: 35960
2007-04-13 05:57:32 +00:00
Chris Lattner
335f1cb1f8
CSE simple binary expressions when they are inserted. This makes LSR produce
...
less huge code that needs to be cleaned up by sdisel.
llvm-svn: 35959
2007-04-13 05:04:18 +00:00
Tanya Lattner
425b614986
Adding target triplet to be passed to database.
...
llvm-svn: 35958
2007-04-13 04:36:48 +00:00
Reid Spencer
d31093d340
Implement review feedback .. don't double search a set.
...
llvm-svn: 35957
2007-04-12 21:57:15 +00:00
Reid Spencer
f1154e6d96
Make sure intrinsics that are lowered to functions make the function weak
...
linkage so we only end up with one of them in a program. These are, after
all overloaded and templatish in nature.
llvm-svn: 35956
2007-04-12 21:53:38 +00:00
Dale Johannesen
37aecc68ea
testcases for function linkage
...
llvm-svn: 35955
2007-04-12 21:01:53 +00:00
Reid Spencer
0325471d3c
Provide support for intrinsics that lower themselves to a function body.
...
This can happen for intrinsics that are overloaded. In such cases it is
necessary to emit a function prototype before the body of the function
that calls the intrinsic and to ensure we don't emit it multiple times.
llvm-svn: 35954
2007-04-12 21:00:45 +00:00
Lauro Ramos Venancio
000b6f4d9b
update documentation
...
llvm-svn: 35953
2007-04-12 20:34:36 +00:00
Lauro Ramos Venancio
acea6ac5ca
update documentation
...
llvm-svn: 35952
2007-04-12 19:52:46 +00:00
Lauro Ramos Venancio
6c5f53f6ac
Implement Thread Local Storage (TLS) in CBackend.
...
llvm-svn: 35951
2007-04-12 18:42:08 +00:00
Lauro Ramos Venancio
a76c2806de
Implement the "thread_local" keyword.
...
llvm-svn: 35950
2007-04-12 18:32:50 +00:00
Chris Lattner
ba8ff05529
vector compares aren't allowed. It doesn't make sense to have an xfailed
...
test to remind us of this.
llvm-svn: 35949
2007-04-12 18:21:52 +00:00
Chris Lattner
ee73b503a4
make this really work on linux :)
...
llvm-svn: 35948
2007-04-12 18:10:16 +00:00
Chris Lattner
62374cc05e
make this happier on linux hosts
...
llvm-svn: 35947
2007-04-12 18:09:06 +00:00
Reid Spencer
1e53c865c2
Fix bugs in generated code for part_select and part_set so that llc doesn't
...
barf when CBE is run with a program that contains these intrinsics.
llvm-svn: 35946
2007-04-12 13:30:14 +00:00
Reid Spencer
76e9a17f61
Fix a bug in PartSet. The replacement value needs to be zext or trunc to
...
the size of the value, not just zext. Also, give better names to two BBs.
llvm-svn: 35945
2007-04-12 12:46:33 +00:00
Chris Lattner
0da8de5848
the result of an inline asm copy can be an arbitrary VT that the register
...
class supports. In the case of vectors, this means we often get the wrong
type (e.g. we get v4f32 instead of v8i16). Make sure to convert the vector
result to the right type. This fixes CodeGen/X86/2007-04-11-InlineAsmVectorResult.ll
llvm-svn: 35944
2007-04-12 06:00:20 +00:00
Chris Lattner
7acaf64d70
fold noop vbitconvert instructions
...
llvm-svn: 35943
2007-04-12 05:58:43 +00:00
Chris Lattner
e3db14f830
new testcase
...
llvm-svn: 35942
2007-04-12 05:58:21 +00:00
Chris Lattner
2f221a83ec
Fix weirdness handling single element vectors.
...
llvm-svn: 35941
2007-04-12 04:44:28 +00:00
Chris Lattner
2b6b79b896
Fix mmx paddq, add support for the 'y' register class, though it isn't tested.
...
llvm-svn: 35940
2007-04-12 04:14:49 +00:00
Reid Spencer
500fb924dd
Make the shlibext and llvmlibsdir variables accessible.
...
llvm-svn: 35939
2007-04-12 02:49:30 +00:00
Reid Spencer
82da0eb67c
For PR1284:
...
Implement the "part_set" intrinsic.
llvm-svn: 35938
2007-04-12 02:48:46 +00:00
Reid Spencer
260356bbcf
The hello pass actually requires a function to chew on!
...
llvm-svn: 35937
2007-04-12 01:12:54 +00:00
Reid Spencer
dc71bea48d
Fix extra argument in part_set examples. Thanks Zhiru.
...
llvm-svn: 35936
2007-04-12 01:03:03 +00:00
Chris Lattner
9564abbfb5
improve the patch for PR1318 to also support grouped options with custom
...
handlers (like the pass list). My previous fix only supported *new* command
line options, not additions to old ones.
This fixes test/Feature/load_module.ll
llvm-svn: 35935
2007-04-12 00:36:29 +00:00
Devang Patel
6f261440d4
New test case for PR 1321.
...
llvm-svn: 35934
2007-04-12 00:32:43 +00:00
Reid Spencer
f55aa23d33
Fix validation errors.
...
llvm-svn: 35933
2007-04-11 23:49:50 +00:00
Reid Spencer
3452a4d41c
Missing end tag. Thanks, Nick.
...
llvm-svn: 35932
2007-04-11 23:46:06 +00:00
Chris Lattner
53de3e63cc
new testcase.
...
llvm-svn: 35931
2007-04-11 23:45:16 +00:00
Reid Spencer
683fdc6faa
Put period inside the paragraph!
...
llvm-svn: 35930
2007-04-11 23:26:07 +00:00
Reid Spencer
ef691857bb
Document the part_set intrinsic.
...
llvm-svn: 35929
2007-04-11 23:23:49 +00:00
Reid Spencer
3f92dc65c6
Fix a guard that is supposed to guard against mistakes like this patch fixes!
...
We *really* need to be running these with tcl's "exec" to catch the errors.
llvm-svn: 35928
2007-04-11 22:40:46 +00:00
Chris Lattner
dbeb7c5f45
new testcase
...
llvm-svn: 35927
2007-04-11 22:36:10 +00:00
Chris Lattner
b97b122176
Fix CodeGen/X86/2007-03-24-InlineAsmPModifier.ll
...
llvm-svn: 35926
2007-04-11 22:29:46 +00:00
Reid Spencer
91097746e8
The "Hello" message is written on stderr so make sure it is duplicated to
...
stdout so the grep can match it.
llvm-svn: 35925
2007-04-11 21:30:05 +00:00
Reid Spencer
dc130ca32f
Add Scott's note about GCC 4.1.2 on OpenSUSE.
...
llvm-svn: 35924
2007-04-11 21:28:31 +00:00
Reid Spencer
12ee385ec2
Add a test case for PR1318.
...
llvm-svn: 35923
2007-04-11 21:14:53 +00:00
Reid Spencer
2afe5c8354
Build Hello by default so it can be used in test cases.
...
llvm-svn: 35922
2007-04-11 21:03:37 +00:00
Reid Spencer
ba51ef894b
Use the new %link variable to make this test portable.
...
llvm-svn: 35921
2007-04-11 21:00:00 +00:00
Reid Spencer
6650bbc30b
Make new variables available: compile_c, compile_cxx, link to handle tests
...
that want to use LLVM's notion of compiling and linking programs. This
includes all the -I -L and optimization switches that LLVM would using to
compile or link any of this files.
llvm-svn: 35920
2007-04-11 20:57:39 +00:00
Reid Spencer
5059815af5
The "implementation" keyword is no more!
...
llvm-svn: 35919
2007-04-11 20:06:03 +00:00
Reid Spencer
56b310ae49
Make the llvm-runtest function much more amenable by eliminating all the
...
global variables that needed to be passed in. This makes it possible to
add new global variables with only a couple changes (Makefile and llvm-dg.exp)
instead of touching every single dg.exp file.
llvm-svn: 35918
2007-04-11 19:56:59 +00:00
Reid Spencer
13dc8cea51
Add a test case for testing basic IR features via llvm2cpp. This helps find
...
bit rot in llvm2cpp and also tests the LLVM C++ IR in ways that llvm-as
doesn't.
llvm-svn: 35917
2007-04-11 19:54:37 +00:00
Reid Spencer
c202a9ae85
Make sure upgrade doesn't fail on this.
...
llvm-svn: 35916
2007-04-11 19:36:27 +00:00
Reid Spencer
50f96f2a23
Update the way llvm2cpp tests are done:
...
1. Make sure bytecode/assembly inputs are always redirected stdin so that
the module name is <stdin>. This helps not get false negatives when the
diff is done.
2. Scan the test file to determine if llvm-upgrade needs to be run.
3. Avoid running testings that are XFAIL'd because they'll cause a failure
when run for llvm2cpp.
4. Get some better error message output.
llvm-svn: 35914
2007-04-11 17:56:23 +00:00
Reid Spencer
db91083d5a
Upgrade this file completely instead of downgrading it. Make sure that
...
false positives aren't made.
llvm-svn: 35913
2007-04-11 17:51:03 +00:00
Chris Lattner
f29ad16397
fix an infinite loop compiling ldecod, notice by JeffC.
...
llvm-svn: 35910
2007-04-11 16:51:53 +00:00