- Jul 08, 2016
-
-
Eric Liu authored
llvm-svn: 274862
-
Eric Liu authored
Make a std::string copy of StringRef Name so that it remains valid when the original Name is overridden. Summary: lib/IR/AutoUpgrade.cpp:348 and lib/IR/AutoUpgrade.cpp:350 upset sanitizer. Reviewers: bkramer Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D22140 llvm-svn: 274861
-
Sanjay Patel authored
llvm-svn: 274860
-
Vassil Vassilev authored
Patch by Axel Naumann! llvm-svn: 274859
-
Alexey Bader authored
OpenCL s6.6: "Access qualifier must be used with image object arguments of kernels and of user-defined functions [...] If no qualifier is provided, read_only is assumed". This does not define the behavior for image types used in typedef declaration, but following the spec logic, we should allow access qualifiers specification in typedefs, e.g.: typedef write_only image1d_t img1d_wo; Unlike cv-qualifiers, user cannot add access qualifier to a typedef type, i.e. this is not allowed: typedef image1d_t img1d; // note: previously declared 'read_only' here void foo(write_only img1d im) {} // error: multiple access qualifier Patch by Andrew Savonichev. Reviewers: Anastasia Stulova. Differential revision: http://reviews.llvm.org/D20948 llvm-svn: 274858
-
Kwasi Mensah authored
Summary: The current implementations of __hash_table::find used by std::unordered_set/unordered_map call key_eq on each key that lands in the same bucket as the key you're looking for. However, since equal objects mush hash to the same value, you can short-circuit the possibly expensive call to key_eq by checking the hashes first. Reviewers: EricWF Subscribers: kmensah, cfe-commits Differential Revision: http://reviews.llvm.org/D21510 llvm-svn: 274857
-
Chris Dewhurst authored
Errata fixes for various errata in different versions of the Leon variants of the Sparc 32 bit processor. The nature of the errata are listed in the comments preceding the errata fix passes. Relevant unit tests are implemented for each of these. Note: Running clang-format has changed a few other lines too, unrelated to the implemented errata fixes. These have been left in as this keeps the code formatting consistent. Differential Revision: http://reviews.llvm.org/D21960 llvm-svn: 274856
-
Sjoerd Meijer authored
Differential Revision: http://reviews.llvm.org/D22139 llvm-svn: 274855
-
Andrey Churbanov authored
llvm-svn: 274854
-
Anna Thomas authored
We can fold truncs whose operand feeds from a load, if the trunc value is available through a prior load/store. This change is from: http://reviews.llvm.org/D21246, which folded the trunc but missed the bitcast or ptrtoint/inttoptr required in the RAUW call, when the load type didnt match the prior load/store type. Differential Revision: http://reviews.llvm.org/D21791 llvm-svn: 274853
-
Valery Pykhtin authored
Differential Revision: http://reviews.llvm.org/D22049 llvm-svn: 274852
-
Andrey Churbanov authored
llvm-svn: 274851
-
Andrey Churbanov authored
llvm-svn: 274850
-
Andrey Churbanov authored
llvm-svn: 274849
-
Haojian Wu authored
Reviewers: bkramer Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D22127 llvm-svn: 274848
-
Sjoerd Meijer authored
we don't expand only when compiling for minimum code size. llvm-svn: 274847
-
Simon Pilgrim authored
As discussed on D22106, improve the testing for constant folding sse scalar conversion intrinsics to ensure we are correctly handling special/out of range cases llvm-svn: 274846
-
Haojian Wu authored
llvm-svn: 274845
-
Sjoerd Meijer authored
As a result, the urem instruction will not be expanded to a sequence of umull, lsrs, muls and sub instructions, but just a call to __aeabi_uidivmod. Differential Revision: http://reviews.llvm.org/D22131 llvm-svn: 274843
-
Michael Kruse authored
For llvm the memory accesses from nonaffine loops should be visible, however for polly those nonaffine loops should be invisible/boxed. This fixes llvm.org/PR28245 Cointributed-by:
Huihui Zhang <huihuiz@codeaurora.org> Differential Revision: http://reviews.llvm.org/D21591 llvm-svn: 274842
-
Peter Smith authored
This seems to be causing a buildbot failure on lld-x86_64-freebsd. Will reproduce locally and fix. llvm-svn: 274841
-
Asiri Rathnayake authored
Just a minor code cleanup. NFC. llvm-svn: 274840
-
Haojian Wu authored
Patch by Kirill Bobyrev! Reviewers: kimgr, alexfh, bkramer, ioeric, hokein Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D22100 llvm-svn: 274839
-
Vassil Vassilev authored
Patch by Cristina Cristescu! Reviewed by Adrian Prantl (D21985) llvm-svn: 274838
-
Pankaj Gode authored
Support for the macro fusion of simple ALU ops with branches for the Vulcan sub-target. Patch by Meador Inge <meadori@gmail.com> Differential Revision: http://reviews.llvm.org/D22042 llvm-svn: 274837
-
Peter Smith authored
Generalise the Mips LA25 Thunk code and implement ARM and Thumb interworking Thunks. - Introduce a new module Thunks.cpp to store the Target Specific Thunk implementations. - DefinedRegular and Shared have a ThunkData field to record Thunk. - A Target can have more than one type of Thunk. - Support PC-relative calls to Thunks. - Support Thunks to PLT entries. - Existing Mips LA25 Thunk code integrated. - Support for ARMv7A interworking Thunks. Limitations: - Only one Thunk per SymbolBody, this is sufficient for all currently implemented Thunks. - ARM thunks assume presence of V6T2 MOVT and MOVW instructions. Differential revision: http://reviews.llvm.org/D21891 llvm-svn: 274836
-
Alexander Kornienko authored
Reviewers: klimek Subscribers: cfe-commits, klimek Patch by Martin Boehme! Differential Revision: http://reviews.llvm.org/D21799 llvm-svn: 274835
-
Alexander Kornienko authored
Summary: CFG generation is expected to fail in this case, but it should not crash. Also added a test that reproduces the crash. Reviewers: klimek Subscribers: cfe-commits Patch by Martin Boehme! Differential Revision: http://reviews.llvm.org/D21895 llvm-svn: 274834
-
Simon Pilgrim authored
Until we have a better way to extract constants through bitcasted build vectors (and how to handle undefs of partial lanes etc.) at least accept build vectors that are all zeroes. llvm-svn: 274833
-
Haojian Wu authored
Summary: This is an initial version of fixing namespace issues by adding missing namespace qualifiers to an unidentified symbol. This version only fixes the first discovered unidentified symbol. In the long run, include-fixer should fix all unidentified symbols with a same name at one run. Currently, it works on command-line tool. The vim integration is not implemented yet. Reviewers: klimek, bkramer, djasper Subscribers: bkramer, ioeric, cfe-commits Differential Revision: http://reviews.llvm.org/D21603 llvm-svn: 274832
-
Vassil Vassilev authored
Original commit message: "Add postorder traversal support to the RecursiveASTVisitor. This feature needs to be explicitly enabled by overriding shouldTraversePostOrder() as it has performance drawbacks for the iterative Stmt-traversal. Patch by Raphael Isemann! Reviewed by Richard Smith and Benjamin Kramer." llvm-svn: 274830
-
Matt Arsenault authored
For some reason extract_vector_elt is sometimes allowed to have a different result type than the vector element type. llvm-svn: 274829
-
George Rimar authored
When building executable usually version script is absent. Before this patch error was shown in the case when symbol name contained version and there was no script to match it. Instead of error out patch allows to create new version declaration in this case and use it. gnu linkers do the same. That is PR28359. Differential revision: http://reviews.llvm.org/D21890 llvm-svn: 274828
-
Craig Topper authored
I'm not sure if clang ever used these builtin names or not. llvm-svn: 274827
-
Craig Topper authored
llvm-svn: 274826
-
Craig Topper authored
[X86] Remove dead builtins that don't exist in the backend intrinsic file and don't have custom handling in CGBuiltins.cpp either. llvm-svn: 274825
-
Wei Mi authored
Differential Revision: http://reviews.llvm.org/D22124 llvm-svn: 274824
-
Craig Topper authored
[CodeGen] Use llvm::Type::getVectorNumElements instead of casting to llvm::VectorType and calling getNumElements. This is equivalent and shorter. llvm-svn: 274823
-
Jim Ingham authored
This is just an SB API way of doing "thread return -x". <rdar://problem/27110360> llvm-svn: 274822
-
Craig Topper authored
llvm-svn: 274821
-