aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/IR/ValueMapTest.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-04-14Remove every uses of getGlobalContext() in LLVM (but the C API)Mehdi Amini1-5/+5
At the same time, fixes InstructionsTest::CastInst unittest: yes you can leave the IR in an invalid state and exit when you don't destroy the context (like the global one), no longer now. This is the first part of http://reviews.llvm.org/D19094 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266379
2016-04-02Document end of anonymous namespaces, NFCDuncan P. N. Exon Smith1-1/+1
Prevent clang-format from deleting the preceding newline. llvm-svn: 265227
2015-04-06[lit] Fix running gtest type-parameterized tests on WindowsReid Kleckner1-1/+2
The '/' character in the test name of a type-parameterized test is not a path separator, and should not be '\' on Windows. We were passing a test name to --gtest_filter which found no tests, so the exit code was zero, indicating a passed test. This bug has been here since r84387 in 2009, when Jeff Yasskin added the original lit support for type-paratermized tests. Somewhere along the line some of the ValueMapTests started failing, but we can fix those separately. llvm-svn: 234242
2014-08-23Support: make LLVM Mutexes STL-compatibleDylan Noblesmith1-2/+2
Use lock/unlock() convention instead of acquire/release(). llvm-svn: 216336
2014-06-20Revert "Replace Execution Engine's mutex with std::recursive_mutex."Zachary Turner1-4/+4
This reverts commit 1f502bd9d7d2c1f98ad93a09ffe435e11a95aedd, due to GCC / MinGW's lack of support for C++11 threading. It's possible this will go back in after we come up with a reasonable solution. llvm-svn: 211401
2014-06-20Fix some -Wsign-compare fallout from changing container count member ↵David Blaikie1-10/+10
functions to return unsigned instead of bool. llvm-svn: 211393
2014-06-18Replace Execution Engine's mutex with std::recursive_mutex.Zachary Turner1-4/+4
This change has a bit of a trickle down effect due to the fact that there are a number of derived implementations of ExecutionEngine, and that the mutex is not tightly encapsulated so is used by other classes directly. Reviewed by: rnk Differential Revision: http://reviews.llvm.org/D4196 llvm-svn: 211214
2014-06-17Fix build breakage caused by change to ValueMapTest.Zachary Turner1-2/+2
llvm-svn: 211083
2014-06-17Expose ValueMap's mutex type as a typedef instead of a sys::Mutex.Zachary Turner1-7/+7
This enables static polymorphism of the mutex type, which is necessary in order to replace the standard mutex implementation with a different type. llvm-svn: 211080
2014-06-08[C++11] Use 'nullptr'.Craig Topper1-2/+2
llvm-svn: 210442
2014-03-07[C++11] Now that the users are gone, rip out the duplicated traits from ↵Benjamin Kramer1-1/+2
type_traits.h Simplify the remaining ones a bit. llvm-svn: 203249
2014-03-06Replace OwningPtr<T> with std::unique_ptr<T>.Ahmed Charles1-3/+2
This compiles with no changes to clang/lld/lldb with MSVC and includes overloads to various functions which are used by those projects and llvm which have OwningPtr's as parameters. This should allow out of tree projects some time to move. There are also no changes to libs/Target, which should help out of tree targets have time to move, if necessary. llvm-svn: 203083
2014-03-04[Modules] Move ValueMap to the IR library. While this class does notChandler Carruth1-1/+1
directly care about the Value class (it is templated so that the key can be any arbitrary Value subclass), it is in fact concretely tied to the Value class through the ValueHandle's CallbackVH interface which relies on the key type being some Value subclass to establish the value handle chain. Ironically, the unittest is already in the right library. llvm-svn: 202824
2014-03-02[C++11] Replace LLVM_STATIC_ASSERT with static_assert, we now haveChandler Carruth1-2/+1
access to it on all host toolchains. llvm-svn: 202642
2014-01-02Use LLVM_STATIC_ASSERT rather than a hand-rolled implementation.David Blaikie1-2/+2
llvm-svn: 198330
2014-01-01Rename 'assert' to something less loaded in CompileAssertHasTypeAlp Toker1-1/+1
Suggested by Aaron Ballman. llvm-svn: 198288
2014-01-01Silence g++ 4.9 build issue in unit testsAlp Toker1-1/+2
Stopgap measure until we can just use static_assert(). llvm-svn: 198273
2013-01-07Rename the VMCore unittest tree to IR. Somehow was missed when doing theChandler Carruth1-0/+294
library rename. llvm-svn: 171747