summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement vaarg instruction. This is not quite perfect: 2003-08-11-VaListArgBrian Gaeke2003-11-072-0/+36
| | | | | | still causes a crash. But it's better than before. llvm-svn: 9794
* Implement branching to a PC-relative constant (not a BasicBlock).Misha Brukman2003-11-071-7/+7
| | | | llvm-svn: 9793
* popStackAndReturnValueToCaller() must advance instruction pointer to normalBrian Gaeke2003-11-071-5/+24
| | | | | | | | destination, if returning from an invoke. Implement 'unwind' instruction. llvm-svn: 9792
* PreSelection is not optional, it performs a necessary and vital transformationMisha Brukman2003-11-071-12/+15
| | | | | | | | | for the Sparc backend: breaking up constant expressions. Thus, we cannot have it guarded by a conditional, it should never be disabled. Also, it's now available for the JIT since it is a FunctionPass. llvm-svn: 9791
* Remove the *BIG UGLY HACK* from the JIT: PreSelection is now a FunctionPass.Misha Brukman2003-11-071-15/+0
| | | | llvm-svn: 9790
* Add stub version of unwind supportBrian Gaeke2003-11-072-0/+5
| | | | llvm-svn: 9789
* visitCallInst --> visitCallSite.Brian Gaeke2003-11-072-4/+7
| | | | | | Use visitCallSite to implement both CallInsts and InvokeInsts. llvm-svn: 9788
* Make the operation of visitCallInst() only depend on the CallSite.Brian Gaeke2003-11-071-7/+9
| | | | llvm-svn: 9787
* Use CallSites for call sites, instead of CallInsts. A revolutionary concept.Brian Gaeke2003-11-072-9/+10
| | | | llvm-svn: 9784
* Switch to emitting MachineConstantPool the way it was meant to be done.Misha Brukman2003-11-072-49/+8
| | | | llvm-svn: 9777
* Switch to using the standard representation of the constant pool -- namely, theMisha Brukman2003-11-071-338/+322
| | | | | | | MachineConstantPool. This involved refactoring the two classes involved in printing out Sparc assembly. In fact, they should share all this code anyway. llvm-svn: 9776
* We accept TargetMachine as a const reference.Misha Brukman2003-11-071-3/+3
| | | | llvm-svn: 9775
* PreSelection and PeepholeOpts are now FunctionPasses.Misha Brukman2003-11-071-2/+2
| | | | llvm-svn: 9774
* * Stop making a global for each constant that cannot live in an instruction;Misha Brukman2003-11-071-36/+14
| | | | | | | | | it will be converted to a MachineConstantPool index during instruction selection * This is now eligible to become a FunctionPass since it does not have any side effects outside of the function it is processing. llvm-svn: 9773
* * Use the MachineConstantPool for storing constants instead of a hash_set;Misha Brukman2003-11-071-17/+41
| | | | | | | | * Do not create new globals for constants! Also, order #includes as per coding style guide llvm-svn: 9772
* Use `basename $<` to get just the filename, not full path, for ease of reading.Misha Brukman2003-11-071-2/+2
| | | | llvm-svn: 9770
* Declare FunctionPasses as such so that they can be used in FunctionPassManager.Misha Brukman2003-11-073-3/+3
| | | | llvm-svn: 9768
* Refactor the return-from-function code into popStackAndReturnValueToCaller().Brian Gaeke2003-11-072-37/+42
| | | | | | Make external function calls slightly less special; now they get a stack frame. llvm-svn: 9765
* Hopefully this will fix PR98Chris Lattner2003-11-071-2/+2
| | | | llvm-svn: 9762
* Hopefully fix the objdir != srcdir issueChris Lattner2003-11-071-6/+12
| | | | llvm-svn: 9761
* Fix warnings building on sparcChris Lattner2003-11-061-2/+2
| | | | llvm-svn: 9758
* Various cleanups and efficiency improvementsChris Lattner2003-11-061-38/+24
| | | | llvm-svn: 9753
* Fix bug: PR93Chris Lattner2003-11-061-0/+29
| | | | llvm-svn: 9752
* * Make the comment header 80 columns longMisha Brukman2003-11-061-3/+3
| | | | | | * Alphabetize #includes llvm-svn: 9751
* Let's not forget about our friends -- Constant Pool indices.Misha Brukman2003-11-061-0/+1
| | | | llvm-svn: 9750
* Fix the problem with running cleanups in bugpoint: We were deleting argumentsChris Lattner2003-11-051-1/+4
| | | | | | of intrinsic functions, causing the verifier to fail. llvm-svn: 9745
* Split behavior into two piecesChris Lattner2003-11-051-13/+13
| | | | llvm-svn: 9741
* Yet more fixes for constant expr shiftsChris Lattner2003-11-051-0/+6
| | | | llvm-svn: 9739
* Further fixes for PR93Chris Lattner2003-11-051-1/+7
| | | | llvm-svn: 9738
* no need for endlChris Lattner2003-11-051-1/+1
| | | | llvm-svn: 9736
* Add support for constant expr shiftsChris Lattner2003-11-052-0/+9
| | | | llvm-svn: 9735
* If we're not checking, don't check!Chris Lattner2003-11-051-1/+1
| | | | llvm-svn: 9732
* Fix flawed logic that was breaking several SPEC benchmarks, including gzip ↵Chris Lattner2003-11-051-3/+3
| | | | | | and crafty. llvm-svn: 9731
* We know exactly what the value of $< is, so instead of using `basename $<` toMisha Brukman2003-11-051-8/+7
| | | | | | get just the filename and not the full path, just use the filename directly. llvm-svn: 9730
* Do not use a class before it is defined.Chris Lattner2003-11-051-6/+9
| | | | | | Be gcc 3.4 clean llvm-svn: 9727
* Be friendly to gcc 3.4... good compiler. Nice compiler.Chris Lattner2003-11-053-3/+1
| | | | llvm-svn: 9726
* Be gcc 3.4 cleanChris Lattner2003-11-051-1/+3
| | | | llvm-svn: 9725
* Fix name collisionChris Lattner2003-11-051-2/+2
| | | | llvm-svn: 9722
* Make code gcc 3.4 cleanChris Lattner2003-11-054-6/+6
| | | | llvm-svn: 9719
* Abort when the user program calls abort, instead of printing a funny message ↵Brian Gaeke2003-11-051-4/+2
| | | | | | and calling exit(1). llvm-svn: 9716
* Fix bug with previous implementation:Chris Lattner2003-11-051-4/+11
| | | | | | | | - // ~(c-X) == X-(c-1) == X+(-c+1) + // ~(c-X) == X-c-1 == X+(-c-1) Implement: C - ~X == X + (1+C) llvm-svn: 9715
* Use regular old malloc to emulate malloc/alloca instructions.Brian Gaeke2003-11-051-2/+1
| | | | llvm-svn: 9713
* Remove a comment which no longer applies.Brian Gaeke2003-11-051-5/+0
| | | | llvm-svn: 9712
* Minor cleanup, plus implement InstCombine/xor.ll:test17Chris Lattner2003-11-041-3/+17
| | | | llvm-svn: 9711
* Implement InstCombine/xor.ll:test(15|16)Chris Lattner2003-11-041-1/+8
| | | | llvm-svn: 9708
* Change all machine basic block modifier functions in MRegisterInfo toAlkis Evlogimenos2003-11-042-41/+54
| | | | | | | | | | | | | | | return the number of instructions added to/removed from the basic block passed as their first argument. Note: This is only needed because we use a std::vector instead of an ilist to keep MachineBasicBlock instructions. Inserting an instruction to a MachineBasicBlock invalidates all iterators to the basic block. The return value can be used to update an index to the machine basic block instruction vector and circumvent the iterator elimination problem but this is really not needed if we move to a better representation. llvm-svn: 9704
* Update verifySavedState()'s comment, so that it reflects its currentBrian Gaeke2003-11-041-1/+3
| | | | | | | status. In doFinalization(), skip over external functions, just like Anand's mapping info does. llvm-svn: 9703
* Add comments.Brian Gaeke2003-11-041-0/+4
| | | | llvm-svn: 9697
* Fix problems in previous changes. This fixes several regressions last night.Chris Lattner2003-11-041-5/+6
| | | | llvm-svn: 9694
* Checking in Chris's suggestions:John Criswell2003-11-041-3/+32
| | | | | | | | | | Added assert() to ensure symbol table is well formed. Added code to remember the value that was found; resolving types can change the symbol table and invalidate the value of the iterator. Added comments to the ResolveTypes() function (mainly for my own benefit). Please feel free to correct the comments if they are not accurate. llvm-svn: 9693
OpenPOWER on IntegriCloud