summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Make these format a bit nicerChris Lattner2004-07-116-6/+6
| | | | llvm-svn: 14747
* Auto-registrate targetChris Lattner2004-07-119-6/+84
| | | | llvm-svn: 14745
* Add compilabilityChris Lattner2004-07-113-0/+3
| | | | llvm-svn: 14744
* Initial impl of this file. Yes this is pretty useless right now, but itChris Lattner2004-07-111-0/+21
| | | | | | will grow in time. llvm-svn: 14743
* Implicitly getting a new option by linking to support.o instead of support.aChris Lattner2004-07-111-23/+8
| | | | | | | is a bad idea. Make tools that want the option #include PluginSupport.h explicitly. llvm-svn: 14738
* Replace use of defunct Type::setName method with SymbolTable::insert.Reid Spencer2004-07-101-1/+1
| | | | | | Patch found and provided by Vladimir Merzliakov. Thanks Vladimir! llvm-svn: 14732
* Make the VBRSavings percentage make sense (as a fraction of the totalReid Spencer2004-07-101-3/+2
| | | | | | expanded size instead of the file size). Thanks Chris. llvm-svn: 14731
* Error Handling Cleanup:Reid Spencer2004-07-092-121/+129
| | | | | | | | | | - get rid of PARSE_ERROR macro - add error(std::string) function - use error(std::string) for all errors - make input dependent asserts call error(std::string) instead - ensure asserts are only for logic bugs, not input discrepancies. llvm-svn: 14729
* Fix a backwards compatibility bug found by Tanya. In version 1.2, theReid Spencer2004-07-091-0/+5
| | | | | | | | | global type plane starts with a length and the TypeTyID value to identify the type plane has having type definitions. This doesn't happen in 1.3 because the types are read from a known position in the file. However, the TypeTyID must be read in (and ignored) if its a 1.2 bytecode file. llvm-svn: 14728
* Remove unused methodChris Lattner2004-07-091-5/+0
| | | | llvm-svn: 14726
* Add checks to ensure that there are no unreachable blocks in the functionChris Lattner2004-07-091-0/+8
| | | | llvm-svn: 14725
* Don't call Type::setName()Chris Lattner2004-07-091-1/+1
| | | | llvm-svn: 14724
* * Add support for indexing into structures, thanks to Chris (x86)Misha Brukman2004-07-092-120/+188
| | | | | | | | | | | | The large diff is because of indentation of a whole region * Fix querying predecessor blocks in SelectPHINodes(), thanks to Brian (v8) * Add support for external functions malloc() and free() * Fix some code indentation Remember, kids: It's not plagiarism if you "creatively borrow" from your sources. It's called "research"! llvm-svn: 14723
* Read/write the offset value for stack-relative loads via correct instr operand.Misha Brukman2004-07-091-7/+5
| | | | llvm-svn: 14722
* * Doxygenify commentsMisha Brukman2004-07-091-104/+96
| | | | | | | | | | | * Fix spacing, grammar in comment * Make code layout consistent * Wrap code at 80 cols * Delete spurious blank lines No functional changes. llvm-svn: 14721
* Fix typo.Alkis Evlogimenos2004-07-091-1/+1
| | | | llvm-svn: 14720
* Improve code comments.Alkis Evlogimenos2004-07-091-5/+11
| | | | llvm-svn: 14719
* 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
OpenPOWER on IntegriCloud