summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* The uid mapping is no moreChris Lattner2004-07-081-12/+1
| | | | llvm-svn: 14708
* Eliminate uses of the UniqueID field on Type objectsChris Lattner2004-07-081-23/+18
| | | | llvm-svn: 14707
* Do not call Type::getUniqueIDChris Lattner2004-07-081-4/+12
| | | | llvm-svn: 14706
* Add support for __fixdfdi(), __floatdisf(), and __floatdidf() external functionsMisha Brukman2004-07-082-6/+22
| | | | llvm-svn: 14703
* * Use several Function* for external functions instead of a std::mapMisha Brukman2004-07-082-52/+78
| | | | | | * Non-const FP values must be loaded into int regs (for vararg fns) via memory llvm-svn: 14701
* * Add support for loading FP constants from the constant poolMisha Brukman2004-07-082-20/+88
| | | | | | * Load FP values into int regs as well for vararg functions; without memory ops! llvm-svn: 14700
* * Fix header comment, excise references to X86Misha Brukman2004-07-082-30/+46
| | | | | | * Add suport for printing out references to constant pool indices llvm-svn: 14699
* Eliminate the SignedType and UnsignedType classes.Chris Lattner2004-07-081-49/+19
| | | | llvm-svn: 14695
* Support setcc on fp values.Brian Gaeke2004-07-081-12/+21
| | | | llvm-svn: 14687
* Add floating-point branches and compares. Compares don't completeBrian Gaeke2004-07-082-0/+52
| | | | | | | until the next cycle, and there's no interlock, so they effectively have a delay slot. llvm-svn: 14686
* Fix bug where SwitchSection would fail to change to ".bss" successfully.Brian Gaeke2004-07-081-1/+1
| | | | llvm-svn: 14685
* Fix bug involving bool arguments to binary operators.Brian Gaeke2004-07-081-2/+2
| | | | | | Fix typo in comment. llvm-svn: 14684
* Fix bug in copying long constants to register pairs. We were gettingBrian Gaeke2004-07-081-2/+17
| | | | | | | | the top and bottom halves backwards...how embarrassing. Support 'cast long to long' and other similar no-op casts to long. Support 'ret long'. llvm-svn: 14683
* Disable some code that isn't helping mattersChris Lattner2004-07-081-1/+6
| | | | llvm-svn: 14682
* Support 'ret float'Brian Gaeke2004-07-081-0/+3
| | | | llvm-svn: 14681
* Add viewCFG() and viewCFGOnly() APIs.Alkis Evlogimenos2004-07-081-1/+77
| | | | llvm-svn: 14679
* There is no error message to print out, end sentence with `!'Misha Brukman2004-07-071-1/+1
| | | | llvm-svn: 14678
* Make error message consistent with the rest of LLVM by saying that bytecodeReid Spencer2004-07-071-2/+2
| | | | | | is read, not parsed. llvm-svn: 14677
* Fix for bug 391.Reid Spencer2004-07-073-1/+14
| | | | | | Improve exeception handling around bcreader invocations. llvm-svn: 14674
* * Use a map for caching lookups to external functions (fp div/rem)Misha Brukman2004-07-072-40/+56
| | | | | | * Tabs to spaces llvm-svn: 14673
* * Wrap long lines (comments and code)Misha Brukman2004-07-071-11/+13
| | | | | | * Tabs to spaces llvm-svn: 14672
* Fix regressions in these testcases:Chris Lattner2004-07-071-1/+2
| | | | | | | | | Regression.Assembler.2002-01-24-BadSymbolTableAssert Regression.Assembler.2002-01-24-ValueRefineAbsType Found through the nightly tester :) llvm-svn: 14671
* Add fmod() to the Module being compiled so that it gets a stub in the asm fileMisha Brukman2004-07-072-6/+16
| | | | llvm-svn: 14670
* The bytecode reader wants to be able to read types that are not quite resolvedChris Lattner2004-07-071-1/+2
| | | | | | yet, then resolve them in it's own sweet time. We must support this. llvm-svn: 14666
* Headers movedChris Lattner2004-07-071-1/+1
| | | | llvm-svn: 14665
* Move all of the DSA headers into the Analysis/DataStructure subdir.Chris Lattner2004-07-0714-29/+31
| | | | llvm-svn: 14663
* As much as I hate to say it, the whole setNode interface for DSNodeHandlesChris Lattner2004-07-072-11/+7
| | | | | | | | | | | | is HOPELESSLY broken. The problem is that the embedded getNode call can change the offset of the node handle in unpredictable ways. As it turns out, all of the clients of this method really want to set both the node and the offset, thus it is more efficient (and less buggy) to just do both of them in one method call. This fixes some obscure bugs handling non-forwarded node handles. llvm-svn: 14660
* When folding constant expr gep's, don't force the use of long indices.Chris Lattner2004-07-071-3/+6
| | | | llvm-svn: 14658
* Disable coalescing.Alkis Evlogimenos2004-07-071-1/+1
| | | | llvm-svn: 14655
* Make sure people don't make functiontypes with an invalid return typeChris Lattner2004-07-061-0/+2
| | | | llvm-svn: 14654
* * Add support for calling vararg functions (must pass doubles in int regs too)Misha Brukman2004-07-062-136/+178
| | | | | | | | | | | | * Make visitSetCondInst() share condition-generating code with EmitComparison() * There are 13 FPRs for function-passing arguments, not 8 * Do not rely on registers being sequential, use an array lookup * In unimplemented switch cases, send an error and abort instead of silent fall-through * Add doInitialization() for adding function prototypes for external math fns * Minor changes: fix indentation, spacing, code clarity llvm-svn: 14653
* Use the more compact `bl' instead of cryptic (but equivalent) `bcl 20,31'Misha Brukman2004-07-062-4/+4
| | | | llvm-svn: 14652
* Work around apparent Apple compiler bug which was making all mangledBrian Gaeke2004-07-061-2/+2
| | | | | | names start with l0_. llvm-svn: 14651
* Check to make sure types are sized before calling getTypeSize on them.Chris Lattner2004-07-061-13/+15
| | | | llvm-svn: 14649
* It doesn't matter what the 2nd operand is; if the GEP has 2 operands andBrian Gaeke2004-07-061-2/+1
| | | | | | the first is a zero, we should leave it alone. llvm-svn: 14648
* Add helper function.Brian Gaeke2004-07-061-2/+14
| | | | | | | Don't touch GEPs for which DecomposeArrayRef is not going to do anything special (e.g., < 2 indices, or 2 indices and the last one is a constant.) llvm-svn: 14647
* Find bugs sooner rather than later. In this case, don't allow the creationChris Lattner2004-07-062-11/+8
| | | | | | of instructions that don't have a first-class or void type. llvm-svn: 14646
* Do not crash when joining two intervals of registers of differentAlkis Evlogimenos2004-07-061-1/+10
| | | | | | | classes: just ignore that move. Thanks to Vladimir Prus who found the bug! llvm-svn: 14644
* * Add utility functions: convert SetCC => PPC opcode and invert PPC opcodeMisha Brukman2004-07-062-68/+98
| | | | | | | | | * If SetCondInst is folded into BranchInst (and it is the only user), do not emit code for SetCondInst * Fix assembly opcodes in comments in visitSetCondInst() * Fix codegen of conditional branches llvm-svn: 14643
* Implement rem.ll:test3Chris Lattner2004-07-061-0/+18
| | | | llvm-svn: 14640
* Fix a minor bug where we would go into infinite loops on some constantsChris Lattner2004-07-061-1/+2
| | | | llvm-svn: 14638
* Implement InstCombine/sub.ll:test15: X % -Y === X % YChris Lattner2004-07-061-2/+9
| | | | | | | Also, remove X % -1 = 0, because it's not true for unsigneds, and the signed case is superceeded by this new handling. llvm-svn: 14637
* Fix a bug in the unreachable block elim pass. Dropping all references on aChris Lattner2004-07-061-4/+11
| | | | | | | | basic block clear()'s all of the operands lists, including phis. This caused removePredecessor to get confused later. Because of this, we just nuke (without prejudice) PHI nodes in unreachable blocks. llvm-svn: 14635
* Remove definition and use of OtherVal enumerator. This just fixes a thinko.Reid Spencer2004-07-061-1/+1
| | | | llvm-svn: 14634
* Finalize bytecode dumping. The "handleFinish" method was getting calledReid Spencer2004-07-054-29/+38
| | | | | | | | too soon so the function data was not getting dumped (it was generated after the call handleFinish). Also cleaned up the output format for proper indentation. llvm-svn: 14627
* Correctly compute the ration of iterations/#intervals.Alkis Evlogimenos2004-07-041-2/+6
| | | | llvm-svn: 14626
* Add #includesChris Lattner2004-07-043-0/+3
| | | | llvm-svn: 14625
* Add #include <iostream> since Value.h does not #include it any more.Reid Spencer2004-07-0454-2/+73
| | | | llvm-svn: 14622
* - remove use of isa<Type>(Val) since there's no inheritance relationshipReid Spencer2004-07-041-4/+3
| | | | | | | any more. Needed for bug 122 - #include <iostream> since Value.h doesn't include it any more. llvm-svn: 14621
* Remove use of Type::TypeTy which is no longer defined. This change neededReid Spencer2004-07-041-1/+1
| | | | | | for bug 122 since the "Type Type" concept is gone now. llvm-svn: 14620
OpenPOWER on IntegriCloud