Chris Lattner
4a7ac9fd70
emit spiffy little histograms of codes, if enabled. Don't print averages if
...
there is only one item.
llvm-svn: 36773
2007-05-05 01:46:49 +00:00
Chris Lattner
9e808cd330
do not charge subblock sizes to the parent block.
...
llvm-svn: 36772
2007-05-05 01:29:31 +00:00
Chris Lattner
9181ddf91d
update to new APIs, make output a bit (haha) nicer
...
llvm-svn: 36768
2007-05-05 00:17:42 +00:00
Chris Lattner
0b7c5121f7
add support for new codes/block
...
llvm-svn: 36726
2007-05-04 03:01:41 +00:00
Evan Cheng
779b52e4c4
Added -rsh-host and -rsh-user to support remote execution.
...
llvm-svn: 36685
2007-05-03 18:36:15 +00:00
Devang Patel
8c78a0bff0
Drop 'const'
...
llvm-svn: 36662
2007-05-03 01:11:54 +00:00
Devang Patel
e95c6ad802
Use 'static const char' instead of 'static const int'.
...
Due to darwin gcc bug, one version of darwin linker coalesces
static const int, which defauts PassID based pass identification.
llvm-svn: 36652
2007-05-02 21:39:20 +00:00
Devang Patel
09f162ca6a
Do not use typeinfo to identify pass in pass manager.
...
llvm-svn: 36632
2007-05-01 21:15:47 +00:00
Chris Lattner
5fab65dbbf
add phi
...
llvm-svn: 36611
2007-05-01 02:43:46 +00:00
Reid Spencer
986b9df04e
Augment the verbose output to print out the sub-commands executed.
...
llvm-svn: 36581
2007-04-29 23:59:47 +00:00
Chris Lattner
3543caacd3
Implement much expanded dumper support. We now print stuff like:
...
<MODULE_BLOCK NumWords=27 BlockCodeSize=3>
<TYPE_BLOCK NumWords=7 BlockCodeSize=4>
<NUMENTRY op0=7>
<POINTER op0=1>
<FUNCTION op0=0 op1=2 op2=2 op3=2 op4=2>
<VECTOR op0=2 op1=3>
<INTEGER op0=64>
<VECTOR op0=8 op1=5>
<INTEGER op0=16>
<VOID>
...
With work, the operands can be pretty printed symbolically.
llvm-svn: 36579
2007-04-29 21:48:19 +00:00
Chris Lattner
1684cee5a2
add some simple per-block statistics
...
llvm-svn: 36576
2007-04-29 20:00:02 +00:00
Chris Lattner
ca0ea543f5
Implement support to read an arbitrary bitcode file. Next up, dumping the
...
file symbolically and actually computing statistics.
llvm-svn: 36557
2007-04-29 08:31:14 +00:00
Chris Lattner
0399758b5f
very early support for analyzing a bitstream. This opens the file, starts
...
reading the stream, and detects whether it is LLVM IR or not.
llvm-svn: 36556
2007-04-29 08:12:22 +00:00
Chris Lattner
6694f60bec
Switch the bitcode reader interface to take a MemoryBuffer instead of knowing
...
anything about disk I/O itself. This greatly simplifies its interface -
eliminating the need for the ReaderWrappers.cpp file.
This adds a new option to llvm-dis (-bitcode) which instructs it to read
the input file as bitcode. Until/unless the bytecode reader is taught to
read from MemoryBuffer, there is no way to handle stdin reading without it.
I don't plan to switch the bytecode reader over, I'd rather delete it :),
so the option will stay around temporarily.
llvm-svn: 36554
2007-04-29 07:54:31 +00:00
Chris Lattner
cc18989c14
fit in 80 cols
...
llvm-svn: 36551
2007-04-29 05:51:00 +00:00
Chris Lattner
4c522b9434
reset errno to zero on entry to the application's main function. This fixes
...
MultiSource/Applications/minisat in the JIT.
Note that the libsystem stuff should ideally never modify errno. :(
llvm-svn: 36508
2007-04-27 17:02:33 +00:00
Jeff Cohen
bb693dcfb1
Add new option to usage help.
...
llvm-svn: 36347
2007-04-22 18:33:20 +00:00
Chris Lattner
8ca41bfb57
don't break reading from stdin
...
llvm-svn: 36336
2007-04-22 06:35:20 +00:00
Chris Lattner
69892b79ce
link in bitwriter library
...
llvm-svn: 36335
2007-04-22 06:31:35 +00:00
Chris Lattner
e224446728
teach llvm-dis to read bitcode files
...
llvm-svn: 36334
2007-04-22 06:31:02 +00:00
Chris Lattner
52e1f0f297
add a temporary -bitcode option, which instructs llvm-as to produce a bitcode file instead of a bytecode file
...
llvm-svn: 36333
2007-04-22 06:28:58 +00:00
Reid Spencer
4388f0b4fa
For PR1146:
...
Make ParamAttrsList objects unique. You can no longer directly create or
destroy them but instead must go through the ParamAttrsList::get()
interface.
llvm-svn: 36327
2007-04-22 05:46:44 +00:00
Reid Spencer
d1c1ed1cb9
Add the --host-target option.
...
llvm-svn: 36326
2007-04-22 05:05:36 +00:00
Chris Lattner
8cc95f24a7
remove cruft
...
llvm-svn: 36268
2007-04-20 04:45:58 +00:00
Reid Spencer
52e4e91284
Regenerate.
...
llvm-svn: 36106
2007-04-16 03:05:01 +00:00
Reid Spencer
78dffdc5d1
For PR1336:
...
Functions without names deserve to be created too. This fixes:
test/CodeGen/Generic/vector-constantexpr.ll
llvm-svn: 36105
2007-04-16 03:04:13 +00:00
Reid Spencer
3da4004c34
For PR1336:
...
When upgrading global vars, look for conflicts with functions as well. This
fixes test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll
llvm-svn: 36103
2007-04-16 02:56:33 +00:00
Reid Spencer
4f7e511a8e
Regenerate.
...
llvm-svn: 36096
2007-04-16 00:40:57 +00:00
Reid Spencer
19a0ff01f9
For PR1336:
...
Rewrite the upgrade of GEP indices to be a little less obtuse. This fixes
test/Assembler/2002-08-19-BytecodeReader.llx
test/Assembler/2003-08-21-ConstantExprCast-Fold.llx
test/Assembler/2004-01-11-getelementptrfolding.llx
llvm-svn: 36095
2007-04-16 00:39:39 +00:00
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