summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Change this method to return ulong, not uint, for 64-bit targets.Chris Lattner2004-12-131-5/+4
| | | | llvm-svn: 18906
* Genericize implementation of GetDLLSuffix now that we have LTDL_SHLIB_EXTReid Spencer2004-12-139-40/+6
| | | | | | available. llvm-svn: 18904
* For PR351:Reid Spencer2004-12-131-46/+0
| | | | | | | | The ReadFileIntoAddressSpace and UnmapFileFromAddressSpace functions are no longer used by LLVM. Remove them. Replacement functionality for both functions is now encapsulated in the sys::MappedFile class. llvm-svn: 18903
* For PR351:Reid Spencer2004-12-131-20/+6
| | | | | | | | Use sys::MappedFile instead of ReadFileIntoAddressSpace and UnmapFileFromAddressSpace. sys::MappedFile has the nice property that it cleans up after itself so exception handling can be removed. llvm-svn: 18902
* Set the rounding mode for the X86 FPU to 64-bits instead of 80-bits. WeChris Lattner2004-12-131-0/+22
| | | | | | | | | | | don't support long double anyway, and this gives us FP results closer to other targets. This also speeds up 179.art from 41.4s to 18.32s, by eliminating a problem with extra precision that causes an FP == comparison to fail (leading to extra loop iterations). llvm-svn: 18895
* For PR351: \Reid Spencer2004-12-132-23/+6
| | | | | | | | The getFileTimestamp and getFileSize functions have been removed from \ FileUtilities.{h,cpp}. They are replaced by Path::getTimestamp and \ Path::getSize,respectively. llvm-svn: 18892
* Get rid of some leaks found by VC leak detector.Reid Spencer2004-12-132-5/+8
| | | | | | Patch contributed by Morten Ofsted. llvm-svn: 18889
* Fix a bug where "." or any single character file name doesn't get theReid Spencer2004-12-131-1/+1
| | | | | | terminating / when setDirectory is called. llvm-svn: 18886
* Remove an always false clause from an if statement.Reid Spencer2004-12-131-1/+1
| | | | llvm-svn: 18885
* Fix a bug where directory names of length one or less where not setAlkis Evlogimenos2004-12-131-1/+1
| | | | | | properly (examples: "", ".", "a"). llvm-svn: 18883
* * Add a std::ostream inserter for sys::PathReid Spencer2004-12-132-2/+2
| | | | | | * Correct the std::string constructor to take a const reference. llvm-svn: 18877
* Fix recent breakage of win32 buildJeff Cohen2004-12-132-9/+1
| | | | llvm-svn: 18876
* * Fix header block.Reid Spencer2004-12-131-8/+8
| | | | | | | | * Fix loop style per standards * Don't create a new Module when the Linker's module is released. * Add/fix function comments. llvm-svn: 18871
* Add missing space in a comment.Reid Spencer2004-12-131-1/+1
| | | | llvm-svn: 18870
* Make sure the Archive gets deleted if there's an error.Reid Spencer2004-12-131-4/+4
| | | | llvm-svn: 18869
* Fix header and function comments.Reid Spencer2004-12-131-14/+6
| | | | llvm-svn: 18867
* Implement new functions per new interfaceReid Spencer2004-12-131-55/+48
| | | | llvm-svn: 18866
* For PR351: \Reid Spencer2004-12-131-67/+54
| | | | | | | | * Remove IsLibrary and GetLibraryPath, replaced by FindLibrary in ../Path.cpp \ * Implement GetSystemLibraryPaths and GetBytecodeLibraryPaths, instead of the \ GetSystemLibraryPath1 and GetSystemLibraryPath2 methods llvm-svn: 18862
* For PR351: \Reid Spencer2004-12-131-0/+31
| | | | | | | | * Move generic isArchive method here from Unix/Path.cpp \ * Implement isDynamicLibrary \ * Implement FindLibrary for Linker llvm-svn: 18861
* This file contains basic Linker facilities needed by all toolsReid Spencer2004-12-131-0/+166
| | | | llvm-svn: 18860
* Make LinkModules a static member functionReid Spencer2004-12-131-1/+2
| | | | llvm-svn: 18859
* This file contains only the Linker's library linking supportReid Spencer2004-12-131-0/+70
| | | | llvm-svn: 18858
* For PR351: \Reid Spencer2004-12-131-122/+12
| | | | | | | | * Remove redundant static function LinkOneLibrary. \ * Remove unneded #includes \ * Convert FileSupport usage to sys::Path instead llvm-svn: 18857
* This file contains only the Linker's file linking supportReid Spencer2004-12-131-0/+89
| | | | llvm-svn: 18856
* For PR351: \Reid Spencer2004-12-131-284/+32
| | | | | | | | | * Convert functions to Linker:: methods. \ * Remove unneeded #includes \ * Utilize sys::Path utilities not FileSupport utilities \ * Move File & Library linking functions to other source files llvm-svn: 18855
* For PR351: \Reid Spencer2004-12-132-49/+17
| | | | | | | * Get file information from a MappedFile instance \ * Convert file type tests to sys::Path form llvm-svn: 18854
* Implement error handling in OpenAndLoad* functions so the Linker can handle it.Reid Spencer2004-12-131-13/+22
| | | | llvm-svn: 18853
* Make the size() method constReid Spencer2004-12-131-1/+1
| | | | llvm-svn: 18852
* For PR351:Remove the file type checking methods (now in sys::Path)Reid Spencer2004-12-131-54/+0
| | | | llvm-svn: 18846
* Add V8 SPEC status.Brian Gaeke2004-12-131-0/+10
| | | | llvm-svn: 18844
* Change indentation of a whole bunch of code, no real changes here.Chris Lattner2004-12-121-105/+105
| | | | llvm-svn: 18843
* More substantial simplifications and speedups. This makes ADCE about 20% fasterChris Lattner2004-12-121-97/+43
| | | | | | in some cases. llvm-svn: 18842
* More minor microoptimizationsChris Lattner2004-12-121-6/+4
| | | | llvm-svn: 18841
* Remove some more set operationsChris Lattner2004-12-121-6/+2
| | | | llvm-svn: 18840
* Reduce number of set operations.Chris Lattner2004-12-121-2/+1
| | | | llvm-svn: 18839
* Optimize div/rem + select combinations more.Chris Lattner2004-12-121-24/+89
| | | | | | In particular, implement div.ll:test10 and rem.ll:test4. llvm-svn: 18838
* Fix Regression/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll, and all programsChris Lattner2004-12-121-0/+1
| | | | | | when compiled with debug information. llvm-svn: 18835
* CSE calls to getTypeSize.Chris Lattner2004-12-121-3/+2
| | | | llvm-svn: 18833
* Properly implement copying of a global, fixing the 255.vortex & povrayChris Lattner2004-12-121-2/+25
| | | | | | failures from last night. llvm-svn: 18832
* Simplify code and do not invalidate iterators.Chris Lattner2004-12-121-46/+9
| | | | | | | This fixes a crash compiling TimberWolfMC that was exposed due to recent optimizer changes. llvm-svn: 18831
* Use the target triple to pick this target.Chris Lattner2004-12-124-3/+23
| | | | llvm-svn: 18830
* Complete the list of MultiSource failures.Brian Gaeke2004-12-121-5/+12
| | | | llvm-svn: 18826
* hbd should be working now.Brian Gaeke2004-12-121-1/+0
| | | | llvm-svn: 18824
* Finally enable the setcc-branch folding code.Brian Gaeke2004-12-121-17/+73
| | | | | | | Also, fix a bug where ubyte 255 would sometimes be output as -1. This was afflicting hbd. llvm-svn: 18823
* Add (currently disabled) code for canFoldSetCCBrian Gaeke2004-12-121-0/+10
| | | | llvm-svn: 18820
* Though the previous xform applies to literally dozens (hundreds?) of variablesChris Lattner2004-12-121-1/+2
| | | | | | | | | | | | | | | | | | | | in SPEC, the subsequent optimziations that we are after don't play with with FP values, so disable this xform for them. Really we just don't want stuff like: double G; (always 0 or 412312.312) = G; turning into: bool G_b; = G_b ? 412312.312 : 0; We'd rather just do the load. -Chris llvm-svn: 18819
* Add stubs for setcc-branch folding support.Brian Gaeke2004-12-121-0/+11
| | | | llvm-svn: 18818
* If a variable can only hold two values, and is not already a bool, shrink itChris Lattner2004-12-121-22/+78
| | | | | | | | | | down to actually BE a bool. This allows simple value range propagation stuff work harder, deleting comparisons in bzip2 in some hot loops. This implements GlobalOpt/integer-bool.ll, which is the essence of the loop condition distilled into a testcase. llvm-svn: 18817
* If one side of and/or is known to be 0/-1, it doesn't matterChris Lattner2004-12-111-0/+37
| | | | | | | | if the other side is overdefined. This allows us to fold conditions like: if (X < Y || Y > Z) in some cases. llvm-svn: 18807
* Print llvm code one function at a time.Brian Gaeke2004-12-111-1/+1
| | | | llvm-svn: 18805
OpenPOWER on IntegriCloud