aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
Commit message (Collapse)AuthorAgeFilesLines
* Move FunctionArgument out of iOther.h into Argument.h and rename class toChris Lattner2002-04-093-10/+13
| | | | | | | be 'Argument' instead of FunctionArgument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2216 91177308-0d34-0410-b5e6-96231b3b80d8
* Move FunctionArgument out of iOther.h into Argument.h and rename class toChris Lattner2002-04-091-15/+0
| | | | | | | | | be 'Argument' instead of FunctionArgument. Move implementation to Function.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2212 91177308-0d34-0410-b5e6-96231b3b80d8
* Move FunctionArgument out of iOther.h into Argument.h and rename class toChris Lattner2002-04-091-2/+19
| | | | | | | | | be 'Argument' instead of FunctionArgument. Move Argument implementation to Function.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2211 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a couple of extra casts to avoid extra #includeChris Lattner2002-04-091-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2206 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a couple of extra casts to avoid having to add #includeChris Lattner2002-04-091-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2205 91177308-0d34-0410-b5e6-96231b3b80d8
* *blush* somehow this debugging code got checked in...Chris Lattner2002-04-091-3/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2187 91177308-0d34-0410-b5e6-96231b3b80d8
* s/Method/FunctionChris Lattner2002-04-082-6/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2180 91177308-0d34-0410-b5e6-96231b3b80d8
* * Narrow AsmWriter interfaceChris Lattner2002-04-081-37/+40
| | | | | | | * Implement Value::print methods here instead of WriteToAssembly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2179 91177308-0d34-0410-b5e6-96231b3b80d8
* ConstantHandling moved into VMCore libraryChris Lattner2002-04-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2165 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor change to reflect that ConstantHandling is now part of VMCoreChris Lattner2002-04-082-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2163 91177308-0d34-0410-b5e6-96231b3b80d8
* Move include/llvm/ValueHolderImpl.h to lib/VMCore/ValueHolderImpl.hChris Lattner2002-04-084-5/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2156 91177308-0d34-0410-b5e6-96231b3b80d8
* * Move include/llvm/Analysis/SlotCalculator.h to include/llvm/SlotCalculator.hChris Lattner2002-04-073-14/+15
| | | | | | | | because the slot calculator is already part of the VMCore library. * Rename incorporateMethod and purgeMethod to *Function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2154 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove some gross code by using the Value::dump method to do debug dumpsChris Lattner2002-04-074-42/+46
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2150 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove some gross code by using the VAlue::dump method to do debug dumpsChris Lattner2002-04-071-7/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2149 91177308-0d34-0410-b5e6-96231b3b80d8
* Update commentsChris Lattner2002-04-071-4/+5
| | | | | | | Implement Value::dump here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2148 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate explicit use of Writer library, using debug dump output instead.Chris Lattner2002-04-071-6/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2147 91177308-0d34-0410-b5e6-96231b3b80d8
* Change references to the Method class to be references to the FunctionChris Lattner2002-04-074-51/+52
| | | | | | | | class. The Method class is obsolete (renamed) and all references to it are being converted over to Function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2144 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Bug: test/Regression/Other/2002-04-07-InfConstant.llChris Lattner2002-04-071-3/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2142 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Other/2002-04-07-HexFloatConstants.llChris Lattner2002-04-071-2/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2141 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement constant propogation of multiply and divide instructions!!Chris Lattner2002-04-073-0/+32
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2134 91177308-0d34-0410-b5e6-96231b3b80d8
* * Make all of the refineAbstractType functions work identicallyChris Lattner2002-04-071-68/+68
| | | | | | | | | | | | | | | * Remove ambiguous code that caused problems with understanding how stuff worked. * Implement DerivedType::typeIsRefined right. Add a big comment talking about it. * The removeUserFromConcrete method already checks to see if the type is not abstract, so no need to duplicate the test all over this code This checkin makes all of the type parsing related failures work. All Assembler Regression tests now pass! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2127 91177308-0d34-0410-b5e6-96231b3b80d8
* * Reenable apparently neccesary code, that breaks testcases when enabled,Chris Lattner2002-04-061-1/+7
| | | | | | | | but causes MANY FUNDAMENTAL PROBLEMS when not enabled. :( * Add debugging function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2125 91177308-0d34-0410-b5e6-96231b3b80d8
* * FIX: test/Regression/Assembler/2002-02-19-TypeParsing.llChris Lattner2002-04-051-3/+4
| | | | | | | | | | | That was due to the StructType object not getting called multiple times to remove itself from the ATU list for an object, because it stopped getting queried due to this wrong test * Improve debug output when DEBUG_MERGE_TYPES is on git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2124 91177308-0d34-0410-b5e6-96231b3b80d8
* * Move DerivedType::addAbstractTypeUser from DerivedType.hChris Lattner2002-04-051-28/+48
| | | | | | | | | | | | | | | | * Refactor a bunch of code. Types now only remove one subelement at a time when they are told that they have changed * Improve debugging output, add more assertions... * FIX Bugs: * test/Regression/Assembler/2002-04-04-PureVirtMethCall.ll * test/Regression/Assembler/2002-04-04-PureVirtMethCall2.ll * The change to fix these bugs was the to ValTypeBase::refineAbstractType method. Basically we #if 0'd out the chunk of code there and make the table get reorganized EVEN IF the type has the same pointer. Merging opportunities were being missed! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2121 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up debugging codeChris Lattner2002-04-051-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2119 91177308-0d34-0410-b5e6-96231b3b80d8
* * Refactor loop in removeAbstractTypeUser to be more clearChris Lattner2002-04-051-18/+35
| | | | | | | | | * Fix a bug in DerivedType::refineAbstractTypeTo that caused test/Regression/Assembler/2002-04-05-TypeParsing.ll to fail. The added comment describes the fix git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2118 91177308-0d34-0410-b5e6-96231b3b80d8
* s/MethodType/FunctionTypeChris Lattner2002-04-041-8/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2115 91177308-0d34-0410-b5e6-96231b3b80d8
* Make build work in release modeChris Lattner2002-04-041-11/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2113 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the release build workChris Lattner2002-04-041-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2109 91177308-0d34-0410-b5e6-96231b3b80d8
* * Add debug support for PATypeHolderChris Lattner2002-04-041-6/+15
| | | | | | | * PATypeHolder is now not a template git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2108 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the release build compileChris Lattner2002-04-041-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2107 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a new replaceWith method useful for replacing instructionsChris Lattner2002-04-011-1/+27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2088 91177308-0d34-0410-b5e6-96231b3b80d8
* * s/Method/FunctionChris Lattner2002-03-291-10/+14
| | | | | | | | * Implement a check to make sure a function is not internal and external at the same time git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2050 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an insert method to VAlueHolder to allow batch insertionChris Lattner2002-03-291-0/+30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2038 91177308-0d34-0410-b5e6-96231b3b80d8
* Add new addTypeName method to Module classChris Lattner2002-03-291-0/+15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2037 91177308-0d34-0410-b5e6-96231b3b80d8
* s/Method/FunctionChris Lattner2002-03-294-45/+46
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2034 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement new getFunction and getOrInsertFunction methodsChris Lattner2002-03-291-0/+31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2033 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the reduceApply functions they are obsolete things from the days beforeChris Lattner2002-03-281-16/+0
| | | | | | | we had a reasonable pass system git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2022 91177308-0d34-0410-b5e6-96231b3b80d8
* Change references from Method to FunctionChris Lattner2002-03-267-106/+106
| | | | | | | change references from MethodARgument to FunctionArgument git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1991 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename Method to FunctionChris Lattner2002-03-232-19/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1957 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an assertion that would hopefully catch a problem that was trippingChris Lattner2002-03-221-0/+2
| | | | | | | cameron up git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1944 91177308-0d34-0410-b5e6-96231b3b80d8
* * AllocationInst ctor moved here from iMemory.hChris Lattner2002-03-211-0/+15
| | | | | | | * AllocationInst now always has an array size operand git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1939 91177308-0d34-0410-b5e6-96231b3b80d8
* Add an assertion to catch a misuse of replaceAllUsesWithChris Lattner2002-03-211-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1924 91177308-0d34-0410-b5e6-96231b3b80d8
* Make an assertion provide a more helpful error messageChris Lattner2002-03-171-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1883 91177308-0d34-0410-b5e6-96231b3b80d8
* Checkin new test for problem anand ran intoChris Lattner2002-03-151-3/+35
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1880 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanup error message output a bitChris Lattner2002-03-151-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1879 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a check to ensure that only PHI nodes are self referential. CodeChris Lattner2002-03-141-1/+8
| | | | | | | input to instruction combination was broken, which caused it to explode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1870 91177308-0d34-0410-b5e6-96231b3b80d8
* * Add new method localLookupChris Lattner2002-03-081-2/+16
| | | | | | | | | | | | * SymbolTable::remove(Value *N) checks to see if we are internally inconsistent before looking for a type plane (caused a crash) * insertEntry now does a local lookup instead of a global lookup, which was causing an infinite loop in the renamer logic. * Added assertions to make sure stuff stays happy * Now the linker correctly links the SPECINT2000 mcf benchmark git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1840 91177308-0d34-0410-b5e6-96231b3b80d8
* Expose more entry points to the verifierChris Lattner2002-02-261-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1815 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: test/Regression/Other/2002-02-24-InlineBrokePHINodes.llChris Lattner2002-02-251-0/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1798 91177308-0d34-0410-b5e6-96231b3b80d8