Reid Spencer
5899dd1dc3
Make the generated code for ConstantInt nicer.
...
llvm-svn: 35902
2007-04-11 13:02:56 +00:00
Reid Spencer
56ea4e8ad3
Teach llvm2cpp about packed structure types.
...
llvm-svn: 35899
2007-04-11 12:41:49 +00:00
Reid Spencer
ff6e0eda94
Fix several bugs relating to changes in the LLVM IR API or just outright
...
typos in the output. This is sufficient to get most of the llvm2cpp tests
working again.
llvm-svn: 35898
2007-04-11 12:28:56 +00:00
Reid Spencer
d73f84ed7b
Regenerate.
...
llvm-svn: 35897
2007-04-11 12:10:58 +00:00
Reid Spencer
2844b0a225
Fix a crash-by-unknown-exception caused by attempting to use a null pointer
...
as the key for a map insertion.
llvm-svn: 35896
2007-04-11 12:10:08 +00:00
Reid Spencer
77df76a3f5
Fix some issues with param attrs.
...
llvm-svn: 35894
2007-04-11 10:01:32 +00:00
Reid Spencer
3318579108
Add support for parameter attributes.
...
llvm-svn: 35893
2007-04-11 09:54:08 +00:00
Reid Spencer
a472f66dd0
For PR1146:
...
Put the parameter attributes in their own ParamAttr name space. Adjust the
rest of llvm as a result.
llvm-svn: 35877
2007-04-11 02:44:20 +00:00
Devang Patel
ada3ca2234
Enable loop rotate pass.
...
llvm-svn: 35863
2007-04-10 15:43:36 +00:00
Reid Spencer
f51a7050dd
Regenerate
...
llvm-svn: 35813
2007-04-09 06:16:21 +00:00
Reid Spencer
4d4d3f9682
For PR1146:
...
Adapt handling of parameter attributes to use ParamAttrsList class.
llvm-svn: 35812
2007-04-09 06:15:59 +00:00
Reid Spencer
69e6062f31
Make TempDir a PathWithStatus so we don't have to cast it to one.
...
llvm-svn: 35772
2007-04-08 20:08:01 +00:00
Reid Spencer
5fb6ee9d6b
Avoid temporary construction and potential for corrupted data access.
...
llvm-svn: 35771
2007-04-08 20:06:05 +00:00
Reid Spencer
f20eacbc78
Don't rely on destructed local storage. Thanks, Chris.
...
llvm-svn: 35769
2007-04-08 19:59:07 +00:00
Reid Spencer
21b76a9b99
For PR1291:
...
Change uses of sys::Path class to sys::PathWithStatus in those places where
the file status information is needed.
llvm-svn: 35743
2007-04-07 18:53:16 +00:00
Reid Spencer
25603318ff
Regenerate.
...
llvm-svn: 35736
2007-04-07 16:14:01 +00:00
Reid Spencer
33766f8eba
For PR1312:
...
For the short CALL/INVOKE syntax, the signedness of the result type is two
extractions away from the type argument because its a POINTER to function
type, not a function type.
llvm-svn: 35735
2007-04-07 16:10:37 +00:00
Chris Lattner
c7de6e0a75
run a late dce pass to clean up extra cruft.
...
llvm-svn: 35684
2007-04-05 16:50:20 +00:00
Reid Spencer
d7799fd17d
For PR1302:
...
Rename LinkItems as NativeLinkItems since it is filled out by the Linker
library to contain only those items deemed to be native.
llvm-svn: 35654
2007-04-04 06:34:22 +00:00
Reid Spencer
69e56c3461
Regenerate
...
llvm-svn: 35579
2007-04-02 02:08:35 +00:00
Reid Spencer
940fccb088
Upgrade the bit count intrinsics to have an i32 result.
...
llvm-svn: 35578
2007-04-02 02:08:05 +00:00
Reid Spencer
1bd88bdab3
Regenerate
...
llvm-svn: 35571
2007-04-02 01:14:00 +00:00
Reid Spencer
86207ee54d
Don't upgrade functions that look like a bswap intrinsic but aren't.
...
llvm-svn: 35570
2007-04-02 01:13:36 +00:00
Reid Spencer
ef592214e2
Handle upgrade of llvm.bswap.iXX to llvm.bswap.iXX.iXX per new naming
...
rules for overloaded intrinsic functions.
llvm-svn: 35565
2007-04-02 00:50:28 +00:00
Reid Spencer
d232f311cb
Remove some non-sensical logic that prevented llvm-nm from working on any
...
file other than one named "-".
llvm-svn: 35478
2007-03-29 19:49:07 +00:00
Reid Spencer
200c6f9c3d
For PR789:
...
Make the sys::Path::getFileStatus function more efficient by having it
return a pointer to the FileStatus structure rather than copy it. Adjust
uses of the function accordingly. Also, fix some memory issues in sys::Path.
llvm-svn: 35476
2007-03-29 19:05:44 +00:00
Jeff Cohen
54a781be7d
getFileStatus has a new parameter (caught by VC++).
...
llvm-svn: 35466
2007-03-29 17:29:59 +00:00
Jeff Cohen
d578f1f87f
Fix problem with llvm-config that prevented JIT from being used on x86_64
...
systems.
llvm-svn: 35416
2007-03-28 04:45:02 +00:00
Reid Spencer
f3200ef9ac
For PR1277:
...
Implement error handling for bytecode parsing.
Patch by Scott Michel.
llvm-svn: 35364
2007-03-26 22:38:01 +00:00
Evan Cheng
085b8d7ae2
Unbreak non-debug builds.
...
llvm-svn: 35264
2007-03-22 07:43:51 +00:00
Reid Spencer
2f8fa50bb3
Regenerate.
...
llvm-svn: 35237
2007-03-21 17:27:53 +00:00
Reid Spencer
20337a5e76
For PR1243:
...
Okay, really fix it this time. Make sure the CurFun.Linkage is set early
and consolidate some duplicate code.
llvm-svn: 35236
2007-03-21 17:26:41 +00:00
Reid Spencer
77e0bba30c
Regenerate.
...
llvm-svn: 35235
2007-03-21 17:15:50 +00:00
Reid Spencer
6ae04faffb
For PR1256:
...
Make Signedness information pervasive throughout all types and values.
There is no easy way to get around this. Because the GEP instruction can
index through an arbitrarily complex value structure, it is necessary to
keep track of signedness information throughout that structure. This change
makes Signedness a full class, capable of representing Signedness in
arbitrarily shaped types. The class is then used throughout llvm-upgrade to
track signedness and differentiate between globals, locals, and functions
based on their signedness.
For PR1243:
This patch also removes bogus warnings about renaming internal globals. It
now only emits such warnings when renaming non-internal globals because
they may affect linkage.
llvm-svn: 35234
2007-03-21 17:14:36 +00:00
Reid Spencer
17e9e8b9af
Regenerate.
...
llvm-svn: 35116
2007-03-15 03:26:42 +00:00
Reid Spencer
74d4d172bd
Revert last changes as they introduced other problems.
...
llvm-svn: 35115
2007-03-15 03:25:34 +00:00
Reid Spencer
2ece31b4ce
Regenerate.
...
llvm-svn: 35113
2007-03-14 23:13:06 +00:00
Reid Spencer
c2dd8280e2
The sign information was not propagating into the rename map so only the
...
last entry stored in the map could be retrieved for a given integer type.
Propagating the sign information required an invasive change to ensure that
all ValueRef (ValID) instances get the right sign information as well. Also,
put in some assertions to ensure the RenameMap always gives us out the type
that is expected.
This fixes PR1256 and
test/Assembler/2007-03-14-UgpradeLocalSignless.ll
llvm-svn: 35112
2007-03-14 23:11:45 +00:00
Reid Spencer
4040130a86
For PR1256:
...
Carry sign with ValID and make TypeInfo sortable (useful in a map).
llvm-svn: 35111
2007-03-14 23:08:04 +00:00
Jeff Cohen
eb9dccf63d
Make older versions of bison happy.
...
llvm-svn: 35099
2007-03-14 15:27:17 +00:00
Devang Patel
69730c96db
Now LICM is a LoopPass.
...
llvm-svn: 35001
2007-03-07 04:41:30 +00:00
Devang Patel
901a27d892
Now LoopUnswitch is a LoopPass.
...
llvm-svn: 34992
2007-03-07 00:26:10 +00:00
Reid Spencer
fe5550b2cf
Obtain the exit function before execution just in case the module
...
disappears before we get to calling the exit function.
llvm-svn: 34953
2007-03-06 03:12:55 +00:00
Jeff Cohen
b622c11f77
Unbreak VC++ build.
...
llvm-svn: 34917
2007-03-05 00:00:42 +00:00
Reid Spencer
e586f2e7f7
1. Handle errors around the ModuleProvider. This is necessary since it is
...
reading bytecode.
2. The interpreter can delete the ModuleProvider and replace it with
another so don't depend on it being around after the EE is created.
3. Don't just run llvm_shutdown on exit but actually delete the EE as well.
This cleans up a vast amount of memory (but not all) that EE retained
through exit.
llvm-svn: 34888
2007-03-03 18:21:44 +00:00
Reid Spencer
07761199e0
Make output for ConstantInt construction correct for any bitwidth.
...
llvm-svn: 34809
2007-03-01 20:55:43 +00:00
Chris Lattner
86e36db1bf
remove use of deprecated apis
...
llvm-svn: 34418
2007-02-19 07:41:31 +00:00
Chris Lattner
80b65db862
remove use of deprecated api
...
llvm-svn: 34416
2007-02-19 07:34:02 +00:00
Anton Korobeynikov
d01defedf6
Add possibility to set memory limit for binaries run via libSystem. This
...
is especially needed for bugpoint. This partly implements PR688
llvm-svn: 34349
2007-02-16 19:11:07 +00:00
Reid Spencer
e1d2bcf8ce
Add missing break statements!
...
llvm-svn: 34341
2007-02-16 06:34:39 +00:00