aboutsummaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix PR1525:Reid Spencer2007-06-251-4/+10
| | | | | | | | Use a better determinator for identifying constant array initializers that are or are not zero terminated and generate code appropriately. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37720 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix pr1448Chris Lattner2007-06-191-14/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37658 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR1517:Reid Spencer2007-06-161-9/+10
| | | | | | | | | Use SmallPtrSet instead of std::vector to eliminate duplicate uses in a function generated with -gen-function. This prevents the output from having multiple duplicate declarations of constants and gvals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37616 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR1516:Reid Spencer2007-06-161-2/+7
| | | | | | | | When printing the uses of a function (-gen-function only), make sure to include the constants referenced by intializers of global variables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37615 91177308-0d34-0410-b5e6-96231b3b80d8
* Call the correct function name. Patch from Stephane Letz.Nick Lewycky2007-06-161-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37614 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bugpoint to run -llc-safe with -Xlinker.Lauro Ramos Venancio2007-06-062-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37483 91177308-0d34-0410-b5e6-96231b3b80d8
* if internalize is disabled, don't run the pass at all!Chris Lattner2007-06-061-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37477 91177308-0d34-0410-b5e6-96231b3b80d8
* Commit first round work of PR1373. "noalias" is now fully supported inZhou Sheng2007-06-051-0/+2
| | | | | | | | VMCore, BitCode, and Assembly. Documentation and test case paramattrs.ll updated also. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37432 91177308-0d34-0410-b5e6-96231b3b80d8
* Regenerate.Reid Spencer2007-05-183-337/+381
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37207 91177308-0d34-0410-b5e6-96231b3b80d8
* Initialize variable to null so it has a value in the off chance that aReid Spencer2007-05-071-1/+1
| | | | | | | memory buffer couldn't be allocated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36904 91177308-0d34-0410-b5e6-96231b3b80d8
* use the new MemoryBuffer interfaces to simplify error reporting in clients.Chris Lattner2007-05-0611-48/+27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36900 91177308-0d34-0410-b5e6-96231b3b80d8
* remove dead optionChris Lattner2007-05-061-3/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36898 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a buggy conversion from bytecode to bitcodeChris Lattner2007-05-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36883 91177308-0d34-0410-b5e6-96231b3b80d8
* make sure the ofstream for opt's output file is destroyed, so that the bitsChris Lattner2007-05-061-0/+3
| | | | | | | actually land on disk. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36877 91177308-0d34-0410-b5e6-96231b3b80d8
* switch tools to bitcode from bytecodeChris Lattner2007-05-0611-115/+45
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36872 91177308-0d34-0410-b5e6-96231b3b80d8
* switch tools to bitcode instead of bytecodeChris Lattner2007-05-0622-236/+70
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36868 91177308-0d34-0410-b5e6-96231b3b80d8
* this doesn't directly depend on bytecodeChris Lattner2007-05-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36854 91177308-0d34-0410-b5e6-96231b3b80d8
* add bitcode support.Chris Lattner2007-05-062-5/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36853 91177308-0d34-0410-b5e6-96231b3b80d8
* archive library already depends on bc readerChris Lattner2007-05-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36852 91177308-0d34-0410-b5e6-96231b3b80d8
* add bitcode support, optimize reading to not read all function bodies justChris Lattner2007-05-062-5/+17
| | | | | | | to get deplibs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36851 91177308-0d34-0410-b5e6-96231b3b80d8
* use an auto_ptr to avoid an explicit deleteChris Lattner2007-05-061-7/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36850 91177308-0d34-0410-b5e6-96231b3b80d8
* add bitcode supportChris Lattner2007-05-064-4/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36849 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the -emit-bytecode option. Noone in the llvm tree uses it, and thisChris Lattner2007-05-062-13/+3
| | | | | | | keeps llvm-upgrade a simple "source to source" tool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36848 91177308-0d34-0410-b5e6-96231b3b80d8
* add bitcode reading support to llvm-nmChris Lattner2007-05-062-24/+33
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36847 91177308-0d34-0410-b5e6-96231b3b80d8
* bitcodify, remove eh cruftChris Lattner2007-05-062-6/+19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36844 91177308-0d34-0410-b5e6-96231b3b80d8
* debugger depends on bcreader, not llvm-dbChris Lattner2007-05-061-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36842 91177308-0d34-0410-b5e6-96231b3b80d8
* remove EH cruft, add bitcode supportChris Lattner2007-05-064-124/+152
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36841 91177308-0d34-0410-b5e6-96231b3b80d8
* add bitcode reading support, remove eh stuffChris Lattner2007-05-062-91/+100
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36840 91177308-0d34-0410-b5e6-96231b3b80d8
* add bitcode reading support. Remove EH cruft.Chris Lattner2007-05-062-122/+131
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36839 91177308-0d34-0410-b5e6-96231b3b80d8
* bitcodifyChris Lattner2007-05-062-7/+24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36838 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify codeChris Lattner2007-05-061-6/+2
| | | | 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-063-10/+20
| | | | 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-062-5/+31
| | | | | | 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-061-0/+1
| | | | 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-061-0/+2
| | | | | | | 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-051-11/+47
| | | | | | | 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-051-1/+7
| | | | 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-051-5/+35
| | | | 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-041-1/+7
| | | | 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-032-6/+44
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36685 91177308-0d34-0410-b5e6-96231b3b80d8
* Drop 'const'Devang Patel2007-05-036-22/+22
| | | | 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-026-22/+22
| | | | | | | | 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-016-5/+46
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36632 91177308-0d34-0410-b5e6-96231b3b80d8
* add phiChris Lattner2007-05-011-1/+5
| | | | 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-291-8/+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-291-12/+158
| | | | | | | | | | | | | | | | | | | <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-291-8/+104
| | | | 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-291-9/+78
| | | | | | | 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-291-7/+67
| | | | | | | 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-291-6/+24
| | | | | | | | | | | | | | | 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