summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Significantly simplify constant emission by unifying the stuff which used to ↵Chris Lattner2003-11-031-147/+119
| | | | | | | | | build up strings with the stuff that used to print to an ostream directly. We now NEVER build up big strings, only to print them once they are formed. llvm-svn: 9686
* Incorporate printSingleConstantValue into its single callerChris Lattner2003-11-031-89/+66
| | | | llvm-svn: 9684
* * Reformat some codeChris Lattner2003-11-031-42/+34
| | | | | | | * Emit bools as 1/0 instead of true/false, fixing compilation of eon and PR 83 & Jello/2003-11-03-GlobalBool.llx llvm-svn: 9683
* Fix InstCombine/2003-11-03-VarargsCallBug.llChris Lattner2003-11-031-4/+3
| | | | llvm-svn: 9681
* Work around a bug in GCC where it can't handle common variables marked weak.Chris Lattner2003-11-031-1/+8
| | | | llvm-svn: 9679
* Fix bugs with attribute weak emissionChris Lattner2003-11-031-3/+6
| | | | llvm-svn: 9678
* Implement InstCombine/cast-set.ll:test6[a]. This improves code generated forChris Lattner2003-11-031-6/+57
| | | | | | a hot function in em3d llvm-svn: 9673
* This simplifies the CWriter code, makes the generated code easier to read,Chris Lattner2003-11-031-11/+2
| | | | | | and makes the output work with the intel compiler. Overall, a win. llvm-svn: 9671
* Implement InstCombine/cast-set.ll: test1, test2, test7Chris Lattner2003-11-031-15/+41
| | | | llvm-svn: 9670
* Fix bug with zero sized castsChris Lattner2003-11-031-1/+1
| | | | llvm-svn: 9667
* Eliminate the silly namedContext member of printTypeChris Lattner2003-11-031-8/+7
| | | | llvm-svn: 9666
* All DSGraphs keep a reference to the targetdata they are created with. This isChris Lattner2003-11-023-20/+27
| | | | | | | | used to eliminate the hard coded, hacked in, sparc specific, global TargetData. Changing the TargetData used to actually match the code fixes problems, and eliminates a crash. llvm-svn: 9659
* Fix bug: test/Regression/Analysis/DSGraph/2003-11-02-NodeCollapsing.llChris Lattner2003-11-021-6/+8
| | | | llvm-svn: 9658
* Fix bug in previous checkinChris Lattner2003-11-021-1/+1
| | | | llvm-svn: 9656
* Implement transmogriphication of allocation instructionsChris Lattner2003-11-021-2/+33
| | | | llvm-svn: 9654
* Fix PR78Chris Lattner2003-11-021-1/+1
| | | | llvm-svn: 9648
* The "correct" fix for CBackend/2003-10-23-UnusedType.ll is to not even tryChris Lattner2003-11-021-15/+24
| | | | | | to emit types which are not used. llvm-svn: 9647
* Including the symbol table in the FindUsedTypes analysis was the WRONG wayChris Lattner2003-11-021-13/+3
| | | | | | | to fix test/Regression/CBackend/2003-10-23-UnusedType.ll. This completely neutered the deadtypeelim pass. llvm-svn: 9646
* Strip off CPR's manually, because if we don't, the inliner doesn't delete deadChris Lattner2003-10-311-2/+9
| | | | | | functions. GRR llvm-svn: 9641
* Make the call graph more precise despite the hated constantpointerrefs.Chris Lattner2003-10-311-16/+36
| | | | | | Do you detect the animosity I feel towards CPRs yet? llvm-svn: 9640
* Did I mention that I _HATE_ CPRs?Chris Lattner2003-10-311-0/+12
| | | | llvm-svn: 9639
* Constant pointer refs are causing these to fail unnecessarily, which is causingChris Lattner2003-10-311-0/+31
| | | | | | a lot of code to be pessimized. I hate CPRs. :( llvm-svn: 9635
* Use already existing classes for post order iterator.Alkis Evlogimenos2003-10-311-17/+11
| | | | llvm-svn: 9629
* Make use of the new AssemblyAnnotationWriter interfaceChris Lattner2003-10-301-13/+21
| | | | llvm-svn: 9619
* Include llvm/CodeGen/MachineCodeForInstruction.h. Use it to startBrian Gaeke2003-10-301-6/+29
| | | | | | | | | implementing verifySavedState(). In saveState(), use the new AllocInfo::AllocStateTy enum, and increment Insn each time through the loop. llvm-svn: 9617
* Make AllocState an enum.Brian Gaeke2003-10-301-2/+12
| | | | | | Move the stringifying method for that enum into class AllocInfo. llvm-svn: 9616
* Output types in reverse postorder. This will allow the ByteCode/ReaderAlkis Evlogimenos2003-10-301-9/+17
| | | | | | | to create the minimum number of opaque types for each type with a cycle in its type graph. llvm-svn: 9615
* Put DEBUG_OUTPUT at the top along with TRACE_LEVEL. Also fix the codeAlkis Evlogimenos2003-10-301-2/+3
| | | | | | inside DEBUG_OUTPUT so that it compiles. llvm-svn: 9614
* When someone includes CallGraph.h, make sure that they link in CallGraph.cppChris Lattner2003-10-301-0/+1
| | | | llvm-svn: 9611
OpenPOWER on IntegriCloud