summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Atomic.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix llvm-for-windows-on-linux build after LLVM r272701.Nico Weber2017-08-031-2/+2
| | | | | | | | | | | | The file is called "intrin.h". When building targeting Windows on a Linux system, with the SDK mounted in a case-insensitive file system, "Intrin.h" will miss clang's intrin.h header (because that's not in a case-insensitive file system) but then find intrin.h in the Microsoft SDK. clang can't handle the SDK's intrin.h. https://reviews.llvm.org/D36281 llvm-svn: 309980
* Fix another ordering constraint with windows.h and comment aboutChandler Carruth2017-06-061-0/+2
| | | | | | a revers constraint that we got right (by chance). llvm-svn: 304792
* Remove all of the legacy home-grown atomic operations LLVM providedChandler Carruth2016-06-021-59/+0
| | | | | | | | | | | | | | | | | | | | | | | except for CompareAndSwap. That is the only one still being used anywhere now that statistics have been moved onto std::atomic. Also, add a warning to the header that we shouldn't introduce more uses of these old style atomics and instead should be using C++11's std::atomic facilities. Really hoping that we can hammer out the last couple of users here and replace them with something more localized and/or principled, but figured this was a pretty good start. =] Note that this patch will need to be reverted if r271504 needs to be reverted as that removes the last user of these. However, the biggest risk for that patch was MSVC 2013 and at least one bot has already passed where it would have failed there. I've tested MSVC 2015 using their web interfaces and other platforms seem fine, so I'm optimistic. Differential Revision: http://reviews.llvm.org/D20901 llvm-svn: 271540
* Fix .cpp files claiming to be header filesHans Wennborg2014-06-201-1/+1
| | | | llvm-svn: 211334
* Include intrin.h before windows.h as a workaround for the x64 self-hostReid Kleckner2014-05-061-0/+1
| | | | | | | | | On x64, windows.h doesn't include intrin.h for intrinsics. It just declares them in the global namespace and uses them, expecting the compiler to lower it as a builtin. We basically need to do this in clang, eventually. llvm-svn: 208023
* XLC supports the same atomic functions as GCC, use them.Rafael Espindola2012-11-021-5/+9
| | | | | | Patch by Kai. llvm-svn: 167309
* drop unneeded config.h includesDylan Noblesmith2011-12-221-1/+1
| | | | llvm-svn: 147197
* Rename LLVM_MULTITHREADED define and fix build without threads.Eric Christopher2011-09-191-5/+5
| | | | | | Patch by Arrowdodger. llvm-svn: 140064
* Merge System into Support.Michael J. Spencer2010-11-291-0/+112
llvm-svn: 120298
OpenPOWER on IntegriCloud