summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Implement InstCombine/select.ll:test15*Chris Lattner2004-06-091-40/+90
| | | | llvm-svn: 14095
* Cleanup alignment of output.Reid Spencer2004-06-092-28/+28
| | | | llvm-svn: 14093
* Implement analysis output. Don't dump function details unless requested.Reid Spencer2004-06-092-2/+40
| | | | llvm-svn: 14091
* Implement some rudimentary analysis.Reid Spencer2004-06-092-6/+94
| | | | llvm-svn: 14090
* Clean up indentation of file body output.Reid Spencer2004-06-092-18/+20
| | | | | | Don't dump functions unless "detailedResults" is requested. llvm-svn: 14089
* Move parsing details to Parser.cpp.Reid Spencer2004-06-092-50/+0
| | | | llvm-svn: 14088
* Bring some things out of header files that belong only in this file.Reid Spencer2004-06-092-0/+42
| | | | llvm-svn: 14087
* Be more careful about the order we put stuff onto the worklist. This allow ↵Chris Lattner2004-06-091-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | us to collapse this: bool %le(int %A, int %B) { %c1 = setgt int %A, %B %tmp = select bool %c1, int 1, int 0 %c2 = setlt int %A, %B %result = select bool %c2, int -1, int %tmp %c3 = setle int %result, 0 ret bool %c3 } into: bool %le(int %A, int %B) { %c3 = setle int %A, %B ; <bool> [#uses=1] ret bool %c3 } which is handy, because the Java FE makes these sequences all over the place. This is tested as: test/Regression/Transforms/InstCombine/JavaCompare.ll llvm-svn: 14086
* Cleaned up a dead header file to prevent duplicate definition warningsReid Spencer2004-06-091-1/+1
| | | | | | in doxygen. llvm-svn: 14084
* Implement select.ll:test14*Chris Lattner2004-06-091-35/+59
| | | | llvm-svn: 14083
* Workaround or a VS miscompilation bugChris Lattner2004-06-081-1/+1
| | | | llvm-svn: 14078
* Don't grab the condition of unconditional branches!Chris Lattner2004-06-081-7/+8
| | | | | | This fixes PR363 llvm-svn: 14076
* Fix a minor bug in the map - since this pass adds a global symbol, it must beBrian Gaeke2004-06-081-0/+4
| | | | | | accounted for in the map (at least, in its current format). llvm-svn: 14075
* Add a TmpInstruction ctor that doesn't take a MCFI.Brian Gaeke2004-06-081-2/+13
| | | | llvm-svn: 14073
* Fix a link error using VS8.0Chris Lattner2004-06-081-1/+1
| | | | llvm-svn: 14071
* Fix the bug that was preventing the parser from working on all bytecodeReid Spencer2004-06-082-10/+10
| | | | | | | | files. It was reading non-initialized global vars when the flag said it was initialized and vice versa. Causes mis-alignment since initialized and non-initialized constants have different bytecode lengths. llvm-svn: 14057
* Make it #include Parser.h instead of AnalyzerInternals.h since it onlyReid Spencer2004-06-081-1/+1
| | | | | | needs the BytecodeHandler interface which is now in Parser.h llvm-svn: 14056
* Adjust what's included to compensate for changes in Parser.hReid Spencer2004-06-082-0/+22
| | | | llvm-svn: 14055
* Merged BytecodeHandler.h into Parser.h since the parser and the handlerReid Spencer2004-06-083-359/+752
| | | | | | | | must always coexist. Cleaned up the documentation on these interfaces significantly. This is in preparation for moving Parser.h to the include directories to make it a public interface. llvm-svn: 14054
* Fix PR361.Chris Lattner2004-06-071-1/+2
| | | | | | Dominance properties don't hold in unreachable code llvm-svn: 14053
* Make all of this functionality work directly on win32. Properly conditionalizeChris Lattner2004-06-071-13/+29
| | | | | | system specific stuff on HAVE_MKSTEMP llvm-svn: 14051
* Implement getTimeRecord natively in Win32, properly conditionalize theChris Lattner2004-06-071-7/+28
| | | | | | getrusage implementation on HAVE_GETRUSAGE llvm-svn: 14050
* Commit For New Tool: llvm-abcd (Analysis of ByteCode Dumper). This toolReid Spencer2004-06-0717-1/+4344
| | | | | | | | | | | | | | | | | | | | | will (eventually) provide statistical analysis of bytecode files as well as the ability to dump them in a low level format (slot numbers not resolved). The purpose of this is to aid in the Type!=Value change of bug 122. With this initial release, llvm-abcd merely dumps out the bytecode. However, the infrastructure for separating bytecode parsing from handling the parsing events is in place. The style chosen is similar to SAX XML parsing where a handler object is called to handlign the parsing events. This probably isn't useful to anyone but me right now as there is no analysis yet, and the dumper doesn't work on every bytecode file. It will probably be useful by the end of this week. Note that there is some duplication of code from the bytecode reader. This was done to eliminate errors from being introduced in the reader and to minimize the impact to other LLVM developers. At some point, the Analyzer and the Reader will be integrated to use the same infrastructure. Also, sorry for the minor change to Instruction.h but I just couldn't bring myself to write code that depends on Instruction internals. llvm-svn: 14048
* Add some notes so I can throw away one of my many todo lists.Chris Lattner2004-06-051-0/+6
| | | | llvm-svn: 14046
* Fix GCC warningChris Lattner2004-06-051-1/+1
| | | | llvm-svn: 14045
* Fix GCC warningsChris Lattner2004-06-051-2/+2
| | | | llvm-svn: 14044
* Include cerrno.Alkis Evlogimenos2004-06-051-1/+2
| | | | llvm-svn: 14041
* Remove an unused variable.Chris Lattner2004-06-051-7/+10
| | | | | | | Work around for bogus errors: no those static functions don't need to be executed to be initialized! llvm-svn: 14040
* Add missing #includeChris Lattner2004-06-051-0/+1
| | | | llvm-svn: 14037
* Work around VS bugChris Lattner2004-06-051-3/+2
| | | | llvm-svn: 14036
* As much as I dislike doing this, it's the only fix for VC8.0 that I can comeChris Lattner2004-06-051-2/+4
| | | | | | up with, even though it's perfectly conformant code. :( llvm-svn: 14034
* Remove unused varChris Lattner2004-06-051-1/+0
| | | | llvm-svn: 14033
* Squelch a warningChris Lattner2004-06-041-1/+2
| | | | llvm-svn: 14032
* Delete some unreachable codeChris Lattner2004-06-041-5/+0
| | | | llvm-svn: 14031
* * No more CachedWriter::setStream()Misha Brukman2004-06-041-52/+47
| | | | | | | * ostream is back to being a reference instead of a pointer * Output single characters as chars, not as length-1 strings llvm-svn: 14030
* Fix up some spacing & fix a typo in an assertion in cpValue2Value.Brian Gaeke2004-06-041-3/+3
| | | | llvm-svn: 14027
* Ugh, apparently there is no common ground here.Chris Lattner2004-06-041-0/+5
| | | | llvm-svn: 14026
* Don't send random junk to CachedWriter's. Also remove a cast that could beChris Lattner2004-06-041-4/+6
| | | | | | problematic when Type does not derive from Value. llvm-svn: 14022
* Squish a warningChris Lattner2004-06-041-1/+1
| | | | llvm-svn: 14020
* This file is obsoleteChris Lattner2004-06-041-194/+0
| | | | llvm-svn: 14005
* * Verify function prototypes, not just functions with bodies.Chris Lattner2004-06-031-2/+12
| | | | | | * Verify that functions do not take aggregates as arguments. llvm-svn: 13984
* Add new internal-global-symbol mapping info pass... may its life be shortBrian Gaeke2004-06-031-0/+80
| | | | | | and sweet. llvm-svn: 13983
* Expand head-of-file comment.Brian Gaeke2004-06-031-1/+3
| | | | llvm-svn: 13982
* Add new mapping info pass, when EmitMappingInfo is on.Brian Gaeke2004-06-031-2/+4
| | | | llvm-svn: 13981
* Fix big mistake in my last checkin... the big question is, how did I everBrian Gaeke2004-06-031-7/+7
| | | | | | get this to link before? llvm-svn: 13980
* Add decl. for new mapping info pass factory method.Brian Gaeke2004-06-031-0/+1
| | | | llvm-svn: 13979
* Collapse together the abstract superclass TargetRegInfo and SparcV9RegInfo, itsBrian Gaeke2004-06-0312-157/+71
| | | | | | only concrete implementation. llvm-svn: 13977
* <alloca.h> on cygwin pulls in a ton of stuff (macros and function protos)Chris Lattner2004-06-021-1/+1
| | | | | | | | | that we REALLY don't want in the CBE code. With this fix, the CBE passes all of the MultiSource tests on cygwin that it does on linux. Yaay! llvm-svn: 13975
* Oops, this was not to go inChris Lattner2004-06-021-1/+1
| | | | llvm-svn: 13958
* Adjust to the new TargetMachine interfaceChris Lattner2004-06-022-16/+16
| | | | llvm-svn: 13957
OpenPOWER on IntegriCloud