summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [CMake] More cleanup of installing symlinks.Chris Bieneman2015-09-182-1/+7
| | | | | | | | In order to support building clang out-of-tree the install_symlink script needs to be installed, and it needs to be found by searching the CMAKE_MODULE_PATH. This change renames install_symlink -> LLVMInstallSymlink so it doesn't conflict with naming from other projects, and adds searching behavior in AddLLVM.cmake llvm-svn: 248009
* Disable one MSAN test in AArch64 until we have a proper fixRenato Golin2015-09-181-0/+1
| | | | llvm-svn: 248008
* Link NetBSD with execinfo (CMAKE build)Stephane Sezer2015-09-181-2/+2
| | | | | | | | | | | | | | Summary: FreeBSD and NetBSD share the same library execinfo. Reviewers: joerg, sas, brucem Subscribers: brucem, sas, lldb-commits Differential Revision: http://reviews.llvm.org/D12750 Change by Kamil Rytarowski <n54@gmx.com> llvm-svn: 248007
* [AArch64] Improved bitfield instruction selection.Geoff Berry2015-09-183-11/+116
| | | | | | | | | | | | | | | | | | Summary: For bitfield insert OR matching, check both operands for larger pattern first before checking for smaller pattern. Add pattern for unsigned bitfield insert-in-zero done with SHL+AND. Resolves PR21631. Reviewers: jmolloy, t.p.northover Subscribers: aemerson, rengolin, llvm-commits, mcrosier Differential Revision: http://reviews.llvm.org/D12908 llvm-svn: 248006
* clang-cl: Use 'pc' for the vendor field in the default tripleHans Wennborg2015-09-181-0/+1
| | | | | | | Leaving it unset can make the triple look confusing, especially when using -m32 or -m64. llvm-svn: 248005
* Reduce inclusion of clang headers.Bruce Mitchener2015-09-1820-81/+0
| | | | | | | | | | | | | | Summary: With the recent changes to separate clang from the core structures of LLDB, many inclusions of clang headers can be removed. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12954 llvm-svn: 248004
* Differential Revision: http://reviews.llvm.org/D12966Aidan Dodds2015-09-182-89/+234
| | | | | | On behalf of Dean De Leo llvm-svn: 248003
* [Static Analyzer] Use generics related information to infer dynamic types.Gabor Horvath2015-09-182-14/+31
| | | | | | Differential Revision: http://reviews.llvm.org/D12916 llvm-svn: 248002
* [OMPT] Correct an incorrect OMPT ifdef Jonathan Peyton2015-09-181-1/+1
| | | | | | | | | | | An ifdef for OMPT_TRACE needs to be OMPT_BLAME so that both instances of a callback are controlled by the same ifdef. Patch by John Mellor-Crummey Differential Revision: http://reviews.llvm.org/D12911 llvm-svn: 248001
* Suppress amdgpu-toolchain.c for targeting ps4, for now. Investigating.NAKAMURA Takumi2015-09-181-1/+1
| | | | llvm-svn: 248000
* [analyzer] Update links to developer.apple.com.Jordan Rose2015-09-182-7/+7
| | | | | | | The content at the new links is /also/ a little dated, but that's our (Apple's) problem. llvm-svn: 247999
* xUnit test output: implemented proper xml escapingTodd Fiala2015-09-181-18/+53
| | | | | | | | | | | | | | | Now does proper Unicode code region scanning for invalid XML characters. Strips out XML-invalid characters. Does this for: failure result: message, backtrace error result: message, backtrace skipped test: skip reason pexpect timeouts were still generating characters that would break XML readers (correctly so). llvm-svn: 247998
* amdgpu-toolchain.c: Add a probe line temporally. Will revert later.NAKAMURA Takumi2015-09-181-0/+1
| | | | llvm-svn: 247997
* [compiler-rt] [sanitizer] Clean buildbot failures for aarch64Adhemerval Zanella2015-09-182-3/+3
| | | | | | | | Currently aarch64 lacks instrumentation support for variadic arguments for MSan. This patch sets the UBSan tests that uses it as to require stable-runtime and sets aarch64/ubsan as an unstable one. llvm-svn: 247996
* Use None instead of an explicit constructor.Douglas Katzman2015-09-182-3/+2
| | | | | | | And remove a needless 'const' since ArrayRef is immutable. Both as suggested by dblaikie on cfe-commits. llvm-svn: 247995
* Remove temporary file on signal.Rafael Espindola2015-09-181-1/+6
| | | | | | Without this lld leaves temporary files behind when it crashes. llvm-svn: 247994
* Simplify SmallBitVector::applyMask by consolidating common code for 32- and ↵Yaron Keren2015-09-182-14/+13
| | | | | | | | | | | | | 64-bit builds and assert when mask is too large to apply in the small case, previously the extra words were silently ignored. clang-format the entire function to match current code standards. This is a rewrite of r247972 which was reverted in r247983 due to warning and possible UB on 32-bits hosts. llvm-svn: 247993
* Start adding support for creating the GOT.Rafael Espindola2015-09-184-18/+133
| | | | | | | | With this a program can call into a shared library with jmp *foo@GOTPCREL(%rip) llvm-svn: 247992
* Fix link failures when BUILD_SHARED_LIBS=ON.Pavel Labath2015-09-181-0/+1
| | | | | | | | | | | | patch by Daniel Sanders. Reviewers: labath, krytarowski Subscribers: krytarowski, labath, lldb-commits Differential Revision: http://reviews.llvm.org/D12900 llvm-svn: 247991
* [mips][microMIPS] Fix an invalid read for lwm32 and reserved reglist values.Daniel Sanders2015-09-182-0/+10
| | | | | | | | | | | | | | | Summary: Some values of 'reglist' are reserved and cause the disassembler to read past the end of the Regs array. Treat lwm32's containing reserved values as invalid instructions. Reviewers: zoran.jovanovic Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12959 llvm-svn: 247990
* [AArch64] Reorder cases to improve readability. NFC.Chad Rosier2015-09-181-9/+9
| | | | llvm-svn: 247989
* [AArch64] Remove some redundant cases. NFC.Chad Rosier2015-09-181-16/+8
| | | | llvm-svn: 247988
* Update clang-tidy documentation.Angel Garcia Gomez2015-09-185-17/+646
| | | | | | | | | | Summary: Update documentation of the modernize module with clang-modernize's documentation. Subscribers: cfe-commits, klimek, alexfh Differential Revision: http://reviews.llvm.org/D12961 llvm-svn: 247987
* Silencing a -Wsign-compare warning; NFC.Aaron Ballman2015-09-181-1/+1
| | | | llvm-svn: 247986
* [LazyValueInfo] Report nonnull range for nonnull pointersIgor Laevsky2015-09-182-2/+25
| | | | | | | | | | | | Currently LazyValueInfo will report only alloca's as having nonnull range. For loads with !nonnull metadata it will bailout with no additional information. Same is true for calls returning nonnull pointers. This change extends LazyValueInfo to handle additional nonnull instructions. Differential Revision: http://reviews.llvm.org/D12932 llvm-svn: 247985
* Support align attribute for return valuesArtur Pilipenko2015-09-183-1/+20
| | | | | | | | Reviewed By: reames Differential Revision: http://reviews.llvm.org/D12844 llvm-svn: 247984
* Reverting r247972 (and subordinate commit r247972) as the 32-bit left-shift ↵Aaron Ballman2015-09-182-10/+12
| | | | | | is undefined behavior on implementations where uinptr_t is 32-bits. One such platform is Windows, MSVC, x86. llvm-svn: 247983
* Nit cleanup in LangRef about dereferenceable metadataArtur Pilipenko2015-09-181-5/+6
| | | | | | | | Reviewed By: vsk Differential Revision: http://reviews.llvm.org/D12847 llvm-svn: 247982
* Pass the relocation model to LLVM for assembler files.Joerg Sonnenberger2015-09-182-2/+18
| | | | llvm-svn: 247981
* [Support] Reapply r245289 "Always wait for GraphViz before opening the viewer"Michael Kruse2015-09-181-1/+1
| | | | | | | | | | | | | The change was accidentally undone by r245290. Original log message: When calling DisplayGraph and a PS viewer is chosen, two programs are executed: The GraphViz generator and the PostScript viewer. Always wait for the generator to finish to ensure that the .ps file is written before opening the viewer for that file. DisplayGraph's wait parameter refers to whether to wait until the user closes the viewer. This happened on Windows and if none of the options to open the .dot file directly applies, also on Linux. Differential Revision: http://reviews.llvm.org/D11876 llvm-svn: 247980
* [llvm-mc-fuzzer] Document llvm-mc-fuzzer in LibFuzzer.rst.Daniel Sanders2015-09-181-0/+17
| | | | llvm-svn: 247979
* [WinEH] Moved funclet pads should be in relative orderDavid Majnemer2015-09-183-9/+57
| | | | | | | | | | | We shifted the MachineBasicBlocks to the end of the MachineFunction in DFS order. This will not ensure that MachineBasicBlocks which fell through to one another will remain contiguous. Instead, implement a stable sort algorithm for iplist. This partially reverts commit r214150. llvm-svn: 247978
* clang/test/lit.cfg: *-ps4 doesn't have appropriate driver yet. Mark it as ↵NAKAMURA Takumi2015-09-181-1/+1
| | | | | | "non-clang-driver". llvm-svn: 247977
* [OPENMP 4.0] Add 'if' clause for 'cancel' directive.Alexey Bataev2015-09-1815-53/+186
| | | | | | Add parsing, sema analysis and codegen for 'if' clause in 'cancel' directive. llvm-svn: 247976
* Fix for assertion fail for pragma weak on typedef.Alexander Musman2015-09-183-5/+14
| | | | | | | | | | Example: typedef int __td3; #pragma weak td3 = __td3 Differential Revision: http://reviews.llvm.org/D12904 llvm-svn: 247975
* Fix BitVectorTest on 32-bit hosts after r247972.Yaron Keren2015-09-181-2/+2
| | | | | | | We can't apply two words of 32-bit mask in the small case where the internal storage is just one 32-bit word. llvm-svn: 247974
* xunit output: add backtraces; limit attributeTodd Fiala2015-09-181-4/+33
| | | | | | | | | | | | | | | | When pexpect errors occurred, the <error>/<failure> element's message attribute could get too long and contain invalid characters for xml attributes, even when quoted. Particularly for pexpect failures. Now <error> and <failure> entries truncate the message attribute to contain the first line of the message. <error> and <failure> blocks now contain both the complete message and the backtrace (finally!) in the text body of the error/failure element. llvm-svn: 247973
* Simplify SmallBitVector::applyMask by consolidating common code for 32-bit ↵Yaron Keren2015-09-182-12/+10
| | | | | | | | | | | | | and 64-bit builds. Extend mask value to 64 bits before taking its complement and assert when mask is too large to apply in the small case (previously the extra words were silently ignored). http://reviews.llvm.org/D11890 Patch by James Touton! llvm-svn: 247972
* Remove trailing whitespace from the old Orc Kaleidoscope examples.Lang Hames2015-09-184-448/+444
| | | | llvm-svn: 247971
* Store EscapeMap as Value* instead of AllocInstTobias Grosser2015-09-182-9/+9
| | | | | | | This currently does not change the behavior in Polly, but it allows us to later also overwrite the EscapeMap with our GlobalMap. llvm-svn: 247970
* Whitespace. Indent with spaces instead of a tab.Bob Wilson2015-09-181-1/+1
| | | | llvm-svn: 247969
* [LLDB][MIPS] Debug bare-iron targets lacking support for qC /qfThreadInfoJaydeep Patil2015-09-181-0/+33
| | | | | | | | | | | SUMMARY: Using response.IsUnsupportedResponse instead of !response.IsNormalResponse(). Reviewers: clayborg, labath Subscribers: nitesh.jain, mohit.bhakkad, sagar, bhushan and lldb-commits Differential Revision: http://reviews.llvm.org/D12876 llvm-svn: 247968
* Driver: avoid unnecessary string based operationsSaleem Abdulrasool2015-09-183-61/+71
| | | | | | | | Use an enumeration and change the use of the FloatABI from a string to the enumeration. This avoids the use of string values to represent an enumeration. NFC. llvm-svn: 247967
* [Concepts] Moving tests to match the corresponding section of the TSNathan Wilson2015-09-181-0/+0
| | | | llvm-svn: 247966
* COFF: Reorder comparisons.Rui Ueyama2015-09-181-13/+13
| | | | | | This change makes equalsConstant a bit faster (193ms -> 163ms). llvm-svn: 247965
* COFF: Remove useless micro-optimization.Rui Ueyama2015-09-181-2/+0
| | | | | | | This patch simplifies code by removing micro-optimization that doesn't contribute to speed. llvm-svn: 247964
* COFF: Optimize ICF by not creating temporary vectors.Rui Ueyama2015-09-182-17/+16
| | | | | | | | | | | | | | | | | Previously, ICF created a vector for each SectionChunk. The vector contained pointers to successors, which are namely associative sections and COMDAT relocation targets. The reason I created vectors is because I thought that that would make section comparison faster. It did make the comparison faster. When self-linking, for example, it saved about 10 ms on each iteration. The time we spent on constructing the vectors was 124 ms. If we iterate more than 12 times, return from the investment exceeds the initial cost. In reality, it usually needs 5 iterations. So we shouldn't construct the vectors. llvm-svn: 247963
* Fixed test runner output for Jenkins xUnit publishTodd Fiala2015-09-181-1/+2
| | | | | | | | | The Jenkins JUnit publisher handled our output, but the Jenkins xUnit plugin's JUnit support did not like that we didn't have a <testsuites> element wrapping everything. They both work with this fix. llvm-svn: 247962
* COFF: Optimize ICF by comparing relocations before section contents.Rui Ueyama2015-09-181-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | equalsConstants() is the heaviest function in ICF, and that consumes more than half of total ICF execution time. Of which, section content comparison accounts for roughly one third. Previously, we compared section contents at the beginning of the function after comparing their checksums. The comparison is very likely to succeed because when the control reaches that comparison, their checksums are always equal. And because checksums are 64-bit CRC, they are unlikely to collide. We compared relocations and associative sections after that. If they are different, the time we spent on byte-by-byte comparison of section contents were wasted. This patch moves the comparison at the end of function. If the comparison fails, the time we spent on relocation comparison are wasted, but as I wrote it's very unlikely to happen. LLD took 1198 ms to link itself to produce a 27.11 MB executable. Of which, ICF accounted for 536 ms. This patch cuts it by 90 ms, which is 17% speedup of ICF and 7.5% speedup overall. All numbers are median of ten runs. llvm-svn: 247961
* [ELF2] Fill up local symbols fields correctly.Davide Italiano2015-09-184-15/+33
| | | | | | Differential Revision: http://reviews.llvm.org/D12944 llvm-svn: 247960
OpenPOWER on IntegriCloud