aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement code to convert %malloc and %free FUNCTION CALLS into the ↵Chris Lattner2001-10-311-3/+118
| | | | | | instruction equivalent git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1065 91177308-0d34-0410-b5e6-96231b3b80d8
* Implemented constant propogation of cast instructionsChris Lattner2001-10-314-3/+43
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1064 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial version of GCC cleanup pass: just removes extraneous global symbol ↵Chris Lattner2001-10-312-0/+68
| | | | | | table entries for types git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1062 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug when inlining a method that refers to a global variableChris Lattner2001-10-311-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1056 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement xor operatorChris Lattner2001-10-301-0/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1050 91177308-0d34-0410-b5e6-96231b3b80d8
* callExternalMethod now returns the return value of the functionChris Lattner2001-10-301-2/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1048 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement a gross function name map that must be used when linking staticallyChris Lattner2001-10-301-18/+42
| | | | | | | This is for use with purify git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1047 91177308-0d34-0410-b5e6-96231b3b80d8
* * Add some assertions for checking internal error conditionsChris Lattner2001-10-301-32/+90
| | | | | | | | | | * Implement the 'rem' instruction * Fix getelementptr to work right * Copy the return result of an external function call into the receiving value * Convert stuff to new style casts git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1046 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't fail to load runtime if running LLI from the current directoryChris Lattner2001-10-301-1/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1044 91177308-0d34-0410-b5e6-96231b3b80d8
* Initialize isRecursive. Found by PurifyChris Lattner2001-10-301-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1043 91177308-0d34-0410-b5e6-96231b3b80d8
* Print out a label if we step into the first instruction of a basic blockChris Lattner2001-10-291-0/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1038 91177308-0d34-0410-b5e6-96231b3b80d8
* * Fix pow wrapper to actually workChris Lattner2001-10-291-1/+56
| | | | | | | * Implement rudimentary printf support for lli git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1037 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement getelementptr instruction as well as the load and store formsChris Lattner2001-10-291-6/+44
| | | | | | | that incorporate gep git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1036 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix broken assertion. Didn't allow for pointer caseChris Lattner2001-10-291-6/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1034 91177308-0d34-0410-b5e6-96231b3b80d8
* Pull method symbols over when linking. Otherwise the result of the link ↵Chris Lattner2001-10-293-0/+3
| | | | | | will appear stripped git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1033 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix blatent bugs in checkinChris Lattner2001-10-291-5/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1032 91177308-0d34-0410-b5e6-96231b3b80d8
* Expose the WriteTypeSymbolic function from the library. Refactor code to makeChris Lattner2001-10-291-119/+183
| | | | | | | this function explicit. Cause WriteAsOperand to use symbolic types as available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1031 91177308-0d34-0410-b5e6-96231b3b80d8
* Be careful to output symbolic type name if possible for a type. This makesChris Lattner2001-10-291-82/+224
| | | | | | | debugging the Olden/health benchmark actually possible. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1029 91177308-0d34-0410-b5e6-96231b3b80d8
* Remember to print out the next instruction if stepping over an external ↵Chris Lattner2001-10-291-0/+2
| | | | | | method call git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1028 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix problem next'ing over an external methodChris Lattner2001-10-291-2/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1027 91177308-0d34-0410-b5e6-96231b3b80d8
* Check in to use moved stringizing codeChris Lattner2001-10-291-2/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1024 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove C string capability from VMCore library. Move to SupportChris Lattner2001-10-291-47/+31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1021 91177308-0d34-0410-b5e6-96231b3b80d8
* Make newlines be newlines! This should now work in both lli and native code.Vikram S. Adve2001-10-281-7/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1016 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove non linking related stuffChris Lattner2001-10-283-174/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1015 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some illegal uses of the ## operatorChris Lattner2001-10-281-4/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1013 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor fix I omitted to check in.Vikram S. Adve2001-10-281-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1012 91177308-0d34-0410-b5e6-96231b3b80d8
* Support printing control characters in standard C/assembly style,Vikram S. Adve2001-10-281-23/+42
| | | | | | | if you specify useCSyntax = true. The old style is still the default. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1011 91177308-0d34-0410-b5e6-96231b3b80d8
* Record constants that need to be emitted in the assembly code.Vikram S. Adve2001-10-282-80/+38
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1010 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow combinations of True/Anti/Output flags for each edge toVikram S. Adve2001-10-282-14/+32
| | | | | | | support, e.g., dependences on Call instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1009 91177308-0d34-0410-b5e6-96231b3b80d8
* Add edges between call instructions and (a) load/store instructions, andVikram S. Adve2001-10-282-68/+222
| | | | | | | | (b) any instructions that use or set CC registers. Whether or not the latter are needed really should be machine-dependent. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1008 91177308-0d34-0410-b5e6-96231b3b80d8
* Generate SETX for 64-bit integers!Vikram S. Adve2001-10-281-8/+28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1007 91177308-0d34-0410-b5e6-96231b3b80d8
* Add SETX instruction for 64-bit constants.Vikram S. Adve2001-10-281-8/+9
| | | | | | | Add M_CC_FLAG for many instructions that use int or fp CC registers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1006 91177308-0d34-0410-b5e6-96231b3b80d8
* Need to subtract, not add, stack size in SAVE instruction!Vikram S. Adve2001-10-281-3/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1005 91177308-0d34-0410-b5e6-96231b3b80d8
* Major overhaul to print globals and constants.Vikram S. Adve2001-10-281-133/+355
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1004 91177308-0d34-0410-b5e6-96231b3b80d8
* Added name-mangling routines for future use.Vikram S. Adve2001-10-283-0/+177
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1003 91177308-0d34-0410-b5e6-96231b3b80d8
* Use separate functions for printing values of each type.Vikram S. Adve2001-10-281-20/+87
| | | | | | | | Put trace code before condition-generating instruction in basic blocks that end in a conditional branch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1002 91177308-0d34-0410-b5e6-96231b3b80d8
* Add methods print<TYPE> for String, Pointer, and each primitive type.Vikram S. Adve2001-10-281-0/+31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@994 91177308-0d34-0410-b5e6-96231b3b80d8
* Added support for spillingRuchira Sasanka2001-10-288-106/+547
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@992 91177308-0d34-0410-b5e6-96231b3b80d8
* Added spill code support; moved insertCallerSaving to SparRegInfo sinceRuchira Sasanka2001-10-282-132/+638
| | | | | | | we need to handle %ccr reg in a special way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@990 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement a -trace command line option and a trace option in the interpreter.Chris Lattner2001-10-273-1/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@989 91177308-0d34-0410-b5e6-96231b3b80d8
* * Make pointer values work better by treating them uniformly as 64 bit values.Chris Lattner2001-10-275-37/+90
| | | | | | | | | | This causes code that is generated by gcc to work better. * Implement mul & div * Export malloc, free, and pow * add strtol, atoi, and atol to the runtime library git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@988 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide argv for commandsChris Lattner2001-10-273-6/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@987 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide option to enable eating of all arguments following a specific oneChris Lattner2001-10-271-28/+41
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@986 91177308-0d34-0410-b5e6-96231b3b80d8
* * Implement exit() builtin functionChris Lattner2001-10-275-7/+66
| | | | | | | | * Implement linked in runtime library with puts(char*) in it * implement builtin putchar(int) function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@985 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed load syntax in EmitAssemblyRuchira Sasanka2001-10-242-10/+47
| | | | | | | Fixed cpReg2Mem (store) operand oreder in SparcRegInfo.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@984 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for building a runtime library for LLIChris Lattner2001-10-241-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@983 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed logic for checking whether a LR received the correct color.Ruchira Sasanka2001-10-241-52/+60
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@976 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up error handling a bit. Add / as a seperator for command line ↵Chris Lattner2001-10-241-3/+6
| | | | | | arguments. This is just a big old ugly hack. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@974 91177308-0d34-0410-b5e6-96231b3b80d8
* Frivolous cleanupsChris Lattner2001-10-241-18/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@973 91177308-0d34-0410-b5e6-96231b3b80d8
* Dang it, do NOT check in code that enables debugging. Bad chrisChris Lattner2001-10-241-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@972 91177308-0d34-0410-b5e6-96231b3b80d8