| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Add an argument to APInt's magic udiv calculation to specify the number of ↵ | Benjamin Kramer | 2011-03-17 | 1 | -0/+2 |
| | | | | | | | | | bits that are known zero in the divided number. This will come in handy soon. llvm-svn: 127828 | ||||
| * | Fixes warnings emitted by Visual Studio 2010 compiler. | Oscar Fuentes | 2011-03-01 | 1 | -1/+1 |
| | | | | | | | Patch by Erik Olofsson! llvm-svn: 126796 | ||||
| * | Simplify RecursivelyDeleteDeadPHINode. The only functionality change | Duncan Sands | 2011-02-21 | 1 | -0/+6 |
| | | | | | | | | | should be that if the phi is used by a side-effect free instruction with no uses then the phi and the instruction now get zapped (checked by the unittest). llvm-svn: 126124 | ||||
| * | The signed version of our "magic number" computation for the integer ↵ | Cameron Zwarich | 2011-02-21 | 1 | -0/+18 |
| | | | | | | | | | | | | | | approximation of a constant had a minor typo introduced when copying it from the book, which caused it to favor negative approximations over positive approximations in many cases. Positive approximations require fewer operations beyond the multiplication. In the case of division by 3, we still generate code that is a single instruction larger than GCC's code. llvm-svn: 126097 | ||||
| * | Put targets on folders, if the IDE supports the feature. | Oscar Fuentes | 2011-02-20 | 1 | -0/+2 |
| | | | | | | | Requires CMake 2.8.3 or newer. llvm-svn: 126092 | ||||
| * | Make RecursivelyDeleteDeadPHINode delete a phi node that has no users and add a | Nick Lewycky | 2011-02-20 | 1 | -0/+5 |
| | | | | | | | | | | test for that. With this change, test/CodeGen/X86/codegen-dce.ll no longer finds any instructions to DCE, so delete the test. Also renamed J and JP to I and IP in RecursivelyDeleteDeadPHINode. llvm-svn: 126088 | ||||
| * | Teach RecursivelyDeleteDeadPHINodes to handle multiple self-references. Patch | Nick Lewycky | 2011-02-20 | 1 | -0/+49 |
| | | | | | | | by Andrew Clinton! llvm-svn: 126077 | ||||
| * | Adds llvm::sys::path::is_separator() to test whether a char is a path separator | Zhanyong Wan | 2011-02-11 | 1 | -0/+13 |
| | | | | | | | on the host OS. Reviewed by dgregor. llvm-svn: 125406 | ||||
| * | build: Add MAKEFILE_UNITTEST_NO_INCLUDE_COMMON build variable, to be leveraged | Daniel Dunbar | 2011-02-04 | 1 | -0/+2 |
| | | | | | | | by Clang. llvm-svn: 124871 | ||||
| * | Part of this test is invariant inside the inner loop - move it outside | Duncan Sands | 2011-02-03 | 1 | -14/+16 |
| | | | | | | | the loop. llvm-svn: 124784 | ||||
| * | Remove NoVendor and NoOS, added in commit 123990, from Triple. While it | Duncan Sands | 2011-02-02 | 1 | -45/+49 |
| | | | | | | | | | | may be useful to understand "none", this is not the place for it. Tweak the fix to Normalize while there: the fix added in 123990 works correctly, but I like this way better. Finally, now that Triple understands some non-trivial environment values, teach the unittests about them. llvm-svn: 124720 | ||||
| * | Don't infinitely recurse! Patch by Marius Wachtler! | Chris Lattner | 2011-01-27 | 1 | -1/+1 |
| | | | | | llvm-svn: 124366 | ||||
| * | Clang was not parsing target triples involving EABI and was generating wrong ↵ | Renato Golin | 2011-01-21 | 1 | -3/+11 |
| | | | | | | | IR (wrong PCS) and passing the wrong information down llc via the target-triple printed in IR. I've fixed this by adding the parsing of EABI into LLVM's Triple class and using it to choose the correct PCS in Clang's Tools. A Clang patch is on its way to use this infrastructure. llvm-svn: 123990 | ||||
| * | Unittests/Support/Path: Tweak test. | Michael J. Spencer | 2011-01-15 | 1 | -1/+1 |
| | | | | | llvm-svn: 123546 | ||||
| * | Allow unnamed_addr on declarations. | Rafael Espindola | 2011-01-15 | 1 | -27/+0 |
| | | | | | llvm-svn: 123529 | ||||
| * | Disable RTTI when building unit tests. This avoids errors at link time. | Oscar Fuentes | 2011-01-13 | 1 | -0/+6 |
| | | | | | llvm-svn: 123377 | ||||
| * | Reject uses of unnamed_addr in declarations. | Rafael Espindola | 2011-01-13 | 1 | -0/+26 |
| | | | | | llvm-svn: 123358 | ||||
| * | First step in fixing PR8927: | Rafael Espindola | 2011-01-08 | 1 | -0/+20 |
| | | | | | | | | | | | | | | | | | | | | Add a unnamed_addr bit to global variables and functions. This will be used to indicate that the address is not significant and therefore the constant or function can be merged with others. If an optimization pass can show that an address is not used, it can set this. Examples of things that can have this set by the FE are globals created to hold string literals and C++ constructors. Adding unnamed_addr to a non-const global should have no effect unless an optimization can transform that global into a constant. Aliases are not allowed to have unnamed_addr since I couldn't figure out any use for it. llvm-svn: 123063 | ||||
| * | Remove the "ugly" method BranchInst::setUnconditionalDest(). | Jay Foad | 2011-01-07 | 1 | -17/+0 |
| | | | | | llvm-svn: 123026 | ||||
| * | UnitTests/Path: Add magical tests. This will also test identify_magic. | Michael J. Spencer | 2011-01-06 | 1 | -0/+23 |
| | | | | | llvm-svn: 122948 | ||||
| * | UnitTests/Path: More ASSERT_NO_ERROR cleanup. | Michael J. Spencer | 2011-01-06 | 1 | -12/+11 |
| | | | | | llvm-svn: 122947 | ||||
| * | UnitTests/Path: Fix typo, add error number, and enable the directory cleanup ↵ | Michael J. Spencer | 2011-01-05 | 1 | -7/+12 |
| | | | | | | | code. llvm-svn: 122885 | ||||
| * | UnitTests/PathV2: Setup a test fixture to make tracking created file system | Michael J. Spencer | 2011-01-05 | 1 | -0/+24 |
| | | | | | | | entities easier. llvm-svn: 122880 | ||||
| * | Support/PathV2: Implement directory iteration on POSIX. | Michael J. Spencer | 2011-01-05 | 1 | -3/+0 |
| | | | | | llvm-svn: 122879 | ||||
| * | UnitTests/Path: Produce useful diagnostics on error. | Michael J. Spencer | 2011-01-04 | 1 | -17/+25 |
| | | | | | llvm-svn: 122812 | ||||
| * | fix PR8867: a crash handling fp128. Thanks to Nick for the testcase. | Chris Lattner | 2010-12-29 | 1 | -0/+9 |
| | | | | | llvm-svn: 122613 | ||||
| * | Change all self assignments X=X to (void)X, so that we can turn on a | Jeffrey Yasskin | 2010-12-23 | 1 | -2/+2 |
| | | | | | | | | new gcc warning that complains on self-assignments and self-initializations. llvm-svn: 122458 | ||||
| * | Add ADT/IntEqClasses.h as a light-weight implementation of EquivalenceClasses.h. | Jakob Stoklund Olesen | 2010-12-21 | 2 | -0/+108 |
| | | | | | | | | | | | This implementation already exists as ConnectedVNInfoEqClasses in LiveInterval.cpp, and it seems to be generally useful to have a light-weight way of forming equivalence classes of small integers. IntEqClasses doesn't allow enumeration of the elements in a class. llvm-svn: 122293 | ||||
| * | Add more checks to IntervalMapOverlaps::advance() to ensure that advanceTo sees | Jakob Stoklund Olesen | 2010-12-17 | 1 | -0/+25 |
| | | | | | | | monotonic keys. llvm-svn: 122093 | ||||
| * | It is allowed to call IntervalMap::const_iterator::advanceTo() with a key that | Jakob Stoklund Olesen | 2010-12-17 | 1 | -0/+14 |
| | | | | | | | | | moves the iterator to end(), and it is valid to call it on end(). That means it is valid to call advanceTo() with any monotonic key sequence. llvm-svn: 122092 | ||||
| * | Fix crash when IntervalMapOverlaps::advanceTo moves past the last overlap. | Jakob Stoklund Olesen | 2010-12-17 | 1 | -1/+5 |
| | | | | | llvm-svn: 122081 | ||||
| * | Complete tests for IntervalMapOverlaps. | Jakob Stoklund Olesen | 2010-12-17 | 1 | -1/+106 |
| | | | | | llvm-svn: 122019 | ||||
| * | Add basic test exposing many bugs. | Jakob Stoklund Olesen | 2010-12-16 | 1 | -0/+15 |
| | | | | | llvm-svn: 121995 | ||||
| * | Support/PathV2: Change most functions in the path namespace to return their work | Michael J. Spencer | 2010-12-07 | 1 | -20/+18 |
| | | | | | | | via their return value instead of an out parameter. llvm-svn: 121149 | ||||
| * | CMake: Fix warning in gtest header used by unit tests. | Frits van Bommel | 2010-12-07 | 1 | -0/+4 |
| | | | | | llvm-svn: 121127 | ||||
| * | PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() and | Jay Foad | 2010-12-07 | 1 | -10/+10 |
| | | | | | | | | | zextOrTrunc(), and APSInt methods extend(), extOrTrunc() and new method trunc(), to be const and to return a new value instead of modifying the object in place. llvm-svn: 121120 | ||||
| * | unittests/CMakeLists.txt: Tweak unittests' layout to be identical to GNU build. | NAKAMURA Takumi | 2010-12-07 | 1 | -5/+6 |
| | | | | | llvm-svn: 121117 | ||||
| * | Support/PathV2: Remove the error_code return type from all functions in the path | Michael J. Spencer | 2010-12-07 | 1 | -21/+21 |
| | | | | | | | | namespace. None of them return anything except for success anyway. These will be converted to returning their result soon. llvm-svn: 121109 | ||||
| * | Support/PathV2: Move make_absolute from path to fs. | Michael J. Spencer | 2010-12-07 | 1 | -1/+1 |
| | | | | | llvm-svn: 121108 | ||||
| * | Support/FileSystem: Add directory_iterator implementation. | Michael J. Spencer | 2010-12-06 | 1 | -0/+13 |
| | | | | | llvm-svn: 120989 | ||||
| * | Unittests/Support/PathV2: Add FileSystem tests. | Michael J. Spencer | 2010-12-04 | 1 | -0/+35 |
| | | | | | llvm-svn: 120888 | ||||
| * | Add IntervalMap::iterator::set{Start,Stop,Value} methods that allow limited | Jakob Stoklund Olesen | 2010-12-03 | 1 | -7/+119 |
| | | | | | | | | | | | | editing of the current interval. These methods may cause coalescing, there are corresponding set*Unchecked methods for editing without coalescing. The non-coalescing methods are useful for applying monotonic transforms to all keys or values in a map without accidentally coalescing transformed and untransformed intervals. llvm-svn: 120829 | ||||
| * | Support/FileSystem: Add remove implementation. | Michael J. Spencer | 2010-12-03 | 1 | -1/+2 |
| | | | | | llvm-svn: 120817 | ||||
| * | unittests/Support/PathV2: remove(3) requires a terminated string. | Benjamin Kramer | 2010-12-03 | 1 | -3/+2 |
| | | | | | llvm-svn: 120803 | ||||
| * | Unittests/Support/PathV2: Cleanup and remove output. | Michael J. Spencer | 2010-12-03 | 1 | -44/+27 |
| | | | | | llvm-svn: 120785 | ||||
| * | unittests/Support/PathV2: Comment out test because some systems are saying that | Michael J. Spencer | 2010-12-03 | 1 | -1/+2 |
| | | | | | | | a file exists when it shouldn't. llvm-svn: 120784 | ||||
| * | Support/FileSystem: Add unique_file and exists implementations. | Michael J. Spencer | 2010-12-03 | 1 | -0/+18 |
| | | | | | llvm-svn: 120776 | ||||
| * | Make valgrind happy. | Michael J. Spencer | 2010-12-01 | 1 | -0/+2 |
| | | | | | llvm-svn: 120616 | ||||
| * | Support/ADT/Twine: Add toNullTerminatedStringRef. | Michael J. Spencer | 2010-12-01 | 1 | -0/+8 |
| | | | | | llvm-svn: 120600 | ||||
| * | unittests/Support/PathV2: Fix -pedantic warning. | Michael J. Spencer | 2010-12-01 | 1 | -2/+2 |
| | | | | | llvm-svn: 120590 | ||||

