Programming Languages Research Group: Git - oota-llvm.git/rss - unittests/Support/CMakeLists.txt history http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=history;f=unittests/Support/CMakeLists.txt C/C++ LLVM-based compilers that forbids OOTA behaviors en Peizhao Ou static/git-logo.png Programming Languages Research Group: Git - oota-llvm.git/rss - unittests/Support/CMakeLists.txt history http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=history;f=unittests/Support/CMakeLists.txt Tue, 22 Dec 2015 17:36:17 +0000 Tue, 22 Dec 2015 17:36:17 +0000 gitweb v.2.34.1/2.34.1 [Support] Allow multiple paired calls to {start,stop}Timer() Vedant Kumar <vsk@apple.com> Tue, 22 Dec 2015 17:36:17 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=3a7ab8845f4bcd67207e73fef57c8b17225c4685 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=3a7ab8845f4bcd67207e73fef57c8b17225c4685 [Support] Allow multiple paired calls to {start,stop}Timer() [Support] Allow multiple paired calls to {start,stop}Timer() Differential Revision: http://reviews.llvm.org/D15619 Reviewed-by: rafael git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256258 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Add a C++11 ThreadPool implementation in LLVM Mehdi Amini <mehdi.amini@apple.com> Tue, 15 Dec 2015 00:59:19 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=abb30d1a458e4b68274a6e56fe3d1e5575845d81 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=abb30d1a458e4b68274a6e56fe3d1e5575845d81 Add a C++11 ThreadPool implementation in LLVM Add a C++11 ThreadPool implementation in LLVM This is a very simple implementation of a thread pool using C++11 thread. It accepts any std::function<void()> for asynchronous execution. Individual task can be synchronize using the returned future, or the client can block on the full queue completion. In case LLVM is configured with Threading disabled, it falls back to sequential execution using std::async with launch:deferred. This is intended to support parallelism for ThinLTO processing in linker plugin, but is generic enough for any other uses. This is a recommit of r255444 ; trying to workaround a bug in the MSVC 2013 standard library. I think I was hit by: http://connect.microsoft.com/VisualStudio/feedbackdetail/view/791185/std-packaged-task-t-where-t-is-void-or-a-reference-class-are-not-movable Recommit of r255589, trying to please g++ as well. Differential Revision: http://reviews.llvm.org/D15464 From: mehdi_amini <mehdi_amini@91177308-0d34-0410-b5e6-96231b3b80d8> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255593 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Revert "Add a C++11 ThreadPool implementation in LLVM" Mehdi Amini <mehdi.amini@apple.com> Tue, 15 Dec 2015 00:42:44 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=8d176bbf50c7bc1a421bb857c1c935fe5353c317 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=8d176bbf50c7bc1a421bb857c1c935fe5353c317 Revert "Add a C++11 ThreadPool implementation in LLVM" Revert "Add a C++11 ThreadPool implementation in LLVM" This reverts commit r255589. Breaks g++ From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255591 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Add a C++11 ThreadPool implementation in LLVM Mehdi Amini <mehdi.amini@apple.com> Tue, 15 Dec 2015 00:38:05 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=04d774cd3866f88864c7146b7102bc5a0cb75f79 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=04d774cd3866f88864c7146b7102bc5a0cb75f79 Add a C++11 ThreadPool implementation in LLVM Add a C++11 ThreadPool implementation in LLVM This is a very simple implementation of a thread pool using C++11 thread. It accepts any std::function<void()> for asynchronous execution. Individual task can be synchronize using the returned future, or the client can block on the full queue completion. In case LLVM is configured with Threading disabled, it falls back to sequential execution using std::async with launch:deferred. This is intended to support parallelism for ThinLTO processing in linker plugin, but is generic enough for any other uses. This is a recommit of r255444 ; trying to workaround a bug in the MSVC 2013 standard library. I think I was hit by: http://connect.microsoft.com/VisualStudio/feedbackdetail/view/791185/std-packaged-task-t-where-t-is-void-or-a-reference-class-are-not-movable Differential Revision: http://reviews.llvm.org/D15464 From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255589 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Revert r255444. Nico Weber <nicolasweber@gmx.de> Sun, 13 Dec 2015 04:14:39 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=205d072f694fe0e9c9dc18a2da9c74bf5151ef57 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=205d072f694fe0e9c9dc18a2da9c74bf5151ef57 Revert r255444. Revert r255444. It doesn't build on Windows and broke the Windows LLD and LLDB bots: http://lab.llvm.org:8011/builders/lld-x86_64-win7/builds/27693/steps/build_Lld/logs/stdio http://lab.llvm.org:8011/builders/lldb-x86-windows-msvc/builds/13468/steps/build/logs/stdio git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255446 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Add a C++11 ThreadPool implementation in LLVM Mehdi Amini <mehdi.amini@apple.com> Sat, 12 Dec 2015 22:55:25 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=517dd66ae37425460a7743737c2d27fa66f47eb8 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=517dd66ae37425460a7743737c2d27fa66f47eb8 Add a C++11 ThreadPool implementation in LLVM Add a C++11 ThreadPool implementation in LLVM This is a very simple implementation of a thread pool using C++11 thread. It accepts any std::function<void()> for asynchronous execution. Individual task can be synchronize using the returned future, or the client can block on the full queue completion. In case LLVM is configured with Threading disabled, it falls back to sequential execution using std::async with launch:deferred. This is intended to support parallelism for ThinLTO processing in linker plugin, but is generic enough for any other uses. Differential Revision: http://reviews.llvm.org/D15464 From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255444 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Fix rename() sometimes failing if another process uses openFileForRead() Greg Bedwell <greg_bedwell@sn.scee.net> Mon, 12 Oct 2015 15:11:47 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=d02add1701a126f37332217bbe17356bfa2a9a0f http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=d02add1701a126f37332217bbe17356bfa2a9a0f Fix rename() sometimes failing if another process uses openFileForRead() Fix rename() sometimes failing if another process uses openFileForRead() On Windows, fs::rename() could fail is another process was reading the file at the same time using fs::openFileForRead(). In most cases the user wouldn't notice as fs::rename() will continue to retry for 2000ms. Typically this is enough for the read to complete and a retry to succeed, but if the disk is being it too hard then the response time might be longer than the retry time and the rename would fail with a permission error. Add FILE_SHARE_DELETE to the sharing flags for CreateFileW() in fs::openFileForRead() and try ReplaceFileW() prior to MoveFileExW() in fs::rename(). Based on an initial patch by Edd Dawson! Differential Revision: http://reviews.llvm.org/D13647 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250046 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Add a TrailingObjects template class. James Y Knight <jyknight@google.com> Wed, 5 Aug 2015 22:57:34 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=1cf6cc7b914999dee2ec6600ab9fadfd5f28c154 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=1cf6cc7b914999dee2ec6600ab9fadfd5f28c154 Add a TrailingObjects template class. Add a TrailingObjects template class. This is intended to help support the idiom of a class that has some other objects (or multiple arrays of different types of objects) appended on the end, which is used quite heavily in clang. Differential Revision: http://reviews.llvm.org/D11272 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244164 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Prevent further errors of omission when adding backend names. Douglas Katzman <dougk@google.com> Fri, 8 May 2015 15:34:12 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=d7e20e7be8d88a5ef134c9e5b37fec847f47c8ab http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=d7e20e7be8d88a5ef134c9e5b37fec847f47c8ab Prevent further errors of omission when adding backend names. Prevent further errors of omission when adding backend names. Differential Revision: http://reviews.llvm.org/D9441 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236865 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Add raw_pwrite_stream type. Rafael Espindola <rafael.espindola@gmail.com> Tue, 14 Apr 2015 15:00:34 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=661ed8583463860b215c71adb2f23602d1621df5 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=661ed8583463860b215c71adb2f23602d1621df5 Add raw_pwrite_stream type. Add raw_pwrite_stream type. This is a raw_ostream that also supports pwrite. I will be used in a sec. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234895 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Add support for double / float to EndianStream Matt Arsenault <Matthew.Arsenault@amd.com> Thu, 5 Feb 2015 03:30:08 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=7575430de47cb6a027e363eb5d7683c98226d932 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=7575430de47cb6a027e363eb5d7683c98226d932 Add support for double / float to EndianStream Add support for double / float to EndianStream Also add new unit tests for endian::Writer git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228269 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Support: Stop stringifying DW_TAG_{lo,hi}_user Duncan P. N. Exon Smith <dexonsmith@apple.com> Tue, 3 Feb 2015 21:08:33 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=17e8d42c63f46039fe602f4c885c558f83216a00 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=17e8d42c63f46039fe602f4c885c558f83216a00 Support: Stop stringifying DW_TAG_{lo,hi}_user Support: Stop stringifying DW_TAG_{lo,hi}_user `dwarf::TagString()` shouldn't stringify `DW_TAG_lo_user` or `DW_TAG_hi_user`. These aren't actual tags; they're markers for the edge of vendor-specific tag regions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228029 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Fix a silly bug in StreamingMemoryObject.cpp. Rafael Espindola <rafael.espindola@gmail.com> Fri, 21 Nov 2014 05:15:41 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=ed46a2c2aabed268d487e5130a6a3730e912b35d http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=ed46a2c2aabed268d487e5130a6a3730e912b35d Fix a silly bug in StreamingMemoryObject.cpp. Fix a silly bug in StreamingMemoryObject.cpp. The logic for detecting EOF was wrong and would fail if we ever requested more than 16k past the last read position. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222505 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
[CMake] LLVMSupport: Give system_libs PRIVATE scope when LLVMSupport is built as... NAKAMURA Takumi <geek4civic@gmail.com> Fri, 7 Nov 2014 16:08:19 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=93f761eced7f7f5b721ccabb3d0fc3001010008d http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=93f761eced7f7f5b721ccabb3d0fc3001010008d [CMake] LLVMSupport: Give system_libs PRIVATE scope when LLVMSupport is built as... [CMake] LLVMSupport: Give system_libs PRIVATE scope when LLVMSupport is built as SHARED. Users of LLVMSupport won't inherit ${system_libs}. unittests/SupporTests is another user of libpthreads. Apply LLVM_SYSTEM_LIBS for him explicitly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221531 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Decouple llvm::SpecialCaseList text representation and its LLVM IR semantics. Alexey Samsonov <vonosmas@gmail.com> Wed, 9 Jul 2014 19:40:08 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=3e51f754ad08cc453c5e7476bcc6e92743b68830 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=3e51f754ad08cc453c5e7476bcc6e92743b68830 Decouple llvm::SpecialCaseList text representation and its LLVM IR semantics. Decouple llvm::SpecialCaseList text representation and its LLVM IR semantics. Turn llvm::SpecialCaseList into a simple class that parses text files in a specified format and knows nothing about LLVM IR. Move this class into LLVMSupport library. Implement two users of this class: * DFSanABIList in DFSan instrumentation pass. * SanitizerBlacklist in Clang CodeGen library. The latter will be modified to use actual source-level information from frontend (source file names) instead of unstable LLVM IR things (LLVM Module identifier). Remove dependency edge from ClangCodeGen/ClangDriver to LLVMTransformUtils. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212643 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Support: Write ScaledNumbers::getRounded() Duncan P. N. Exon Smith <dexonsmith@apple.com> Fri, 20 Jun 2014 01:30:43 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=16e592a6fe237900a7fa347c732f29395013fc34 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=16e592a6fe237900a7fa347c732f29395013fc34 Support: Write ScaledNumbers::getRounded() Support: Write ScaledNumbers::getRounded() Start extracting helper functions out of -block-freq's `UnsignedFloat` into `Support/ScaledNumber.h` with the eventual goal of moving and renaming the class to `ScaledNumber`. The bike shed about names is still being painted, but I'm going with this for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211333 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
PR10140 - StringPool's PooledStringPtr has non-const operator== causing bad OR-result. Nikola Smiljanic <popizdeh@gmail.com> Thu, 19 Jun 2014 00:26:49 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=1260b844fd71720566eabd4cc5738f2abe747871 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=1260b844fd71720566eabd4cc5738f2abe747871 PR10140 - StringPool's PooledStringPtr has non-const operator== causing bad OR-result. PR10140 - StringPool's PooledStringPtr has non-const operator== causing bad OR-result. Mark conversion operator explicit and const qualify comparison operators. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211244 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Support: Add unit tests for BranchProbability Duncan P. N. Exon Smith <dexonsmith@apple.com> Tue, 29 Apr 2014 16:12:13 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=4afab2afa876e804de71a8178fa61746a5ca96b3 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=4afab2afa876e804de71a8178fa61746a5ca96b3 Support: Add unit tests for BranchProbability Support: Add unit tests for BranchProbability git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207540 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
[ADT] Add a generic iterator utility for adapting iterators much like Chandler Carruth <chandlerc@gmail.com> Thu, 24 Apr 2014 03:31:23 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=beee61d3e6c7e202160233c2f24ec9d5d03f89cc http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=beee61d3e6c7e202160233c2f24ec9d5d03f89cc [ADT] Add a generic iterator utility for adapting iterators much like [ADT] Add a generic iterator utility for adapting iterators much like Boost's iterator_adaptor, and a specific adaptor which iterates over pointees when wrapped around an iterator over pointers. This is the result of a long discussion on IRC with Duncan Smith, Dave Blaikie, Richard Smith, and myself. Essentially, I could use some subset of the iterator facade facilities often used from Boost, and everyone seemed interested in having the functionality in a reasonably generic form. I've tried to strike a balance between the pragmatism and the established Boost design. The primary differences are: 1) Delegating to the standard iterator interface names rather than special names that then make up a second iterator-like API. 2) Using the name 'pointee_iterator' which seems more clear than 'indirect_iterator'. The whole business of calling the '*p' operation 'pointer indirection' in the standard is ... quite confusing. And 'dereference' is no better of a term for moving from a pointer to a reference. Hoping Duncan, and others continue to provide comments on this until we've got a nice, minimal abstraction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207069 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>
Hey, we can stop depending on the IR library from the Support unittests Chandler Carruth <chandlerc@gmail.com> Tue, 4 Mar 2014 12:56:38 +0000 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=80a59df0e7b0c00c579827727f01fb5038f08ef7 http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff;h=80a59df0e7b0c00c579827727f01fb5038f08ef7 Hey, we can stop depending on the IR library from the Support unittests Hey, we can stop depending on the IR library from the Support unittests now. ;] Tested on both a static and shared CMake build. Hopefully the bots will agree. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202844 91177308-0d34-0410-b5e6-96231b3b80d8
  • [D] unittests/Support/CMakeLists.txt
]]>