Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Support/PathV2: Add replace_extension implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+4 | |
| | | | | llvm-svn: 120514 | |||||
* | Support/PathV2: Add remove_filename implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+4 | |
| | | | | llvm-svn: 120513 | |||||
* | Support/PathV2: Implement reverse iteration and parent_path. | Michael J. Spencer | 2010-11-30 | 1 | -0/+12 | |
| | | | | llvm-svn: 120496 | |||||
* | Support/PathV2: Fix 80 col. | Michael J. Spencer | 2010-11-29 | 1 | -4/+8 | |
| | | | | llvm-svn: 120349 | |||||
* | unittests: Merge SystemTests back into SupportTests. | Michael J. Spencer | 2010-11-29 | 2 | -0/+114 | |
| | | | | llvm-svn: 120330 | |||||
* | Merge System into Support. | Michael J. Spencer | 2010-11-29 | 2 | -2/+2 | |
| | | | | llvm-svn: 120298 | |||||
* | unittests: Add SystemTests. | Michael J. Spencer | 2010-11-24 | 1 | -16/+0 | |
| | | | | llvm-svn: 120101 | |||||
* | reimplement SwapByteOrder.h in terms of overloading instead of | Chris Lattner | 2010-11-23 | 1 | -8/+8 | |
| | | | | | | being in terms of excessively complex template logic. llvm-svn: 119992 | |||||
* | Support: Add Endian.h | Michael J. Spencer | 2010-10-21 | 1 | -0/+72 | |
| | | | | llvm-svn: 117057 | |||||
* | Unit Tests: Missed this error. MSVC and clang didn't complain. | Michael J. Spencer | 2010-10-11 | 1 | -4/+4 | |
| | | | | llvm-svn: 116252 | |||||
* | System: Add SwapByteOrder and update Support/MathExtras.h to use it. | Michael J. Spencer | 2010-10-11 | 1 | -0/+128 | |
| | | | | | | This time correctly. llvm-svn: 116247 | |||||
* | Revert "System: Add SwapByteOrder and update Support/MathExtras.h to use it." | Michael J. Spencer | 2010-10-11 | 1 | -128/+0 | |
| | | | | | | | | This reverts commit 116234. It compiled just fine with MSVC and clang... llvm-svn: 116242 | |||||
* | System: Add SwapByteOrder and update Support/MathExtras.h to use it. | Michael J. Spencer | 2010-10-11 | 1 | -0/+128 | |
| | | | | llvm-svn: 116234 | |||||
* | static_cast to long, otherwise MSVC 2008 won't compile. | Francois Pichet | 2010-10-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 115503 | |||||
* | Make ConstantRange::makeICmpRegion handle all the edge cases properly. This | Nick Lewycky | 2010-09-28 | 1 | -0/+8 | |
| | | | | | | also fixes PR8250. llvm-svn: 114972 | |||||
* | unittests: Support Windows. | Michael J. Spencer | 2010-09-24 | 1 | -1/+1 | |
| | | | | llvm-svn: 114727 | |||||
* | Add a new isSignWrappedSet() method to ConstantRange. | Nick Lewycky | 2010-09-06 | 1 | -4/+22 | |
| | | | | | | | | | Fix zeroExtend and signExtend to support empty sets, and to return the smallest possible result set which contains the extension of each element in their inputs. For example zext i8 [100, 10) to i16 is now [0, 256), not i16 [100, 10) which contains 63446 members. llvm-svn: 113187 | |||||
* | zap dead code. | Chris Lattner | 2010-09-01 | 1 | -1/+0 | |
| | | | | llvm-svn: 112708 | |||||
* | Clean up ConstantRange a bit: | Nick Lewycky | 2010-08-11 | 1 | -3/+63 | |
| | | | | | | | | | - remove ashr which never worked. - fix lshr and shl and add tests. - remove dead function "intersect1Wrapped". - add a new sub method to subtract ranges, with test. llvm-svn: 110861 | |||||
* | Add an inverse() method to ConstantRange. | Owen Anderson | 2010-08-07 | 1 | -0/+3 | |
| | | | | llvm-svn: 110504 | |||||
* | add dyn_cast_or_null tests, exclude invalid dyn_cast test | Gabor Greif | 2010-07-22 | 1 | -8/+25 | |
| | | | | llvm-svn: 109111 | |||||
* | tidy up | Gabor Greif | 2010-07-22 | 1 | -13/+9 | |
| | | | | llvm-svn: 109110 | |||||
* | add dyn_cast tests and beef up others a bit | Gabor Greif | 2010-07-22 | 1 | -5/+34 | |
| | | | | llvm-svn: 109109 | |||||
* | tidy up | Gabor Greif | 2010-07-20 | 1 | -5/+3 | |
| | | | | llvm-svn: 108889 | |||||
* | migrate essentially everything from under #ifdef DEBUG_CAST_OPERATORS into ↵ | Gabor Greif | 2010-07-20 | 1 | -7/+55 | |
| | | | | | | this file llvm-svn: 108864 | |||||
* | extend to cast<> and cast_or_null<> tests | Gabor Greif | 2010-07-20 | 1 | -3/+31 | |
| | | | | llvm-svn: 108854 | |||||
* | isa<> tests | Gabor Greif | 2010-07-20 | 1 | -1/+7 | |
| | | | | llvm-svn: 108851 | |||||
* | initial checkin for unittest to exercise Support/Casting.h | Gabor Greif | 2010-07-20 | 1 | -0/+32 | |
| | | | | | | | this is still minimal on purpose, but I plan to migrate the ugly hack under #ifdef DEBUG_CAST_OPERATORS into this file llvm-svn: 108849 | |||||
* | Fix death tests in -Asserts builds. | Jeffrey Yasskin | 2010-03-17 | 1 | -0/+2 | |
| | | | | llvm-svn: 98701 | |||||
* | Spelling fixes. | Dan Gohman | 2010-03-01 | 1 | -1/+1 | |
| | | | | llvm-svn: 97454 | |||||
* | Add Regex::sub, for doing regular expression substitution with backreferences. | Daniel Dunbar | 2010-02-17 | 1 | -0/+29 | |
| | | | | llvm-svn: 96503 | |||||
* | Add support for TypeBuilder<const/volatile void*, false>. | Jeffrey Yasskin | 2010-02-09 | 1 | -1/+8 | |
| | | | | | | Thanks to Jochen Wilhelmy for the suggestion! llvm-svn: 95677 | |||||
* | Fix TimeValue::now() on Unix. | Torok Edwin | 2010-01-22 | 1 | -0/+16 | |
| | | | | | | | | | TimeValue()::now().toEpochTime() is supposed to be the same as time(), but it wasn't, because toEpoch subtracted PosixZeroTime, but now() didn't add PosixZeroTime! Add a unittest to check this works. llvm-svn: 94178 | |||||
* | Catch more cases of a pointer being marked garbage twice. This helps when | Rafael Espindola | 2009-12-18 | 1 | -0/+29 | |
| | | | | | | debugging some leaks (PR5770 in particular). llvm-svn: 91713 | |||||
* | Type.h doesn't need to #include LLVMContext.h | Chris Lattner | 2009-10-27 | 1 | -0/+1 | |
| | | | | llvm-svn: 85254 | |||||
* | Add raw_ostream::write_escaped, for writing escaped strings. | Daniel Dunbar | 2009-10-17 | 1 | -0/+16 | |
| | | | | llvm-svn: 84355 | |||||
* | Fix http://llvm.org/PR5160, to let CallbackVHs modify other ValueHandles on the | Jeffrey Yasskin | 2009-10-12 | 1 | -0/+81 | |
| | | | | | | same Value without breaking things. llvm-svn: 83861 | |||||
* | Introduce and use convenience methods for getting pointer types | Duncan Sands | 2009-10-06 | 1 | -5/+5 | |
| | | | | | | | where the element is of a basic builtin type. For example, to get an i8* use getInt8PtrTy. llvm-svn: 83379 | |||||
* | remove support for "NoSub" from regex. It seems like a minor optimization | Chris Lattner | 2009-09-26 | 1 | -4/+4 | |
| | | | | | | and makes the API more annoying. Add a Regex::getNumMatches() method. llvm-svn: 82877 | |||||
* | Fix a compile failure introduced by r82675 on MinGW which doesn't have | Jeffrey Yasskin | 2009-09-25 | 1 | -0/+12 | |
| | | | | | | | setenv(). This patch just disables the test rather than getting putenv() to work. Thanks to Sandeep Patel for reporting the problem. llvm-svn: 82797 | |||||
* | add and document regex support for FileCheck. You can now do stuff like: | Chris Lattner | 2009-09-24 | 1 | -0/+1 | |
| | | | | | | | | ; CHECK: movl {{%e[a-z][xi]}}, %eax or whatever. llvm-svn: 82717 | |||||
* | Roll back r82348, which introduced an infinite loop in ParseCStringVector() that | Jeffrey Yasskin | 2009-09-24 | 1 | -0/+48 | |
| | | | | | | | a trivial unittest would have caught. This revision also adds the trivial unittest. llvm-svn: 82675 | |||||
* | Drop the raw_ostream required buffer size to 1. | Daniel Dunbar | 2009-09-15 | 1 | -0/+10 | |
| | | | | | | | - As best I can tell, we have eliminated all the code which used to require a larger buffer size. llvm-svn: 81912 | |||||
* | Make TypeBuilder's result depend on the LLVMContext it's passed. | Jeffrey Yasskin | 2009-09-09 | 1 | -0/+12 | |
| | | | | | | | | TypeBuilder was using a local static variable to cache its result. This made it ignore changes in its LLVMContext argument and always return a type constructed from the argument to the first call. llvm-svn: 81316 | |||||
* | Simplify, now that gtest supports raw_ostream directly. | Daniel Dunbar | 2009-09-06 | 1 | -1/+0 | |
| | | | | llvm-svn: 81102 | |||||
* | Now that googletest can print ConstantRange, use EXPECT_EQ when testing for | Nick Lewycky | 2009-09-05 | 1 | -149/+149 | |
| | | | | | | | equality. Prefer EXPECT_EQ(foo, Full) over EXPECT_TRUE(foo.isFullSet()) because the former will print out the contents of the constant range that failed. llvm-svn: 81094 | |||||
* | Teach googletest to use raw_ostream instead of just std::ostream. | Jeffrey Yasskin | 2009-09-05 | 1 | -7/+0 | |
| | | | | | | | | This can break when there are implicit conversions from types raw_ostream understands but std::ostream doesn't, but it increases the number of cases that Just Work. llvm-svn: 81093 | |||||
* | Add regular expression matching support, based on OpenBSD regexec()/regcomp() | Torok Edwin | 2009-08-30 | 1 | -0/+64 | |
| | | | | | | implementation. llvm-svn: 80493 | |||||
* | split raw_os_ostream out to its own header and implementation file. This | Chris Lattner | 2009-08-24 | 1 | -1/+1 | |
| | | | | | | | means that raw_ostream no longer has to #include <iosfwd>. Nothing in llvm should use raw_os_ostream.h, but llvm-gcc and some unit tests do. llvm-svn: 79886 | |||||
* | Unbreak unit tests. | Daniel Dunbar | 2009-08-24 | 1 | -0/+7 | |
| | | | | llvm-svn: 79879 |