summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support
Commit message (Collapse)AuthorAgeFilesLines
...
* Support/PathV2: Add replace_extension implementation.Michael J. Spencer2010-12-011-0/+4
| | | | llvm-svn: 120514
* Support/PathV2: Add remove_filename implementation.Michael J. Spencer2010-12-011-0/+4
| | | | llvm-svn: 120513
* Support/PathV2: Implement reverse iteration and parent_path.Michael J. Spencer2010-11-301-0/+12
| | | | llvm-svn: 120496
* Support/PathV2: Fix 80 col.Michael J. Spencer2010-11-291-4/+8
| | | | llvm-svn: 120349
* unittests: Merge SystemTests back into SupportTests.Michael J. Spencer2010-11-292-0/+114
| | | | llvm-svn: 120330
* Merge System into Support.Michael J. Spencer2010-11-292-2/+2
| | | | llvm-svn: 120298
* unittests: Add SystemTests.Michael J. Spencer2010-11-241-16/+0
| | | | llvm-svn: 120101
* reimplement SwapByteOrder.h in terms of overloading instead of Chris Lattner2010-11-231-8/+8
| | | | | | being in terms of excessively complex template logic. llvm-svn: 119992
* Support: Add Endian.hMichael J. Spencer2010-10-211-0/+72
| | | | llvm-svn: 117057
* Unit Tests: Missed this error. MSVC and clang didn't complain.Michael J. Spencer2010-10-111-4/+4
| | | | llvm-svn: 116252
* System: Add SwapByteOrder and update Support/MathExtras.h to use it.Michael J. Spencer2010-10-111-0/+128
| | | | | | This time correctly. llvm-svn: 116247
* Revert "System: Add SwapByteOrder and update Support/MathExtras.h to use it."Michael J. Spencer2010-10-111-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. Spencer2010-10-111-0/+128
| | | | llvm-svn: 116234
* static_cast to long, otherwise MSVC 2008 won't compile.Francois Pichet2010-10-041-1/+1
| | | | llvm-svn: 115503
* Make ConstantRange::makeICmpRegion handle all the edge cases properly. ThisNick Lewycky2010-09-281-0/+8
| | | | | | also fixes PR8250. llvm-svn: 114972
* unittests: Support Windows.Michael J. Spencer2010-09-241-1/+1
| | | | llvm-svn: 114727
* Add a new isSignWrappedSet() method to ConstantRange.Nick Lewycky2010-09-061-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 Lattner2010-09-011-1/+0
| | | | llvm-svn: 112708
* Clean up ConstantRange a bit:Nick Lewycky2010-08-111-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 Anderson2010-08-071-0/+3
| | | | llvm-svn: 110504
* add dyn_cast_or_null tests, exclude invalid dyn_cast testGabor Greif2010-07-221-8/+25
| | | | llvm-svn: 109111
* tidy upGabor Greif2010-07-221-13/+9
| | | | llvm-svn: 109110
* add dyn_cast tests and beef up others a bitGabor Greif2010-07-221-5/+34
| | | | llvm-svn: 109109
* tidy upGabor Greif2010-07-201-5/+3
| | | | llvm-svn: 108889
* migrate essentially everything from under #ifdef DEBUG_CAST_OPERATORS into ↵Gabor Greif2010-07-201-7/+55
| | | | | | this file llvm-svn: 108864
* extend to cast<> and cast_or_null<> testsGabor Greif2010-07-201-3/+31
| | | | llvm-svn: 108854
* isa<> testsGabor Greif2010-07-201-1/+7
| | | | llvm-svn: 108851
* initial checkin for unittest to exercise Support/Casting.hGabor Greif2010-07-201-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 Yasskin2010-03-171-0/+2
| | | | llvm-svn: 98701
* Spelling fixes.Dan Gohman2010-03-011-1/+1
| | | | llvm-svn: 97454
* Add Regex::sub, for doing regular expression substitution with backreferences.Daniel Dunbar2010-02-171-0/+29
| | | | llvm-svn: 96503
* Add support for TypeBuilder<const/volatile void*, false>.Jeffrey Yasskin2010-02-091-1/+8
| | | | | | Thanks to Jochen Wilhelmy for the suggestion! llvm-svn: 95677
* Fix TimeValue::now() on Unix.Torok Edwin2010-01-221-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 whenRafael Espindola2009-12-181-0/+29
| | | | | | debugging some leaks (PR5770 in particular). llvm-svn: 91713
* Type.h doesn't need to #include LLVMContext.hChris Lattner2009-10-271-0/+1
| | | | llvm-svn: 85254
* Add raw_ostream::write_escaped, for writing escaped strings.Daniel Dunbar2009-10-171-0/+16
| | | | llvm-svn: 84355
* Fix http://llvm.org/PR5160, to let CallbackVHs modify other ValueHandles on theJeffrey Yasskin2009-10-121-0/+81
| | | | | | same Value without breaking things. llvm-svn: 83861
* Introduce and use convenience methods for getting pointer typesDuncan Sands2009-10-061-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 optimizationChris Lattner2009-09-261-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 haveJeffrey Yasskin2009-09-251-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 Lattner2009-09-241-0/+1
| | | | | | | | ; CHECK: movl {{%e[a-z][xi]}}, %eax or whatever. llvm-svn: 82717
* Roll back r82348, which introduced an infinite loop in ParseCStringVector() thatJeffrey Yasskin2009-09-241-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 Dunbar2009-09-151-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 Yasskin2009-09-091-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 Dunbar2009-09-061-1/+0
| | | | llvm-svn: 81102
* Now that googletest can print ConstantRange, use EXPECT_EQ when testing forNick Lewycky2009-09-051-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 Yasskin2009-09-051-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 Edwin2009-08-301-0/+64
| | | | | | implementation. llvm-svn: 80493
* split raw_os_ostream out to its own header and implementation file. ThisChris Lattner2009-08-241-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 Dunbar2009-08-241-0/+7
| | | | llvm-svn: 79879
OpenPOWER on IntegriCloud