aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Workaround or a VS miscompilation bugChris Lattner2004-06-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14078 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't grab the condition of unconditional branches!Chris Lattner2004-06-081-7/+8
| | | | | | | This fixes PR363 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14076 91177308-0d34-0410-b5e6-96231b3b80d8
* 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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14075 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a TmpInstruction ctor that doesn't take a MCFI.Brian Gaeke2004-06-081-2/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14073 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a link error using VS8.0Chris Lattner2004-06-082-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14071 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14057 91177308-0d34-0410-b5e6-96231b3b80d8
* 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14056 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust what's included to compensate for changes in Parser.hReid Spencer2004-06-082-0/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14055 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14054 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR361.Chris Lattner2004-06-071-1/+2
| | | | | | | Dominance properties don't hold in unreachable code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14053 91177308-0d34-0410-b5e6-96231b3b80d8
* Make all of this functionality work directly on win32. Properly conditionalizeChris Lattner2004-06-071-13/+29
| | | | | | | system specific stuff on HAVE_MKSTEMP git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14051 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement getTimeRecord natively in Win32, properly conditionalize theChris Lattner2004-06-071-7/+28
| | | | | | | getrusage implementation on HAVE_GETRUSAGE git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14050 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14048 91177308-0d34-0410-b5e6-96231b3b80d8
* Add some notes so I can throw away one of my many todo lists.Chris Lattner2004-06-051-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14046 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix GCC warningChris Lattner2004-06-051-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14045 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix GCC warningsChris Lattner2004-06-051-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14044 91177308-0d34-0410-b5e6-96231b3b80d8
* Include cerrno.Alkis Evlogimenos2004-06-051-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14041 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove an unused variable.Chris Lattner2004-06-052-14/+20
| | | | | | | | Work around for bogus errors: no those static functions don't need to be executed to be initialized! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14040 91177308-0d34-0410-b5e6-96231b3b80d8
* Add missing #includeChris Lattner2004-06-051-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14037 91177308-0d34-0410-b5e6-96231b3b80d8
* Work around VS bugChris Lattner2004-06-051-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14036 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14034 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unused varChris Lattner2004-06-051-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14033 91177308-0d34-0410-b5e6-96231b3b80d8
* Squelch a warningChris Lattner2004-06-041-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14032 91177308-0d34-0410-b5e6-96231b3b80d8
* Delete some unreachable codeChris Lattner2004-06-041-5/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14031 91177308-0d34-0410-b5e6-96231b3b80d8
* * 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14030 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix up some spacing & fix a typo in an assertion in cpValue2Value.Brian Gaeke2004-06-041-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14027 91177308-0d34-0410-b5e6-96231b3b80d8
* Ugh, apparently there is no common ground here.Chris Lattner2004-06-041-0/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14026 91177308-0d34-0410-b5e6-96231b3b80d8
* 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14022 91177308-0d34-0410-b5e6-96231b3b80d8
* Squish a warningChris Lattner2004-06-041-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14020 91177308-0d34-0410-b5e6-96231b3b80d8
* This file is obsoleteChris Lattner2004-06-041-194/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14005 91177308-0d34-0410-b5e6-96231b3b80d8
* * Verify function prototypes, not just functions with bodies.Chris Lattner2004-06-031-2/+12
| | | | | | | * Verify that functions do not take aggregates as arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13984 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new internal-global-symbol mapping info pass... may its life be shortBrian Gaeke2004-06-031-0/+80
| | | | | | | and sweet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13983 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand head-of-file comment.Brian Gaeke2004-06-031-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13982 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new mapping info pass, when EmitMappingInfo is on.Brian Gaeke2004-06-031-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13981 91177308-0d34-0410-b5e6-96231b3b80d8
* 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? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13980 91177308-0d34-0410-b5e6-96231b3b80d8
* Add decl. for new mapping info pass factory method.Brian Gaeke2004-06-031-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13979 91177308-0d34-0410-b5e6-96231b3b80d8
* Collapse together the abstract superclass TargetRegInfo and SparcV9RegInfo, itsBrian Gaeke2004-06-0312-157/+71
| | | | | | | only concrete implementation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13977 91177308-0d34-0410-b5e6-96231b3b80d8
* <alloca.h> on cygwin pulls in a ton of stuff (macros and function protos)Chris Lattner2004-06-022-2/+2
| | | | | | | | | | 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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13975 91177308-0d34-0410-b5e6-96231b3b80d8
* Oops, this was not to go inChris Lattner2004-06-021-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13958 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust to the new TargetMachine interfaceChris Lattner2004-06-024-32/+32
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13957 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust to new TargetMachine interfaceChris Lattner2004-06-0211-19/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13956 91177308-0d34-0410-b5e6-96231b3b80d8
* Inline findOptimalStorageSize into it's caller, both of which are sparc specificChris Lattner2004-06-021-12/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13955 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust to new TM interfaceChris Lattner2004-06-021-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13954 91177308-0d34-0410-b5e6-96231b3b80d8
* Method has been inlined into all callersChris Lattner2004-06-021-7/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13953 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert to the new TargetMachine interface.Chris Lattner2004-06-0228-161/+166
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13952 91177308-0d34-0410-b5e6-96231b3b80d8
* Stubs are no longer neededChris Lattner2004-06-021-5/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13951 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust to new TM interfacesChris Lattner2004-06-024-12/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13949 91177308-0d34-0410-b5e6-96231b3b80d8
* Finegrainify namespacificationChris Lattner2004-06-022-6/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13948 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a trivial but blatant bugChris Lattner2004-06-021-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13947 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the new CopyFile functionChris Lattner2004-06-021-0/+35
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13945 91177308-0d34-0410-b5e6-96231b3b80d8