- Feb 06, 2016
-
-
Kostya Serebryany authored
[asan] disabled one subtest in scariness_score_test.cc that may fail when running under GNU make. Add more subtests llvm-svn: 259978
-
Samuel Antao authored
Summary: Different devices may in some cases require different code generation schemes in order to implement OpenMP. This is required not only for performance reasons, but also because it may not be possible to have the current (default) implementation working for these devices. E.g. GPU's cannot implement the same scheme a target such as powerpc or x86b would use, in the sense that it does not have the ability to fork threads, instead all the threads are always executing and need to be managed by the implementation. This patch proposes a reorganization of the code in the OpenMP code generation to pave the way to have specialized implementation of OpenMP support. More than a "real" patch this is more a request for comments in order to understand if what is proposed is acceptable or if there are better/easier ways to do it. In this patch part of the common OpenMP codegen infrastructure is moved to a new file under a new namespace (CGOpenMPCommon) so it can be shared between the default implementation and the specialized one. When CGOpenMPRuntime is created, an attempt to select a specialized implementation is done. In the patch a specialization for nvptx targets is done which currently checks if the target is an OpenMP device and trap if it is not. Let me know comments suggestions you may have. Reviewers: hfinkel, carlo.bertolli, arpith-jacob, kkwli0, ABataev Subscribers: Hahnfeld, cfe-commits, fraggamuffin, caomhin, jholewinski Differential Revision: http://reviews.llvm.org/D16784 llvm-svn: 259977
-
Richard Smith authored
[modules] Compress files embedded into a .pcm file, to reduce the disk usage of -fembed-all-files mode. llvm-svn: 259976
-
Adrian Prantl authored
It is possible for enums to be created as part of their own declcontext. We need to cache a placeholder to avoid the type being created twice before hitting the cache. <rdar://problem/24493203> llvm-svn: 259975
-
Adrian Prantl authored
There is a legitimate use-case in clang where we need to replace a temporary placeholder node with the temporary node that may be a forward declaration. <rdar://problem/24493203> llvm-svn: 259973
-
Enrico Granata authored
Per Jim's suggestion, move checks that we're not mixing and matching Debuggers and Commands deeper in the bowels of LLDB NFC llvm-svn: 259972
-
David Blaikie authored
This is almost feature complete - just missing tu_index merging now. llvm-svn: 259971
-
Devin Coughlin authored
This is not the future. llvm-svn: 259969
-
Lang Hames authored
Replace leaq + movq of a pointer with a single movabsq. llvm-svn: 259968
-
Devin Coughlin authored
llvm-svn: 259967
-
Pete Cooper authored
The initial segment protection was also being used to set the maximum segment protection level. Instead, the maximum should be set according to the architecture we are linking. For example on Mac OS it should be RWX on most pages, but on iOS is often on R_X. rdar://problem/24515136 llvm-svn: 259966
-
Richard Smith authored
a significant fraction of the file size (for files that otherwise have few records). Also include an average size per record in the summary information. llvm-svn: 259965
-
Enrico Granata authored
Fix an issue where certain CommandObjects (or Options thereof) were being created once, bound to a specific CommandInterpreter (and hence a specific Debugger), and then cached for reuse across different Debugger instances Obviously, if the original Debugger goes away, those commands are holding on to now stale memory, which has the potential to cause crashes Fixes rdar://24460882 llvm-svn: 259964
-
George Burgess IV authored
llvm-svn: 259963
-
Jim Ingham authored
<rdar://problem/24525106> llvm-svn: 259962
-
Kostya Serebryany authored
[asan] add an experimental feature that prints the scariness score of the error message. To enable it use ASAN_OPTIONS=print_scariness=1 llvm-svn: 259961
-
Pete Cooper authored
We currently tag on a "__LINKEDIT" when we are emitting the segments. However, an upcoming patch aims to set the initprot and maxprot segment members to their correct values, and in order to share code, its better to create this segment for real and handle it in buildFileOffsets the same way ld64 does. The commit for segment protections will add a test for this all being correct so no test here until that code is committed. llvm-svn: 259960
-
Rafael Espindola authored
llvm-svn: 259959
-
Evandro Menezes authored
Summary: Add the core scheduling model for the Samsung Exynos-M1 (ARMv8-A). Reviewers: jmolloy, rengolin, christof, MinSeongKIM, t.p.northover Subscribers: aemerson, rengolin, MatzeB Differential Revision: http://reviews.llvm.org/D16644 llvm-svn: 259958
-
Sanjoy Das authored
llvm-svn: 259956
-
Xinliang David Li authored
Temporarily relax check in test to avoid breakage for format change in LLVM side. Once that is done, the test case will be retightened. llvm-svn: 259955
-
Eric Christopher authored
llvm-svn: 259954
-
Lang Hames authored
llvm-svn: 259953
-
Xinliang David Li authored
llvm-svn: 259952
-
Rui Ueyama authored
I removed "CIE/FIE size is too large" error because that was not checking for correct error conditions. [UINT_MAX - 4, UINT_MAX) is a correct range as a size of a CIE/FDE record. It's just that the size cannot be larger than the section size. llvm-svn: 259951
-
Paul Robinson authored
llvm-svn: 259950
-
Paul Robinson authored
llvm-svn: 259949
-
Richard Smith authored
llvm-svn: 259948
-
Richard Trieu authored
Sometimes, char arrays are used as bit storage, with no difference made between signed and unsigned char. Thus, it is reasonable to use 0 to 255 instead of -128 to 127 and not trigger this warning. llvm-svn: 259947
-
Rui Ueyama authored
This function did not use any fields of the class. llvm-svn: 259946
-
Rafael Espindola authored
We were not including TLS sections. llvm-svn: 259945
-
Artem Belevich authored
... and pull global-scope ones into std namespace with using-declaration. Differential Revision: http://reviews.llvm.org/D16932 llvm-svn: 259944
-
Richard Smith authored
check wrong when inheriting a member through two levels of private inheritance, where the middle one is a class template specialization. llvm-svn: 259943
-
Richard Smith authored
-fsized-deallocation. Disable sized deallocation for all objects derived from TrailingObjects, as we expect the storage allocated for these objects to be larger than the size of their dynamic type. llvm-svn: 259942
-
Xinliang David Li authored
The change allows skipping duplicate strings early to avoid redundant md5 computation and string copying/swapping. llvm-svn: 259941
-
Davide Italiano authored
Thanks to David Blaikie for pointing this out! llvm-svn: 259938
-
Davide Italiano authored
This is more uniform wrt what other tools do and makes the code a little bit more readable. llvm-svn: 259937
-
Paul Robinson authored
llvm-svn: 259935
-
John McCall authored
rdar://24531556 llvm-svn: 259932
-
Ulrich Weigand authored
Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_[1248] macros on SystemZ. This fixes a miscompile of GCC C++11 standard library headers due to use of those macros in an ABI-changing manner. See e.g. /usr/include/c++/4.8.5/ext/concurrence.h: // Compile time constant that indicates prefered locking policy in // the current configuration. static const _Lock_policy __default_lock_policy = #ifdef __GTHREADS #if (defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2) \ && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)) _S_atomic; #else _S_mutex; #endif #else _S_single; #endif A different choice of __default_lock_policy causes different sizes of several of the C++11 data structures, which are then incompatible when inlined in clang-compiled code with what the (GCC-compiled) external library expects. This in turn leads to various crashes when using std::thread in code compiled with clang, as see e.g. via the ThreadPool unit tests. See PR 26473 for an example. llvm-svn: 259931
-