summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [memdep] Switch a function to return true on success instead of false.Chandler Carruth2016-03-071-9/+9
| | | | | | | | This is much more clear and less surprising IMO. It also makes things more consistent with the increasingly large chunk of LLVM code that assumes true-on-success. llvm-svn: 262826
* [memdep] Cleanup the implementation doxygen comments and removeChandler Carruth2016-03-072-82/+35
| | | | | | | | | | duplicated comments. In several cases these had diverged making them especially nice to canonicalize. I checked to make sure we weren't losing important information of course. llvm-svn: 262825
* [memdep] Finish cleaning up all of the comments' doxygen.Chandler Carruth2016-03-071-65/+75
| | | | llvm-svn: 262824
* [memdep] Switch from a hacky use of PointerIntPair and poorly chosenChandler Carruth2016-03-071-30/+38
| | | | | | | | | | | arbitrary integers cast to Instruction pointers to a sum type over Instruction * and a PointerEmbeddedInt. No functionality changed. Differential Revision: http://reviews.llvm.org/D15845 llvm-svn: 262823
* [memdep] Update the comments' doxygen style and place them more clearly.Chandler Carruth2016-03-071-52/+51
| | | | | | | Just cleaning this up, no functionality changed. Next up will be moving it to use the sum type instead of arbitrary "pointer"-like enums. llvm-svn: 262822
* [memdep] Run clang-format over the header before porting it toChandler Carruth2016-03-072-556/+563
| | | | | | | | | | | the new pass manager. The port will involve substantial edits here, and would likely introduce bad formatting if formatted in isolation, so just get all the formatting up to snuff. I'll also go through and try to freshen the doxygen here as well as modernizing some of the code. llvm-svn: 262821
* [CLANG][AVX512][BUILTIN] Adding new feature flag header file and new builtin ↵Michael Zuckerman2016-03-077-0/+378
| | | | | | | | vpmadd52{h|l}uq{128|256|512}{mask|maskz} Differential Revision: http://reviews.llvm.org/D17915 llvm-svn: 262820
* [LLDB][MIPS] Fix TestDisassembleBreakpointMohit K. Bhakkad2016-03-071-1/+1
| | | | | | | | | | Patch by Nitesh Jain Reviewers: clayborg, jaydeep. Subscribers: bhushan, mohit.bhakkad, sagar, lldb-commits. Differential Revision: http://reviews.llvm.org/D17597 llvm-svn: 262819
* [MS ABI] Mangle symbols names longer than 4096 characters correctlyDavid Majnemer2016-03-072-42/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Really long symbols are hashed using MD5 and prefixed/suffixed with the usual sigils. There is an additional reason beyond the usual compatibility with MSVC, it is important to keep COFF symbols shorter than 0xFFFF because the CodeView debugging format has a maximum symbol/record size of 0xFFFF. There are some quirks worth noting: - Some mangled names reference other entities which are mangled separately. A quick example: int I; template <int *> struct S {}; S<I> s; In this case, the mangling for 's' doesn't depend directly on the mangling for 'I'. While 's' would need an MD5 hash if 'I' also needed one, the hash for 's' applied to the fully realized mangled name. In other words, the mangled name for 's' will not depend on the MD5 of the mangled name for 'I'. - Some mangled names, like the venerable CatchableType, embed the MD5 verbatim. - Finally, the complete object locator is handled as a special case. A complete object locators are mangled exactly like a VFTable except for a small deviation in the prefix sigils. However, complete object locators for hashed vftables result in a complete object locator whose name is identical to the vftable except for an additional suffix. llvm-svn: 262818
* [CLANG][AVX512][BUILTIN] Adding vpmultishiftqb{128|256|512}Michael Zuckerman2016-03-076-1/+175
| | | | | | Differential Revision: http://reviews.llvm.org/D17914 llvm-svn: 262817
* Move SBLanguageRuntime.cpp from the lldb-core group to the LLDBJason Molenda2016-03-071-2/+2
| | | | | | | group to fix a build time issue. <rdar://problem/24287153> llvm-svn: 262816
* [CodeGen] Add space-optimized EmitMergeInputChains1_2 to the DAG isel ↵Craig Topper2016-03-073-4/+6
| | | | | | matching tables. Shaves about 5100 bytes from the X86 matcher table. NFC llvm-svn: 262815
* [powerpc] mark setuid.c and setuid2.c as unsupportedBill Seurer2016-03-072-0/+12
| | | | | | | | | setuid(0) hangs on powerpc64 big endian. When this is fixed remove the unsupported flag. https://llvm.org/bugs/show_bug.cgi?id=25799 llvm-svn: 262814
* Split BitcodeFile::parse. NFC.Rui Ueyama2016-03-071-11/+13
| | | | llvm-svn: 262813
* Add a new insert_as() method to DenseMap and use it for ConstantUniqueMapMehdi Amini2016-03-072-23/+61
| | | | | | | | | | | | | | | | | | | Just like the existing find_as() method, the new insert_as() accepts an extra parameter which is used as a key to find the bucket in the map. When creating a Constant, we want to check the map before actually creating the object. In this case we have to perform two queries to the map, and this extra parameter can save recomputing the hash value for the second query. This is a reapply of r260458, that was reverted because it was suspected to be the cause of instability of an internal bot, but wasn't confirmed. Differential Revision: http://reviews.llvm.org/D16268 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 262812
* Bitcode reader: Inline readAbbreviatedField in readRecord and move the ↵Mehdi Amini2016-03-071-7/+34
| | | | | | | | | | | | | | | enclosing loop in each case (NFC) Summary: This make readRecord 20% faster, measured on an LTO build Reviewers: rafael Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D17911 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 262811
* Revert r130657, "Windows/DynamicLibrary.inc: Clean up ELM_Callback. We may ↵NAKAMURA Takumi2016-03-074-20/+2
| | | | | | | | check the decl instead of the versions of individual libraries." We may assume the type of 1st argument as PCSTR in PENUMLOADED_MODULES_CALLBACK. PSTR was in the ancient mingw32. llvm-svn: 262810
* [X86][AVX512] Fixed VPERMT2* shuffle mask decoding and enabled target ↵Simon Pilgrim2016-03-064-31/+9
| | | | | | | | | | | | | | shuffle combining. Patch to add support for target shuffle combining of X86ISD::VPERMV3 nodes, including support for detecting unary shuffles. This uncovered several issues with the X86ISD::VPERMV3 shuffle mask decoding of non-64 bit shuffle mask elements - the bit masking wasn't being correctly computed. Removed non-constant pool mask decode path as we have no way of testing it right now. Differential Revision: http://reviews.llvm.org/D17916 llvm-svn: 262809
* [AMDGPU] Using table-driven amd_kernel_code_t field parser in assembler.Valery Pykhtin2016-03-062-157/+8
| | | | | | | | Engages code from r262804. Differential Revision: http://reviews.llvm.org/D17151 llvm-svn: 262808
* Update with work items passed in JacksonvilleMarshall Clow2016-03-061-1/+47
| | | | llvm-svn: 262807
* [ASTMatchers] Document that isAnyPointer() matcher also matches Objective-C ↵Felix Berger2016-03-062-2/+14
| | | | | | | | | | | | | | object pointers. Summary: Add test for Objective-C object pointer matching. Reviewers: aaron.ballman Subscribers: klimek Differential Revision: http://reviews.llvm.org/D17489 llvm-svn: 262806
* fix sanitizer-ppc64be-linux failure for r262804Valery Pykhtin2016-03-061-1/+1
| | | | | | | | error: moving a local object in a return statement prevents copy elision [-Werror,-Wpessimizing-move] http://lab.llvm.org:8011/builders/sanitizer-ppc64be-linux/builds/930 llvm-svn: 262805
* [AMDGPU] table-driven parser/printer for amd_kernel_code_t structure fieldsValery Pykhtin2016-03-064-0/+369
| | | | | | Differential Revision: http://reviews.llvm.org/D17150 llvm-svn: 262804
* AVX512BW: Support llvm intrinsic masked vector load/store for i8/i16 element ↵Igor Breger2016-03-064-37/+314
| | | | | | | | types on SKX Differential Revision: http://reviews.llvm.org/D17913 llvm-svn: 262803
* Fix typo.Wilfred Hughes2016-03-061-1/+1
| | | | llvm-svn: 262802
* [AMDGPU] SOPxx instructions operand naming fixed in td files.Valery Pykhtin2016-03-063-68/+68
| | | | | | | | | dst -> sdst ssrcN -> srcN Differential Revision: http://reviews.llvm.org/D17646 llvm-svn: 262801
* [X86] Use high bits of return value from getEncoding instead of predicate ↵Craig Topper2016-03-061-162/+101
| | | | | | functions to populate the REX and VEX prefix bits that extend register encodings. NFC llvm-svn: 262800
* [X86] Remove unnecessary masking. The assert above it already guaranteed it. NFCCraig Topper2016-03-061-2/+0
| | | | llvm-svn: 262799
* [X86] Use uint8_t instead of unsigned char as it shortens the code and more ↵Craig Topper2016-03-061-27/+26
| | | | | | explicitly reflects the desired size. llvm-svn: 262798
* AVX512: Remove VSHRI kmask patterns from TD file. It is incorrect to use ↵Igor Breger2016-03-065-117/+122
| | | | | | | | kshiftw to implement VSHRI v4i1 , bits 15-4 is undef so the upper bits of v4i1 may not be zeroed. v4i1 should be zero_extend to v16i1 ( or any natively supported vector). Differential Revision: http://reviews.llvm.org/D17763 llvm-svn: 262797
* [ELF] - Simplify a SymbolBody class interface a bit.George Rimar2016-03-067-18/+16
| | | | | | | | | Get rid of few accessors in that class, and replace them with direct fields access. Differential revision: http://reviews.llvm.org/D17879 llvm-svn: 262796
* Fixed formatting issues in AArch64 target methods. NFC.George Rimar2016-03-061-4/+3
| | | | llvm-svn: 262795
* [ELF] - Changed return type of Target::relaxTls()George Rimar2016-03-062-20/+20
| | | | | | | | | | | Patch changes the return type of Target::relaxTls to size_t from unsigned. That is consistent with its use from other code. Change was reviewed http://reviews.llvm.org/D17882 and asked to commit separately from that patch above. llvm-svn: 262794
* [ELF] - Use the uint32_t instead of unsigned in Target class for relocations ↵George Rimar2016-03-063-70/+70
| | | | | | | | | | | types Patch changes all relocations types to be uint32_t and also fixes some dependent inconsistency in callers code. Differential revision: http://reviews.llvm.org/D17882 llvm-svn: 262793
* cleanup: remove dead preprocessing branch /nfcXinliang David Li2016-03-061-2/+0
| | | | llvm-svn: 262792
* [PGO] cleanup: move one support method into InstrProfilingUtil.h /NFCXinliang David Li2016-03-063-13/+19
| | | | llvm-svn: 262791
* unitests: add some ARM TargetParser testsSaleem Abdulrasool2016-03-062-0/+52
| | | | | | | | | The ARM TargetParser would construct invalid StringRefs. This would cause asserts to trigger. Add some tests in LLVM to ensure that we dont regress on this in the future. Although there is a test for this in clang, this ensures that the changes would get caught in the same repository. llvm-svn: 262790
* [Modules] Don't swallow errors when parsing optional attributes.Davide Italiano2016-03-062-3/+20
| | | | | | Differential Revision: http://reviews.llvm.org/D17787 llvm-svn: 262789
* [PGO] internal API name cleanups (for better consistency)Xinliang David Li2016-03-069-91/+92
| | | | llvm-svn: 262788
* [docs] Clean up doxygen comments a bit.Alexander Kornienko2016-03-061-23/+23
| | | | llvm-svn: 262787
* [docs] Updated docs to work with Doxygen 1.8.11Alexander Kornienko2016-03-062-23/+11
| | | | llvm-svn: 262786
* Minor cleanupXinliang David Li2016-03-063-12/+15
| | | | | | move a function def to InstrProfilingUtil.c llvm-svn: 262785
* [X86][AVX] Improved VPERMILPS variable shuffle mask decoding.Simon Pilgrim2016-03-054-5/+43
| | | | | | | | | | Added support for decoding VPERMILPS variable shuffle masks that aren't in the constant pool. Added target shuffle mask decoding for SCALAR_TO_VECTOR+VZEXT_MOVL cases - these can happen for v2i64 constant re-materialization Followup to D17681 llvm-svn: 262784
* Fixed -Wdocumentation warning - typo in a parameter nameSimon Pilgrim2016-03-051-1/+1
| | | | llvm-svn: 262783
* [X86] AMD Bobcat CPU (btver1) doesn't support XSAVE Simon Pilgrim2016-03-051-1/+0
| | | | | | | | btver1 is a SSSE3/SSE4a only CPU - it doesn't have AVX and doesn't support XSAVE. Differential Revision: http://reviews.llvm.org/D17683 llvm-svn: 262782
* [clang-tidy] Extend UnnecessaryCopyInitialization check to trigger on ↵Felix Berger2016-03-0510-125/+353
| | | | | | | | | | | | | | | | non-const copies that can be safely converted to const references. Summary: Move code shared between UnnecessaryCopyInitialization and ForRangeCopyCheck into utilities files. Add more test cases for UnnecessaryCopyInitialization and disable fixes inside of macros. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D17488 llvm-svn: 262781
* Misc: add a test for TargetParser usageSaleem Abdulrasool2016-03-051-0/+2
| | | | | | | | | Ensure that an invalid value passed to target parser does not cause an assertion in +Asserts builds. Supporting test for PR26839. llvm-svn: 262780
* [GCDA] Unlock arc file before closing itVedant Kumar2016-03-051-1/+1
| | | | | | | | | The GCDA writer closed the arc file before unlocking it. This causes an EBADF while unlocking the file, and opens us up to racy behavior. Fixes PR26847. llvm-svn: 262779
* Support: catch invalid accessesSaleem Abdulrasool2016-03-051-2/+2
| | | | | | | | | | | It is possible to invoke these methods on an invalid input resulting in an invalid substring construction. It seems that we do not have unit tests for these methods. Tests to ensure that the invalid call is caught to follow in clang. Resolves PR26839. llvm-svn: 262778
* ExecutionEngine: tweak debug logSaleem Abdulrasool2016-03-051-1/+1
| | | | | | Add a newline to separate the log message. NFC. llvm-svn: 262777
OpenPOWER on IntegriCloud