summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/ValueMapTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace non-recursive sys::Mutex users with std::mutexBenjamin Kramer2019-08-071-2/+2
| | | | | | | Also remove a use of sys::MutexImpl, that's just evil. No functionality change intended. llvm-svn: 368157
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* s/LLVM_ON_WIN32/_WIN32/, llvmNico Weber2018-04-291-1/+1
| | | | | | | | | | | | | | LLVM_ON_WIN32 is set exactly with MSVC and MinGW (but not Cygwin) in HandleLLVMOptions.cmake, which is where _WIN32 defined too. Just use the default macro instead of a reinvented one. See thread "Replacing LLVM_ON_WIN32 with just _WIN32" on llvm-dev and cfe-dev. No intended behavior change. This moves over all uses of the macro, but doesn't remove the definition of it in (llvm-)config.h yet. llvm-svn: 331127
* Remove every uses of getGlobalContext() in LLVM (but the C API)Mehdi Amini2016-04-141-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
* Document end of anonymous namespaces, NFCDuncan P. N. Exon Smith2016-04-021-1/+1
| | | | | | Prevent clang-format from deleting the preceding newline. llvm-svn: 265227
* [lit] Fix running gtest type-parameterized tests on WindowsReid Kleckner2015-04-061-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
* Support: make LLVM Mutexes STL-compatibleDylan Noblesmith2014-08-231-2/+2
| | | | | | Use lock/unlock() convention instead of acquire/release(). llvm-svn: 216336
* Revert "Replace Execution Engine's mutex with std::recursive_mutex."Zachary Turner2014-06-201-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
* Fix some -Wsign-compare fallout from changing container count member ↵David Blaikie2014-06-201-10/+10
| | | | | | functions to return unsigned instead of bool. llvm-svn: 211393
* Replace Execution Engine's mutex with std::recursive_mutex.Zachary Turner2014-06-181-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
* Fix build breakage caused by change to ValueMapTest.Zachary Turner2014-06-171-2/+2
| | | | llvm-svn: 211083
* Expose ValueMap's mutex type as a typedef instead of a sys::Mutex.Zachary Turner2014-06-171-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
* [C++11] Use 'nullptr'.Craig Topper2014-06-081-2/+2
| | | | llvm-svn: 210442
* [C++11] Now that the users are gone, rip out the duplicated traits from ↵Benjamin Kramer2014-03-071-1/+2
| | | | | | | | type_traits.h Simplify the remaining ones a bit. llvm-svn: 203249
* Replace OwningPtr<T> with std::unique_ptr<T>.Ahmed Charles2014-03-061-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
* [Modules] Move ValueMap to the IR library. While this class does notChandler Carruth2014-03-041-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
* [C++11] Replace LLVM_STATIC_ASSERT with static_assert, we now haveChandler Carruth2014-03-021-2/+1
| | | | | | access to it on all host toolchains. llvm-svn: 202642
* Use LLVM_STATIC_ASSERT rather than a hand-rolled implementation.David Blaikie2014-01-021-2/+2
| | | | llvm-svn: 198330
* Rename 'assert' to something less loaded in CompileAssertHasTypeAlp Toker2014-01-011-1/+1
| | | | | | Suggested by Aaron Ballman. llvm-svn: 198288
* Silence g++ 4.9 build issue in unit testsAlp Toker2014-01-011-1/+2
| | | | | | Stopgap measure until we can just use static_assert(). llvm-svn: 198273
* Rename the VMCore unittest tree to IR. Somehow was missed when doing theChandler Carruth2013-01-071-0/+294
library rename. llvm-svn: 171747
OpenPOWER on IntegriCloud