- Nov 19, 2017
-
-
Simon Pilgrim authored
llvm-svn: 318603
-
Eric Fiselier authored
The CodeGenCoverage.h header is installed, but it references the build-only header "llvm/Config/config.h". This breaks use of the CodeGenCoverage.h header once it is installed, because config.h isn't available. This patch fixes the error by moving the config.h include from the CodeGenCoverage.h header (where it's not needed), to the CodeGenCoverage.cpp source file. llvm-svn: 318602
-
Jonas Hahnfeld authored
Some target devices (e.g. Nvidia GPUs) don't support dynamic stack allocation and hence no VLAs. Print errors with description instead of failing in the backend or generating code that doesn't work. This patch handles explicit uses of VLAs (local variable in target or declare target region) or implicitly generated (private) VLAs for reductions on VLAs or on array sections with non-constant size. Differential Revision: https://reviews.llvm.org/D39505 llvm-svn: 318601
-
Jonas Toth authored
Summary: This check searches for missing `else` branches in `if-else if`-chains and missing `default` labels in `switch` statements, that use integers as condition. It is very similar to -Wswitch, but concentrates on integers only, since enums are already covered. The option to warn for missing `else` branches is deactivated by default, since it is very noise on larger code bases. Running it on LLVM: {F5354858} for default configuration {F5354866} just for llvm/lib/Analysis/ScalarEvolution.cpp, the else-path checker is very noisy! Reviewers: alexfh, aaron.ballman, hokein Reviewed By: aaron.ballman Subscribers: lebedev.ri, Eugene.Zelenko, cfe-commits, mgorny, JDevlieghere, xazax.hun Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D37808 llvm-svn: 318600 -
Simon Pilgrim authored
PR34553 has gone, adding tests to ensure it doesn't come back. vselect_packss_v16i64 still has some awful codegen on AVX512 targets.... llvm-svn: 318599
-
Sanjay Patel authored
After clarification about the C standard, POSIX, and implementations: The C standard allows errno-setting, and it's (unfortunately for optimization) even more clearly stated in the newer additions to the standards. We can leave these functions as always constant ('c') because they don't actually do any math and therefore won't set errno: cimag ( http://en.cppreference.com/w/c/numeric/complex/cimag ) creal ( http://en.cppreference.com/w/c/numeric/complex/creal ) cproj ( http://en.cppreference.com/w/c/numeric/complex/cproj ) conj (http://en.cppreference.com/w/c/numeric/complex/conj ) Differential Revision: https://reviews.llvm.org/D39611 llvm-svn: 318598 -
Craig Topper authored
This requires the indices to be legalized and sign extended. llvm-svn: 318597
-
Craig Topper authored
We don't need a dyn_cast, the predicate already specified the base node. We only need to check the type of the index, the base ptr is guaranteed to be scalar. llvm-svn: 318596
-
Craig Topper authored
I'm playing around with this flag and these places cause errors if not qualified. llvm-svn: 318595
-
Simon Pilgrim authored
As discussed on PR35295, but it causes regressions in combineSubToSubus which need to be addressed first llvm-svn: 318594
-
Florian Hahn authored
Summary: With this patch I tried to reduce the complexity of the code sightly, by removing some indirection. Please let me know what you think. Reviewers: junbuml, mcrosier, davidxl Reviewed By: junbuml Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D40037 llvm-svn: 318593
-
Sanjay Patel authored
llvm-svn: 318592
-
- Nov 18, 2017
-
-
Martin Storsjo authored
This makes sure that functions that only clobber xmm registers (on win64) also get the right cfi directives, if dwarf exceptions are enabled. Differential Revision: https://reviews.llvm.org/D40191 llvm-svn: 318591
-
Craig Topper authored
llvm-svn: 318590
-
Quentin Colombet authored
We used to detect loads feeding fp instructions, but we were failing to take into account cases where this happens through copies. For instance, loads can fed copies coming from the ABI lowering of floating point arguments/results. llvm-svn: 318589
-
Quentin Colombet authored
We used to detect that stores were fed by fp instructions, but we were failing to take into account cases where this happens through copies. For instance, stores can be fed by copies coming from the ABI lowering of floating point arguments. llvm-svn: 318588
-
Quentin Colombet authored
Instead of asserting that the type sizes are exactly equal, we check that the new size is big enough to contain the original type. We have to relax this constrain because, right now, we sometimes specify that things that are smaller than a storage type are legal instead of widening everything to the size of a storage type. E.g., we say that G_AND s16 is legal and we map that on GPR32. This is something we may revisit in the future (either by changing the legalization process or keeping track separately of the storage size and the size of the type), but let us reflect the reality of the situation for now. llvm-svn: 318587
-
Quentin Colombet authored
Turns out this copies can actually occur because of the way we lower the ABI for half. llvm-svn: 318586
-
Rafael Espindola authored
llvm-svn: 318584
-
Rafael Espindola authored
By having an UTF-16 version we avoid some code duplication in calling GetFinalPathNameByHandleW. llvm-svn: 318583
-
Eugene Zelenko authored
llvm-svn: 318582
-
Walter Lee authored
We were not doing that for large shadow granularity. Also add more stack frame layout tests for large shadow granularity. Differential Revision: https://reviews.llvm.org/D39475 llvm-svn: 318581
-
Davide Italiano authored
llvm-svn: 318580
-
Davide Italiano authored
llvm-svn: 318579
-
Hans Wennborg authored
llvm-svn: 318578
-
Davide Italiano authored
llvm-svn: 318577
-
Davide Italiano authored
This sketching can be resurrected if anybody needs it, although I doubt is relevant these days. llvm-svn: 318576
-
Evgeniy Stepanov authored
Revert the following commits: r318369 [asan] Fallback to non-ifunc dynamic shadow on android<22. r318235 [asan] Prevent rematerialization of &__asan_shadow. r317948 [sanitizer] Remove unnecessary attribute hidden. r317943 [asan] Use dynamic shadow on 32-bit Android. MemoryRangeIsAvailable() reads /proc/$PID/maps into an mmap-ed buffer that may overlap with the address range that we plan to use for the dynamic shadow mapping. This is causing random startup crashes. llvm-svn: 318575
-
Daniel Sanders authored
ptypeN is functionally the same as typeN except that it informs the SelectionDAG importer that an operand should be treated as a pointer even if it was written as iN. This is important for patterns that use iN instead of iPTR to represent pointers. E.g.: (set GPR64:$dst, (load GPR64:$addr)) Previously, this was handled as a hardcoded special case for the appropriate operands to G_LOAD and G_STORE. llvm-svn: 318574
-
Evgeniy Stepanov authored
"ln" from toybox does not understand -f (force) flag. llvm-svn: 318573
-
Reid Kleckner authored
This functionality was broken during a refactor a while back because 'pool' is no longer in scope. llvm-svn: 318572
-
Petr Hosek authored
The passthrough is useful for setting up the options for the default build, but we already have a different mechanism to pass CMake flags to builds for builtins and runtimes targets so this is not really needed there. Furthermore, when the flags are set for the default build, with the prefix passthrough set we have to explicitly override all options in other targets which can be cumbersome. Differential Revision: https://reviews.llvm.org/D39988 llvm-svn: 318571
-
Eugene Zelenko authored
llvm-svn: 318570
-
Petr Hosek authored
This is useful in cases where we only build static library and libunwind.a is combined with libc++abi.a into a single archive in which case we don't want to have libunwind.a installed separately. The same option is already provided by libcxx CMake build. This change also adds the install-unwind target for consistency with the libcxxabi and libcxx CMake build. Differential Revision: https://reviews.llvm.org/D40195 llvm-svn: 318569
-
Petr Hosek authored
This is useful in cases where we only build static library and libc++abi.a is combined with libc++.a into a single archive in which case we don't want to have libc++abi.a installed separately. The same option is already provided by libcxx CMake build. Differential Revision: https://reviews.llvm.org/D40194 llvm-svn: 318568
-
Anna Zaks authored
Differential Revision: https://reviews.llvm.org/D39964 llvm-svn: 318567
-
Zachary Turner authored
When using an installed clang with an in-tree llvm, we were not searching in the right paths for the tools. llvm-svn: 318564
-
Petr Hosek authored
When using LLVM unwinder and static unwinder option is set, merge libunwind and libc++abi objects into a single archive. libc++ already supports merging libc++abi.a and libc++.a into a single archive; with this change, it is possible to also include libunwind.a in the same archive which is useful when doing static link and using libc++ as a default C++ library and compiler-rt as a default runtime library. Differential Revision: https://reviews.llvm.org/D39949 llvm-svn: 318563
-
Michal Gorny authored
After the recent lit test changes, clang attempts to run its tests via llvm-lit by default. However, the llvm-lit binary is not present when performing stand-alone build resulting in a failure out of the box. To solve that, add the llvm-lit directory to CMake when performing a stand-alone build and LLVM sources are provided. This includes the CMake rules generating the llvm-lit binary and effectively makes it possible for clang to use it. Differential Revision: https://reviews.llvm.org/D40142 llvm-svn: 318562
-
Zhaoshi Zheng authored
llvm-svn: 318561
-