summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAge
* bitcodifyChris Lattner2007-05-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36838 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify codeChris Lattner2007-05-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36837 91177308-0d34-0410-b5e6-96231b3b80d8
* add support to llvm-prof for reading from a bitcode fileChris Lattner2007-05-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36836 91177308-0d34-0410-b5e6-96231b3b80d8
* if -bitcode is specified, read and write a bitcode file instead of a ↵Chris Lattner2007-05-06
| | | | | | bytecode file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36830 91177308-0d34-0410-b5e6-96231b3b80d8
* add inline asm codeChris Lattner2007-05-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36826 91177308-0d34-0410-b5e6-96231b3b80d8
* add a denser encoding for null terminated strings, add a 6-bit abbrev asChris Lattner2007-05-06
| | | | | | | well. This shrinks kc++ from 2724088 to 2717360 bytes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36821 91177308-0d34-0410-b5e6-96231b3b80d8
* emit spiffy little histograms of codes, if enabled. Don't print averages ifChris Lattner2007-05-05
| | | | | | | there is only one item. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36773 91177308-0d34-0410-b5e6-96231b3b80d8
* do not charge subblock sizes to the parent block.Chris Lattner2007-05-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36772 91177308-0d34-0410-b5e6-96231b3b80d8
* update to new APIs, make output a bit (haha) nicerChris Lattner2007-05-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36768 91177308-0d34-0410-b5e6-96231b3b80d8
* add support for new codes/blockChris Lattner2007-05-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36726 91177308-0d34-0410-b5e6-96231b3b80d8
* Added -rsh-host and -rsh-user to support remote execution.Evan Cheng2007-05-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36685 91177308-0d34-0410-b5e6-96231b3b80d8
* Drop 'const'Devang Patel2007-05-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36662 91177308-0d34-0410-b5e6-96231b3b80d8
* Use 'static const char' instead of 'static const int'.Devang Patel2007-05-02
| | | | | | | | Due to darwin gcc bug, one version of darwin linker coalesces static const int, which defauts PassID based pass identification. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36652 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not use typeinfo to identify pass in pass manager.Devang Patel2007-05-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36632 91177308-0d34-0410-b5e6-96231b3b80d8
* add phiChris Lattner2007-05-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36611 91177308-0d34-0410-b5e6-96231b3b80d8
* Augment the verbose output to print out the sub-commands executed.Reid Spencer2007-04-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36581 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement much expanded dumper support. We now print stuff like:Chris Lattner2007-04-29
| | | | | | | | | | | | | | | | | | | <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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36579 91177308-0d34-0410-b5e6-96231b3b80d8
* add some simple per-block statisticsChris Lattner2007-04-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36576 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement support to read an arbitrary bitcode file. Next up, dumping theChris Lattner2007-04-29
| | | | | | | file symbolically and actually computing statistics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36557 91177308-0d34-0410-b5e6-96231b3b80d8
* very early support for analyzing a bitstream. This opens the file, startsChris Lattner2007-04-29
| | | | | | | reading the stream, and detects whether it is LLVM IR or not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36556 91177308-0d34-0410-b5e6-96231b3b80d8
* Switch the bitcode reader interface to take a MemoryBuffer instead of knowingChris Lattner2007-04-29
| | | | | | | | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36554 91177308-0d34-0410-b5e6-96231b3b80d8
* fit in 80 colsChris Lattner2007-04-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36551 91177308-0d34-0410-b5e6-96231b3b80d8
* reset errno to zero on entry to the application's main function. This fixesChris Lattner2007-04-27
| | | | | | | | | MultiSource/Applications/minisat in the JIT. Note that the libsystem stuff should ideally never modify errno. :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36508 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new option to usage help.Jeff Cohen2007-04-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36347 91177308-0d34-0410-b5e6-96231b3b80d8
* don't break reading from stdinChris Lattner2007-04-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36336 91177308-0d34-0410-b5e6-96231b3b80d8
* link in bitwriter libraryChris Lattner2007-04-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36335 91177308-0d34-0410-b5e6-96231b3b80d8
* teach llvm-dis to read bitcode filesChris Lattner2007-04-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36334 91177308-0d34-0410-b5e6-96231b3b80d8
* add a temporary -bitcode option, which instructs llvm-as to produce a ↵Chris Lattner2007-04-22
| | | | | | bitcode file instead of a bytecode file git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36333 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1146:Reid Spencer2007-04-22
| | | | | | | | | Make ParamAttrsList objects unique. You can no longer directly create or destroy them but instead must go through the ParamAttrsList::get() interface. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36327 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the --host-target option.Reid Spencer2007-04-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36326 91177308-0d34-0410-b5e6-96231b3b80d8
* remove cruftChris Lattner2007-04-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36268 91177308-0d34-0410-b5e6-96231b3b80d8
* Regenerate.Reid Spencer2007-04-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36106 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1336:Reid Spencer2007-04-16
| | | | | | | | Functions without names deserve to be created too. This fixes: test/CodeGen/Generic/vector-constantexpr.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36105 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1336:Reid Spencer2007-04-16
| | | | | | | | When upgrading global vars, look for conflicts with functions as well. This fixes test/Transforms/GlobalDCE/2002-08-17-FunctionDGE.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36103 91177308-0d34-0410-b5e6-96231b3b80d8
* Regenerate.Reid Spencer2007-04-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36096 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1336:Reid Spencer2007-04-16
| | | | | | | | | | 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36095 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the generated code for ConstantInt nicer.Reid Spencer2007-04-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35902 91177308-0d34-0410-b5e6-96231b3b80d8
* Teach llvm2cpp about packed structure types.Reid Spencer2007-04-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35899 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix several bugs relating to changes in the LLVM IR API or just outrightReid Spencer2007-04-11
| | | | | | | | typos in the output. This is sufficient to get most of the llvm2cpp tests working again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35898 91177308-0d34-0410-b5e6-96231b3b80d8
* Regenerate.Reid Spencer2007-04-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35897 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a crash-by-unknown-exception caused by attempting to use a null pointerReid Spencer2007-04-11
| | | | | | | as the key for a map insertion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35896 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some issues with param attrs.Reid Spencer2007-04-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35894 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for parameter attributes.Reid Spencer2007-04-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35893 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1146:Reid Spencer2007-04-11
| | | | | | | | Put the parameter attributes in their own ParamAttr name space. Adjust the rest of llvm as a result. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35877 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable loop rotate pass.Devang Patel2007-04-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35863 91177308-0d34-0410-b5e6-96231b3b80d8
* RegenerateReid Spencer2007-04-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35813 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1146:Reid Spencer2007-04-09
| | | | | | | Adapt handling of parameter attributes to use ParamAttrsList class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35812 91177308-0d34-0410-b5e6-96231b3b80d8
* Make TempDir a PathWithStatus so we don't have to cast it to one.Reid Spencer2007-04-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35772 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid temporary construction and potential for corrupted data access.Reid Spencer2007-04-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35771 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't rely on destructed local storage. Thanks, Chris.Reid Spencer2007-04-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35769 91177308-0d34-0410-b5e6-96231b3b80d8