| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
classes.
llvm-svn: 231954
|
| |
|
|
| |
llvm-svn: 231953
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds support for copy-constructor closures. These are generated
when the C++ runtime has to call a copy-constructor with a particular
calling convention or with default arguments substituted in to the call.
Because the runtime has no mechanism to call the function with a
different calling convention or know-how to evaluate the default
arguments at run-time, we create a thunk which will do all the
appropriate work and package it in a way the runtime can use.
Differential Revision: http://reviews.llvm.org/D8225
llvm-svn: 231952
|
| |
|
|
|
|
| |
we can inspect the subtarget and function when computing values.
llvm-svn: 231951
|
| |
|
|
|
|
|
|
|
|
| |
definition, be sure to update the definition data on all declarations, not just
the canonical one, since the pattern might not be in the list of pending
definitions (if it used to be canonical itself).
One-line fix by me; reduced testcase by Daniel Jasper!
llvm-svn: 231950
|
| |
|
|
|
|
| |
http://reviews.llvm.org/D8239
llvm-svn: 231949
|
| |
|
|
|
|
|
| |
This fixes a bug reported here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150309/265341.html
llvm-svn: 231948
|
| |
|
|
|
|
| |
passed to QueueUserWorkItem
llvm-svn: 231947
|
| |
|
|
| |
llvm-svn: 231946
|
| |
|
|
|
|
|
|
|
|
| |
This is a follow-up to r231182. This adds the "vbroadcasti128" instruction
back, but without the intrinsic mapping. Also add a test to check the
instriction encoding.
This is related to rdar://problem/18742778.
llvm-svn: 231945
|
| |
|
|
|
|
| |
(caused undesirable update of -std flag to use _Atomic)
llvm-svn: 231942
|
| |
|
|
|
|
|
|
| |
Reviewed by: Alexander Kornienko
Differential Revision: http://reviews.llvm.org/D8164
llvm-svn: 231941
|
| |
|
|
|
|
|
|
|
| |
This basically reverts the revert in r216508, and fixes a few more cases while
I'm at it. Reading my commit message on that commit again, I think it's bupkis.
http://reviews.llvm.org/D8237
llvm-svn: 231940
|
| |
|
|
|
|
| |
several projects. rdar://20120666.
llvm-svn: 231939
|
| |
|
|
| |
llvm-svn: 231938
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On a new platform that I am working on
(https://github.com/NuxiNL/cloudlibc) I am not implementing the
cat{open,close,gets}() API, just like Android, Newlib, etc.
Instead of adding yet another operating system name to the #ifs,
introduce _LIBCPP_HAS_CATOPEN in include/__config. Also adjust the code
to only pull in nl_types.h when _LIBCPP_HAS_CATOPEN is set. We only
needed this header for the cat*() API.
Differential Revision: http://reviews.llvm.org/D8163
Reviewed by: marshall
llvm-svn: 231937
|
| |
|
|
| |
llvm-svn: 231936
|
| |
|
|
|
|
| |
Added restictions for atomic type usage from OpenCL C Spec Section 6.13.11.8
llvm-svn: 231935
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Summary:
The generic ELF TargetObjectFile defaults to .ctors, but Linux's
defaults to .init_array by calling InitializeELF with the value of
UseInitArray from TargetMachine. Make NaCl's behavior match.
Reviewers: jvoung
Differential Revision: http://reviews.llvm.org/D8240
llvm-svn: 231934
|
| |
|
|
| |
llvm-svn: 231933
|
| |
|
|
|
|
|
|
|
|
|
|
| |
OpenCL C Spec v2.0 Section 6.13.11
- Made c11 _Atomic being accepted only for c11 compilations
- Implemented CL2.0 atomics by aliasing them to the corresponding c11 atomic types using implicit typedef
- Added diagnostics for atomics Khronos extension enabling
llvm-svn: 231932
|
| |
|
|
|
|
|
|
|
|
| |
POWER8.
These are the Clang-related changes for the instructions added to LLVM in http://reviews.llvm.org/D7959.
Phabricator review: http://reviews.llvm.org/D8041
llvm-svn: 231931
|
| |
|
|
| |
llvm-svn: 231930
|
| |
|
|
| |
llvm-svn: 231929
|
| |
|
|
|
|
|
|
|
|
|
| |
This patch implements parsing of the GNU ld MEMORY command [1].
The command and the memory block definitions are parsed as
specified (including the slightly strange "o" and "l" keywords).
Evaluation will be added at a later point in time.
[1] https://sourceware.org/binutils/docs-2.25/ld/MEMORY.html
llvm-svn: 231928
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The CallGraphNode function "addCalledFunction()" asserts that edges are not to intrinsics.
This patch makes sure that the Inliner does not add such an edge to the callgraph.
Fix for clang crash by assertion: https://llvm.org/bugs/show_bug.cgi?id=22857
Differential Revision: http://reviews.llvm.org/D8231
llvm-svn: 231927
|
| |
|
|
|
|
| |
Patch by Martin Probst. Thank you.
llvm-svn: 231926
|
| |
|
|
|
|
|
| |
reverting while I investigate why it broke the sanitizer-windows build.
This reverts commit r231924.
llvm-svn: 231925
|
| |
|
|
|
|
|
|
|
|
|
| |
NFC currently but required as a prerequisite for using
the Microsoft resource compiler in conjunction with
CMake's ninja generator, which knows how to filter flags
appropriately, but not definitions.
Differential Revision: http://reviews.llvm.org/D8188
llvm-svn: 231924
|
| |
|
|
|
|
| |
on windows.
llvm-svn: 231923
|
| |
|
|
|
|
|
|
|
|
|
| |
Previously these test cases execute lldb-server on the host and run the
tests against it even if a remote platform was specified. With this CL
these tests always test the communication with an lldb-server instance
running on the target.
Differential revision: http://reviews.llvm.org/D8202
llvm-svn: 231922
|
| |
|
|
| |
llvm-svn: 231921
|
| |
|
|
|
|
|
|
|
|
| |
Before:
if (a &&(b = c)) ..
After:
if (a && (b = c)) ..
llvm-svn: 231920
|
| |
|
|
| |
llvm-svn: 231919
|
| |
|
|
| |
llvm-svn: 231918
|
| |
|
|
| |
llvm-svn: 231917
|
| |
|
|
|
|
|
| |
Added rotation instructions, encoding only.
Added encoding tests for all these forms.
llvm-svn: 231916
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
ProcessGDBRemote::AsyncThread nuked its own thread handle upon exiting. This prevented the main
thread from joining it correctly in StopAsyncThread. I address this by moving the Reset() call to
StopAsyncThread, after the join.
Reviewers: clayborg, zturner
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D8218
llvm-svn: 231915
|
| |
|
|
|
|
|
| |
CloudABI also supports the arc4random() function. We can enable compiler
warnings for rand(), random() and *rand48() on this system as well.
llvm-svn: 231914
|
| |
|
|
|
|
|
|
|
|
|
| |
CloudABI is a pure cross compilation target. This means that we should
not add /usr/include and /usr/local/include. Instead, headers are stored
in $sysroot/$triple/include.
The method of going back to the sysroot (by using "../../..") is also
used in this function for some of the other environments (e.g., MinGW).
llvm-svn: 231913
|
| |
|
|
|
|
|
|
|
|
|
| |
CloudABI can be identified by the __CloudABI__ preprocessor definition. The
system uses ELF executables.
CloudABI uses Unicode 7.0.0 for the encoding of wchar_t. As Unicode 7.0.0 is
synchronized with ISO/IEC 10646:2012 (released on 2012-06-01),
__STDC_ISO_10646__ is defined as 201206L.
llvm-svn: 231912
|
| |
|
|
|
|
|
|
| |
As of r231908, the test I added in r231902 actually gets run - but I'd
checked in a stale version of the input so it didn't pass. Fix the
input and un-xfail the test.
llvm-svn: 231911
|
| |
|
|
|
|
|
|
|
|
|
| |
of another intrinsic in order to verify itself.
This causes a crash if the referenced intrinsic was malformed. In this case, we
would already have reported an error on the referenced intrinsic, but then
crashed on the second one when it tried to introspect the first without
error checking.
llvm-svn: 231910
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Using declarations which are aliases to struct types have their name
used as the struct type's name for linkage purposes. Otherwise, make
sure to give an anonymous struct defined inside a using declaration a
mangling number to disambiguate it from other anonymous structs in the
same context.
This fixes PR22809.
llvm-svn: 231909
|
| |
|
|
|
|
|
|
|
| |
There were also errors in the CHECK line which I fixed and the test
doesn't actually pass as the "100" is in the wrong line. Not sure
whether this is a test failure or a coverage failure so making the test
XFAIL for now.
llvm-svn: 231908
|
| |
|
|
| |
llvm-svn: 231907
|
| |
|
|
|
|
|
|
|
|
| |
This will be replaced by a more generic class to handle
all the default symbols in an executable, e.g. __init_array.
Differential Revision: http://reviews.llvm.org/D8234
Reviewed by: shankare
llvm-svn: 231906
|
| |
|
|
|
|
|
| |
This patch allows using of ExprWithCleanups expressions and other complex expressions in 'omp atomic' construct
Differential Revision: http://reviews.llvm.org/D8200
llvm-svn: 231905
|
| |
|
|
| |
llvm-svn: 231904
|
| |
|
|
|
|
| |
[-Wdocumentation]
llvm-svn: 231903
|