- Oct 01, 2016
-
-
Joerg Sonnenberger authored
llvm-svn: 282934
-
Joerg Sonnenberger authored
llvm-svn: 282933
-
Joerg Sonnenberger authored
llvm-svn: 282932
-
Joerg Sonnenberger authored
llvm-svn: 282931
-
Joerg Sonnenberger authored
llvm-svn: 282930
-
Joerg Sonnenberger authored
llvm-svn: 282929
-
Joerg Sonnenberger authored
llvm-svn: 282928
-
Justin Lebar authored
This commit added a warning that we're (correctly) hitting in this test. Just ignore it. llvm-svn: 282927
-
Rui Ueyama authored
llvm-svn: 282926
-
Joerg Sonnenberger authored
to check for the former, don't depend on (dangling) HAVE_MMAP_ANONYMOUS. llvm-svn: 282925
-
Joerg Sonnenberger authored
systems. It wasn't even hooked up in cmake, so problems on such systems would be visible with 3.9 release already. llvm-svn: 282924
-
Joerg Sonnenberger authored
llvm-svn: 282923
-
Joerg Sonnenberger authored
llvm-svn: 282922
-
Joerg Sonnenberger authored
llvm-svn: 282921
-
Hans Wennborg authored
We can't use Jcc to leave a Win64 function in general, because that confuses the unwinder. However, for "leaf" functions, that is, functions where the return address is always on top of the stack and which don't have unwind info, it's OK. Differential Revision: https://reviews.llvm.org/D24836 llvm-svn: 282920
-
Joerg Sonnenberger authored
llvm-svn: 282919
-
Joerg Sonnenberger authored
llvm-svn: 282918
-
Joerg Sonnenberger authored
llvm-svn: 282917
-
Rui Ueyama authored
This was intended to warn on a usage error of an ar command. I was thinking that false positive would be rare because it has two guards: it warns only when an archive file has no symbols and contains at least one file. Turned out that false positive would probably be not that rare. You wouldn't intentionally create an object file that contains no exported symbols, but with conditional compile guards, you could create such file. If it is for a LTO build, you could create an archive file containing such file. That means there's no way to detect the usage error in a reliable manner. This patch simply removes the warning. llvm-svn: 282916
-
Joerg Sonnenberger authored
llvm-svn: 282915
-
Joerg Sonnenberger authored
llvm-svn: 282914
-
Kostya Kortchinsky authored
Summary: s/CHECK_LT/CHECK_LE/ in the secondary allocator, as under certain circumstances Ptr + Size can be equal to MapEnd. This edge case was not found by the current tests, so those were extended to be able to catch that. Reviewers: kcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D25101 llvm-svn: 282913
-
Justin Lebar authored
I'd said that nvcc doesn't allow you to add __host__ or __device__ attributes on lambdas in all circumstances, but I believe this was user error on my part. I can't reproduce these warnings/errors if I pass --expt-extended-lambda to nvcc. llvm-svn: 282912
-
Justin Lebar authored
Summary: This is probably the sane place for the attribute to go, but nvcc specifically rejects it. Other GNU-style attributes are allowed in this position (although judging from the warning it emits for host/device/global, those attributes are applied to the lambda's anonymous struct, not to the function itself). It would be nice to have a FixIt message here, but doing so, or even just getting the correct range for the attribute, including its '((' and '))'s, is apparently Hard. Reviewers: rnk Subscribers: cfe-commits, tra Differential Revision: https://reviews.llvm.org/D25115 llvm-svn: 282911 -
Justin Lebar authored
Summary: There's an overload that we can use to make this a bit cleaner. Reviewers: rnk Subscribers: cfe-commits, tra Differential Revision: https://reviews.llvm.org/D25114 llvm-svn: 282910
-
Joerg Sonnenberger authored
llvm-svn: 282909
-
Joerg Sonnenberger authored
llvm-svn: 282908
-
Joerg Sonnenberger authored
LLVM_ENABLE_THREADS. Include llvm-config.h explicitly in headers to make sure that the definition is available. llvm-svn: 282907
-
Sanjay Patel authored
llvm-svn: 282906
-
Etienne Bergeron authored
Summary: The check-asan-dynamic tests were broken on win10 because the interception library was not able to hook on some functions. credits: thanks sebastian marchand to help debugging this on win10. Reviewers: rnk Subscribers: chrisha, llvm-commits, dberris Differential Revision: https://reviews.llvm.org/D25120 llvm-svn: 282904
-
Dehao Chen authored
llvm-svn: 282903
-
Gor Nishanov authored
[Coroutines] Part15c: Fix coro-split to correctly handle definitions between coro.save and coro.suspend Summary: In the case below, %Result.i19 is defined between coro.save and coro.suspend and used after coro.suspend. We need to correctly place such a value into the coroutine frame. ``` %save = call token @llvm.coro.save(i8* null) %Result.i19 = getelementptr inbounds %"struct.lean_future<int>::Awaiter", %"struct.lean_future<int>::Awaiter"* %ref.tmp7, i64 0, i32 0 %suspend = call i8 @llvm.coro.suspend(token %save, i1 false) switch i8 %suspend, label %exit [ i8 0, label %await.ready i8 1, label %exit ] await.ready: %val = load i32, i32* %Result.i19 ``` Reviewers: majnemer Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D24418 llvm-svn: 282902 -
Sanjay Patel authored
llvm-svn: 282901
-
Martin Storsjo authored
These are supposed to produce the same as normal volatile pointer loads/stores. When -volatile:ms is specified, normal volatile pointers are forced to have atomic semantics (as is the default on x86 in MSVC mode). In that case, these builtins should still produce non-atomic volatile loads/stores without acquire/release semantics, which the new test verifies. These are only available on ARM (and on AArch64, although clang doesn't support AArch64/Windows yet). This implements what is missing for PR30394, making it possible to compile C++ for ARM in MSVC mode with MSVC headers. Differential Revision: https://reviews.llvm.org/D24986 llvm-svn: 282900
-
Gor Nishanov authored
Summary: Without the fix, if there was a function inlined into the coroutine with debug information, CloneFunctionInto(NewF, &F, VMap, /*ModuleLevelChanges=*/true, Returns); would duplicate all of the debug information including the DICompileUnit. We know use VMap to indicate that debug metadata for a File, Unit and FunctionType should not be duplicated when we creating clones that will become f.resume, f.destroy and f.cleanup. Reviewers: majnemer Subscribers: mehdi_amini, llvm-commits Differential Revision: https://reviews.llvm.org/D24417 llvm-svn: 282899
-
Sean Callanan authored
llvm-svn: 282898
-
Gor Nishanov authored
Summary: Not all coro.subfn.addr intrinsics can be eliminated in CoroElide through devirtualization. Those that remain need to be lowered in CoroCleanup. Reviewers: majnemer Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D24412 llvm-svn: 282897
-
Sanjay Patel authored
llvm-svn: 282896
-
Michal Gorny authored
Add a OCAML_INSTALL_PATH variable that can be used to control the install path for OCaml libraries. The new variable defaults to ${OCAML_STDLIB_PATH}, i.e. the OCaml library path obtained from the OCaml compiler. Install libraries into "llvm" subdirectory. This fixes two issues: 1. OCaml library directories differ between systems, and 'lib/ocaml' is incorrect e.g. on amd64 Gentoo where OCaml is installed in 'lib64/ocaml'. Therefore, obtain the library path from the OCaml compiler using 'ocamlc -where' (which is already used to set OCAML_STDLIB_PATH), which is the method used commonly in OCaml packages. 2. The top-level directory is reserved for the standard library, and has precedence over local directory in search path. As a result, OCaml preferred the files installed along with previous LLVM version over the source tree when building a new version, resulting in two versions being mixed during the build. The new layout is used commonly by other OCaml packages, and findlib is able to find the LLVM libraries successfully. Bug: https://bugs.gentoo.org/559134 Bug: https://bugs.gentoo.org/559624 Differential Revision: https://reviews.llvm.org/D24354 llvm-svn: 282895 -
Dehao Chen authored
Summary: Debug info should *not* affect optimization decisions. This patch updates loop unroller cost model to make it not affected by debug info. Reviewers: davidxl, mzolotukhin Subscribers: haicheng, llvm-commits, mzolotukhin Differential Revision: https://reviews.llvm.org/D25098 llvm-svn: 282894
-