summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [mips] Correct c.cond.fmt instruction definition.Simon Dardis2017-01-1642-472/+957
| | | | | | | | | | | | | | | Permit explicit $fcc<X> operand in c.cond.fmt instruction. Add c.cond.fmt to the MIPS to microMIPS instruction mapping table. Check that $fcc1 - $fcc7 are unusable for MIPS-I to MIPS-III for c.cond.fmt, bc1t, bc1f. Reviewers: seanbruno, zoran.jovanovic, vkalintiris Differential Revision: https://reviews.llvm.org/D24510 llvm-svn: 292117
* Fix test failures after recent clang-format format change.Daniel Jasper2017-01-161-2/+2
| | | | llvm-svn: 292116
* Replace non-ASCII ellipsis with "..." to silence Sphinx warnings.Aaron Ballman2017-01-161-2/+2
| | | | llvm-svn: 292115
* [SelectionDAG] Add support for BITREVERSE constant foldingSimon Pilgrim2017-01-164-469/+53
| | | | | | We were relying on constant folding of the legalized instructions to do what constant folding we had previously llvm-svn: 292114
* Add -fstrict-vtable-pointers to UsersManualPiotr Padlewski2017-01-161-0/+7
| | | | | | | | | | | | | Summary: Add missing flag to UsersManual It would be good to merge it to 4.0 branch. Reviewers: hans Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D28727 llvm-svn: 292112
* [X86][SSE] Tests showing missing BITREVERSE constant foldingSimon Pilgrim2017-01-161-0/+512
| | | | llvm-svn: 292111
* clang-format: Always wrap before multi-line parameters/operands.Daniel Jasper2017-01-163-52/+78
| | | | | | | | | | | | | | | | | Before: aaaaaaaaaaaaaaaaaa(aaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaa); After: aaaaaaaaaaaaaaaaaa(aaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaa); No new test cases, as the existing ones cover this fairly well. llvm-svn: 292110
* [libcxx] Follow-up to r292107Asiri Rathnayake2017-01-161-5/+5
| | | | | | I've missed a couple of updates. NFC. llvm-svn: 292109
* [libcxx] Improve design documentation for the external-thread-libraryAsiri Rathnayake2017-01-161-7/+16
| | | | | | | | | | | configuration NFC. Differential revision: https://reviews.llvm.org/D28610 Reviewers: EricWF llvm-svn: 292108
* [libcxx] Don't assume __libcpp_thread_t is an integral typeAsiri Rathnayake2017-01-162-5/+20
| | | | | | | | | | | | | We have already refactored the underlying platform thread type into __libcpp_thread_t, but there are few places in the source where we still assume it is an integral type. This patch refactores those points back into the threading API. Differential revision: https://reviews.llvm.org/D28608 Reviewers: EricWF llvm-svn: 292107
* Fix windows unit testsPavel Labath2017-01-161-1/+1
| | | | | | | | | The unit test I added in the previous commit discovered a bug in PrependPathComponent on windows -- it was calling SetFile with the host native path syntax, whereas it should be explicitly specifying the path syntax (as AppendPathComponent does). This fixes it. llvm-svn: 292106
* Do not track the isl PDF manual in SVNTobias Grosser2017-01-162-0/+1
| | | | | | | | There is no point in regularly committing a binary file to the repository, as this just unnecessarily increases the repository size. Interested people can find the isl manual for example at isl.gforge.inria.fr/manual.pdf. llvm-svn: 292105
* [COFF] - Fixed format in writeOutSecLine()George Rimar2017-01-161-1/+2
| | | | | | | | | | | | The same as https://reviews.llvm.org/rL292102, fixes next testcases under msvs2015/win32: 25> Failing Tests (3): 25> lld :: COFF/lldmap.test 25> lld :: COFF/weak-external.test 25> lld :: COFF/weak-external3.test llvm-svn: 292104
* [ELF] - Fix format specifiers in writeOutSecLine()George Rimar2017-01-161-1/+1
| | | | | | | | | | | | | | | | | I had a error in map-file.s testcase under MSVS2015/win32: map-file.s:30:16: error: expected string not found in input // CHECK-NEXT: 0000000000200158 0000000000000030 8 .eh_frame <stdin>:2:1: note: scanning from here 0000000000200158 10 30 .eh_frame Format string '%0*x' requires an argument of type 'unsigned int', but argument has type 'uint64_t'. Proper format is '%0*llx' then. This fixes testcase failture for me. llvm-svn: 292102
* [InstCombine][SSE] Add DemandedElts support for PSHUFB instructionsSimon Pilgrim2017-01-163-15/+30
| | | | | | | | Simplify a pshufb shuffle mask based on the elements of the mask that are actually demanded. Differential Revision: https://reviews.llvm.org/D28745 llvm-svn: 292101
* FileSpec: Fix PrependPathComponent("/")Pavel Labath2017-01-162-25/+45
| | | | | | | | | | | | | | | | Summary: PrependPathComponent was unconditionally inserting path separators between the path components. This is not correct if the prepended path is "/", which caused problems down the line. Fix the function to use the same algorithm as AppendPathComponent and add a test. This fixes one part of llvm.org/pr31611. Reviewers: clayborg, zturner Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D28677 llvm-svn: 292100
* clang-format: [JS] revert over-eager ASI check.Martin Probst2017-01-162-6/+23
| | | | | | | | | | | | Summary: Change r291428 introduced ASI detection after closing curly braces. That would generally be correct, however this breaks indentation for structural statements. What happens is that CompoundStatementIndenter increases indentation for the current line, then after reading ASI creates a new line (with the increased line level), and only after the structural parser sees e.g. the if/then/else branch closed, line level is reduced. That leads to the new line started by ASI having a level too high. Reviewers: djasper Subscribers: sammccall, cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D28763 llvm-svn: 292099
* [clang-move] Dump enum and type alias declarations.Haojian Wu2017-01-162-13/+17
| | | | | | | | | | Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D28293 llvm-svn: 292098
* Added a workaround for a `-fdelayed-template-parsing` bug.Michael Park2017-01-162-11/+13
| | | | | | | | | | | | | | | Summary: There seems to be an additional bug in `-fdelayed-template-parsing` similar to http://llvm.org/viewvc/llvm-project?view=revision&revision=236063. This is a workaround for it for <variant> to compile with `clang-cl` on Windows. Reviewers: EricWF Differential Revision: https://reviews.llvm.org/D28734 llvm-svn: 292097
* [X86] Merge the disassemblers handling of the different TYPE_RELs by getting ↵Craig Topper2017-01-163-36/+32
| | | | | | the size information from the ENCODING field. NFCI llvm-svn: 292096
* [X86] Reduce the number of operand 'types' the disassembler needs to deal ↵Craig Topper2017-01-164-189/+108
| | | | | | | | | with. NFCI We were frequently checking for a list of types and the different types conveyed no real information. So lump them together explicitly. llvm-svn: 292095
* [AVX-512] Teach the disassembler about all of the EVEX gather and scatter ↵Craig Topper2017-01-163-4/+162
| | | | | | instructions. llvm-svn: 292094
* [AVX-512] Begin giving the disassembler a way to recognize that VSIB is a ↵Craig Topper2017-01-164-15/+40
| | | | | | | | different encoding than regular addressing modes. This part first teaches it not to check error if EVEX.V2 is used by a VSIB instruction. llvm-svn: 292093
* Fix typos. NFCXin Tong2017-01-161-2/+2
| | | | llvm-svn: 292092
* Implement the missing constexpr stuff in <array>. Fixes PR#31645.Marshall Clow2017-01-164-8/+62
| | | | llvm-svn: 292091
* Use error() instead of fatal() to handle file open error.Rui Ueyama2017-01-161-2/+3
| | | | llvm-svn: 292090
* [AVX-512] Add more gather/scatter encoding test cases.Craig Topper2017-01-162-0/+176
| | | | llvm-svn: 292089
* [AVX-512] Correct memory operand size for VPGATHERQPS and VPGATHERQDCraig Topper2017-01-165-62/+69
| | | | | | | | | with ZMM index. Similar for SCATTER and the prefetch gather and scatter instructions. Fixes PR31618. llvm-svn: 292088
* [AVX-512] Fix register class in one of the gather/scatter memory operands so ↵Craig Topper2017-01-161-1/+1
| | | | | | that all 32 bit registers can be allowed. llvm-svn: 292087
* Reland "[CMake][libcxx] Check that we have libcxxabi before using it"Petr Hosek2017-01-161-1/+2
| | | | | | This relands commit r291726. llvm-svn: 292086
* Reland "[CMake][libcxx] Do not rely on the existence of c++abi or unwind ↵Petr Hosek2017-01-162-4/+6
| | | | | | | | targets" This relands commit r291727. llvm-svn: 292085
* Reland "[CMake][libcxx] Move Python check to main CMake file"Petr Hosek2017-01-162-7/+9
| | | | | | This relands commit r291728. llvm-svn: 292084
* Reland "[CMake][compiler-rt] Mark libcxx build for tsan as standalone"Petr Hosek2017-01-161-0/+1
| | | | | | This relands commit r291722. llvm-svn: 292083
* [InstCombine] add tests to show missed vector folds; NFCSanjay Patel2017-01-152-14/+43
| | | | | | Also, add comments and remove bogus comment. llvm-svn: 292082
* Empty line. NFC.Xin Tong2017-01-151-1/+0
| | | | llvm-svn: 292081
* Use getLoopLatch in place of isLoopSimplifyFormXin Tong2017-01-153-4/+85
| | | | | | | | | | | | | | Summary: Use getLoopLatch in place of isLoopSimplifyForm. we do not need to know whether the loop has a preheader nor dedicated exits. Reviewers: hfinkel, sanjoy, atrick, mkuper Subscribers: mzolotukhin, llvm-commits Differential Revision: https://reviews.llvm.org/D28724 llvm-svn: 292078
* [CostModel][X86] Fix AVX512BW vector shift costs for vXi16 typesSimon Pilgrim2017-01-154-10/+28
| | | | | | We already have patterns in place to support 128/256-bit shifts without AVX512VL llvm-svn: 292077
* [CostModel][X86] Drop separate AVX512VL checks - they match existing AVX512 ↵Simon Pilgrim2017-01-153-51/+9
| | | | | | | | costs Keep the tests though. llvm-svn: 292076
* [CostModel][X86] Update vector shift tests to correctly check by ↵Simon Pilgrim2017-01-153-199/+232
| | | | | | | | non-constant uniform values. Use shuffle( scslar_to_vector, zeroinitializer) pattern instead of shuffle( vec, zeroinitializer) llvm-svn: 292075
* Delete a dead argument. NFCXin Tong2017-01-151-6/+5
| | | | llvm-svn: 292074
* [InstCombine] fix formatting; NFCSanjay Patel2017-01-151-24/+22
| | | | llvm-svn: 292073
* [InstCombine][SSE] Tests showing missed opportunities to pass demanded elts ↵Simon Pilgrim2017-01-151-0/+47
| | | | | | through a pshufb shuffle mask llvm-svn: 292072
* [NVPTX] Add fptosi tests to convert-fp.ll.Justin Lebar2017-01-151-48/+67
| | | | | | These seem to have been left off by accident. llvm-svn: 292071
* [NVPTX] Add codegen tests for llvm.fma.Justin Lebar2017-01-151-0/+25
| | | | llvm-svn: 292070
* [NVPTX] Modernize intrinics.ll test.Justin Lebar2017-01-151-13/+12
| | | | llvm-svn: 292069
* [NVPTX] Let there be One True Way to set NVVMReflect params.Justin Lebar2017-01-154-111/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Previously there were three ways to inform the NVVMReflect pass whether you wanted to flush denormals to zero: * An LLVM command-line option * Parameters to the NVVMReflect constructor * Metadata on the module itself. This change removes the first two, leaving only the third. The motivation for this change, aside from simplifying things, is that we want LLVM to be aware of whether it's operating in FTZ mode, so other passes can use this information. Ideally we'd have a target-generic piece of metadata on the module. This change moves us in that direction. Reviewers: tra Subscribers: jholewinski, llvm-commits Differential Revision: https://reviews.llvm.org/D28700 llvm-svn: 292068
* Fix compilation on MSVC, NFCHongbin Zheng2017-01-152-5/+5
| | | | | | Differential Revision: https://reviews.llvm.org/D28739 llvm-svn: 292067
* Fix blend mask by switch the side of the operand since Blend node uses ↵Michael Zuckerman2017-01-1511-98/+100
| | | | | | opposite mask then Select NODE. llvm-svn: 292066
* Fix un-initialized error introduced by r291959.Daniel Jasper2017-01-151-0/+2
| | | | | | | | This is uncovered when running tools/dsymutil/X86/empty_range.s.test with ASAN. Haven't investigate yet, whether that means there is an ODR violation in that test. llvm-svn: 292065
* [InstCombine] use m_APInt to allow ashr folds for vectors with splat constantsSanjay Patel2017-01-158-34/+20
| | | | llvm-svn: 292064
OpenPOWER on IntegriCloud